index.vue 36 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450
  1. <template>
  2. <view class="content">
  3. <view class="indexTop" :style="{background:'#'+themeColor}" v-if="getwxLoing">
  4. <view class="status_bar" :style="{height: iStatusBarHeight + 'px'}"></view>
  5. <view class="indexnav">{{wxOpenData.unionName}}</view>
  6. </view>
  7. <view class="status_bar" :style="{height: iStatusBarHeight + 'px'}"></view>
  8. <view style="height: 43px;"></view>
  9. <view class="topBox" :style="{background:'#'+themeColor}" v-if="getwxLoing"></view>
  10. <view class="yuanhu" :style="{background:'#'+themeColor}" v-if="getwxLoing"></view>
  11. <view class="shoptopbox2" v-if="!carInfo">
  12. <view class="carinfoBox2">
  13. <view class="carinfoBoxNocar" @click="addCar">
  14. <img src="../../static/timg/addcar.png" alt="" class="carinfonocarIcon">
  15. <view class="carinfoBoxNocarRight">
  16. <view class="carinfoBoxNocarRightTitle">添加我的爱车</view>
  17. <view class="carinfoBoxNocarRightMS">按照车型推荐合适的商品</view>
  18. </view>
  19. </view>
  20. </view>
  21. </view>
  22. <view class="shoptopbox" v-if="carInfo">
  23. <view class="carinfoBox" >
  24. <view class="carinfoBoxTop">
  25. <img :src="carInfo.brandLogo" alt="" class="carLogo" v-if="carInfo.brandLogo">
  26. <img src="../../static/timg/nocar.png" alt="" class="carLogo" v-else>
  27. <view class="carinfoBoxTopCont">
  28. <view class="carinfoBoxTopContTop">
  29. <view class="carInfoplateNumber">{{carInfo.plateNumber}}</view>
  30. <view class="carTnfomilage" v-if="carInfo.milage">{{carInfo.milage}}km</view>
  31. </view>
  32. <view class="carInfocarModel" v-if="carInfo.carModel">{{carInfo.carModel}}</view>
  33. <view class="carInfocarModel" v-else>暂无</view>
  34. </view>
  35. <view class="carinfoBoxTopRight" @click="changeCar">
  36. <img src="../../static/timg/icon_change@2x.png" alt="" class="carinfoBoxTopRightIcon">
  37. <view class="huancheBtn">换车</view>
  38. </view>
  39. </view>
  40. <!-- <view class="carInfoBottom">
  41. <view class="carInfoBottomLine">
  42. <view class="carInfoBottomLineTitle">下次保养里程</view>
  43. <view class="carInfoBottomLineTxt" v-if="carInfo.nextCareMilage">{{carInfo.nextCareMilage}}</view>
  44. <view class="carInfoBottomLineTxt" v-else>暂无</view>
  45. </view>
  46. <view class="carInfoBottomLine">
  47. <view class="carInfoBottomLineTitle">下次保养日期</view>
  48. <view class="carInfoBottomLineTxt" v-if="carInfo.nextCareDate">{{carInfo.nextCareDate.slice(0,10)}}</view>
  49. <view class="carInfoBottomLineTxt" v-else>暂无</view>
  50. </view>
  51. <view class="carInfoBottomLine">
  52. <view class="carInfoBottomLineTitle">保养手册</view>
  53. <view class="carInfoBottomLineTxt" @click="information">点击查看</view>
  54. </view>
  55. </view> -->
  56. <view class="bxBox">
  57. <view class="bxline bxline1">
  58. <img src="../../static/timg/car1.png" alt="" class="bxlineIcon">
  59. <view class="bxlineTitle">保险</view>
  60. <view class="bxlineMs1" v-if="carInfo.insuranceExpireDate">{{InsuranceExpireDate}}天到期</view>
  61. <view class="bxlineMs2" v-else>--</view>
  62. </view>
  63. <view class="bxline bxline2">
  64. <img src="../../static/timg/car2.png" alt="" class="bxlineIcon" >
  65. <view class="bxlineTitle">下次保养</view>
  66. <view class="bxlineMs1" v-if="carInfo.nextCareDate||carInfo.nextCareMilage">
  67. <span v-if="NextCareDate||NextCareDate===0">{{NextCareDate}}天后</span>
  68. <span v-if="NextCareDate===0&&carInfo.nextCareMilage">或</span>
  69. <span v-if="carInfo.nextCareMilage&&NextCareDate">或</span>
  70. <span v-if="carInfo.nextCareMilage">{{carInfo.nextCareMilage}}km</span>
  71. </view>
  72. <view class="bxlineMs2" v-else>--</view>
  73. </view>
  74. <view class="bxline bxline1">
  75. <img src="../../static/timg/car3.png" alt="" class="bxlineIcon" >
  76. <view class="bxlineTitle">年审</view>
  77. <view class="bxlineMs1" v-if="carInfo.nextAuditDate">{{NextAuditDate}}天到期</view>
  78. <view class="bxlineMs2" v-else>--</view>
  79. </view>
  80. <view class="bxline bxline2">
  81. <img src="../../static/timg/car4.png" alt="" class="bxlineIcon" >
  82. <view class="bxlineTitle">保养手册</view>
  83. <view class="bxlineMs2" @click="information">点击查看</view>
  84. </view>
  85. </view>
  86. </view>
  87. </view>
  88. <!-- 服务顾问 -->
  89. <view v-if="homeCardList.openMUsers">
  90. <view class="adviser" v-if="homeCardList.openMUsers.showType!=2&&managerInfo" @click="goMUsers()">
  91. <view class="adviserLeft">
  92. <img v-if="managerInfo.avatar" :src="managerInfo.avatar" alt="" class="advisertx">
  93. <img v-else src="../../static/timg/pic_def_ava@2x.png" alt="" class="advisertx">
  94. <view class="adviserNema">{{managerInfo.name}}</view>
  95. <view class="adviserms" :style="{border:'1px solid #'+themeColor,color:'#'+themeColor}">服务顾问</view>
  96. </view>
  97. <img src="../../static/timg/icon_arrow_right.png" alt="" class="adviserJt">
  98. </view>
  99. </view>
  100. <!-- 中间功能应用模块 -->
  101. <view class="modular" v-if="homeCardList.application.length>0">
  102. <view class="swiper-item">
  103. <view class="itemLine" @click="goRoter(item)" v-for="(item,index) in homeCardList.application">
  104. <view><img :src="item.icon" alt="" class="itemImg"></view>
  105. <view class="Menusline">{{item.name}}</view>
  106. </view>
  107. </view>
  108. </view>
  109. <view class="advertisement" v-if="homeCardList.ad1.length>0">
  110. <swiper class="swiper2" circular :autoplay="true" :interval="interval"
  111. :duration="duration" :indicator-dots="true" indicator-color="#CCCCCC" :indicator-active-color="'#'+themeColor">
  112. <swiper-item v-for="(item,index) in homeCardList.ad1">
  113. <view class="swiper-item2" @click="goRoter(item)">
  114. <image class="swiper-item2Img" :src="item.icon" mode=""></image>
  115. </view>
  116. </swiper-item>
  117. </swiper>
  118. </view>
  119. <view class="advertisement" v-if="homeCardList.ad2.length>0">
  120. <swiper class="swiper2" circular :autoplay="true" :interval="interval"
  121. :duration="duration" :indicator-dots="true" indicator-color="#CCCCCC" :indicator-active-color="'#'+themeColor">
  122. <swiper-item v-for="(item,index) in homeCardList.ad2">
  123. <view class="swiper-item2" @click="goRoter(item)">
  124. <image class="swiper-item2Img" :src="item.icon" mode=""></image>
  125. </view>
  126. </swiper-item>
  127. </swiper>
  128. </view>
  129. <view class="advertisement" v-if="homeCardList.ad3.length>0">
  130. <swiper class="swiper2" circular :autoplay="true" :interval="interval"
  131. :duration="duration" :indicator-dots="true" indicator-color="#CCCCCC" :indicator-active-color="'#'+themeColor">
  132. <swiper-item v-for="(item,index) in homeCardList.ad3">
  133. <view class="swiper-item2" @click="goRoter(item)">
  134. <image class="swiper-item2Img" :src="item.icon" mode=""></image>
  135. </view>
  136. </swiper-item>
  137. </swiper>
  138. </view>
  139. <!-- 热门活动 -->
  140. <view v-if="homeCardList.openMActivity">
  141. <view class="Hot" v-if="homeCardList.openMActivity.openCollectingList.length>0">
  142. <view class="hotTop">
  143. <view class="hotLeft">
  144. <view class="hotSx" :style="{background:'#'+themeColor}"></view>
  145. <view class="hottitle">热门活动</view>
  146. </view>
  147. <view class="hotRight" @click="moreJk">
  148. <view class="hotMore">更多</view>
  149. <img src="../../static/timg/icon_arrow_right.png" alt="" class="hotMoreJt">
  150. </view>
  151. </view>
  152. <view class="hotLine" @click="goJk(item)" v-for="(item,index) in homeCardList.openMActivity.openCollectingList" v-if="index<homeCardList.openMActivity.showCount">
  153. <view class="hotLineTop">
  154. <image class="hotLineTopImg" :src="item.img" mode=""></image>
  155. <view class="hotlineTimebox">
  156. <!-- <view class="hotlinestate1" v-if="item.state==2">进行中</view>
  157. <view class="hotlinestate2" v-if="item.state==1">未开始</view> -->
  158. <image class="jkStateImg" v-if="item.state==2" src="../../static/img/bg_huangse.png" mode="" ></image>
  159. <image class="jkStateImg" v-if="item.state==1" src="../../static/img/bg_hongse.png" mode="" ></image>
  160. <view class="hotTime">{{item.startTime.slice(0,10)}}-{{item.endTime.slice(0,10)}}</view>
  161. </view>
  162. </view>
  163. <view class="hotName">{{item.activityName}}</view>
  164. </view>
  165. </view>
  166. </view>
  167. <!-- 热门车型 -->
  168. <view v-if="homeCardList.openMGoods">
  169. <view class="" v-if="homeCardList.openMGoods.length>0">
  170. <view class="Hot" v-if="homeCardList.openMGoods.showType==1">
  171. <view class="hotTop">
  172. <view class="hotLeft">
  173. <view class="hotSx" :style="{background:'#'+themeColor}"></view>
  174. <view class="hottitle">热门商品</view>
  175. </view>
  176. <view class="hotRight" @click="goShop">
  177. <view class="hotMore">更多</view>
  178. <img src="../../static/timg/icon_arrow_right.png" alt="" class="hotMoreJt">
  179. </view>
  180. </view>
  181. <view class="hotGoodsLine" v-for="(item,index) in homeCardList.openMGoods.goodsList" @click="goGoods(item)" v-if="index<homeCardList.openMGoods.showCount">
  182. <view>
  183. <image :src="item.url" mode="" class="hotGoodsLineImg"></image>
  184. </view>
  185. <view class="hotGoodsLineRIght">
  186. <view class="goodsName">{{item.name}}</view>
  187. <view class="Sold">
  188. <view v-if="item.showLabel&&item.showLabel.indexOf('3')!=-1">
  189. 已售 {{item.saleQty>0?item.saleQty:0}}
  190. </view>
  191. </view>
  192. <view class="goodsPrice">
  193. <view class="goodsPrice1" >{{item.saleLabel}}</view><!-- :style="{color:'#'+themeColor}" -->
  194. <view class="goodsPrice2" >¥</view>
  195. <view class="goodsPrice3" >{{item.salePrice}}
  196. <span v-if="item.categoryIds=='7B97D114-C419-42B2-9C1E-0B4CA284CDA0'">万</span>
  197. </view>
  198. <view class="goodsPrice4" v-if="item.showLabel&&item.scribingPrice&&item.showLabel.indexOf('1')!=-1">¥{{item.scribingPrice}}</view>
  199. </view>
  200. </view>
  201. </view>
  202. </view>
  203. </view>
  204. </view>
  205. <view style="height: 60rpx;"></view>
  206. <!-- 手机号授权 -->
  207. <view class="authorizBox" v-if="authorizShow" @click="authorizShow=false">
  208. <view class="authorizCont" @click.stop="">
  209. <view class="authorizName">{{wxOpenData.miniAppName}}</view>
  210. <view class="authorizMs">您好,欢迎访问本店,授权手机号登录能获取我们最新的促销活动哦~</view>
  211. <button class="authorizContbutton" type="default" open-type="getPhoneNumber" @getphonenumber="decryptPhoneNumber">授权</button>
  212. </view>
  213. <view style="text-align: center;padding-top: 56rpx;">
  214. <image src="../../static/timg/icon_guanbi@2x.png" mode="" class="authorizCloseImg"></image>
  215. </view>
  216. </view>
  217. <!-- <view @getphonenumber="decryptPhoneNumber" >shopId:{{shopId}}</view>
  218. -->
  219. </view>
  220. </template>
  221. <script>
  222. export default {
  223. data() {
  224. return {
  225. shopId: '',
  226. url:'',
  227. wxOpenData:'',
  228. code:'',
  229. carInfo:'',
  230. homeCardList:'',
  231. authorizShow:false,
  232. miniAppName:'',
  233. iStatusBarHeight:'',
  234. managerInfo:'',
  235. unionId:'',
  236. ext:'',
  237. duration:500,
  238. interval:3000,
  239. InsuranceExpireDate:'',
  240. NextCareDate:'',
  241. NextAuditDate:'',
  242. themeColor:'',
  243. getwxLoing:false,
  244. shareID:'',
  245. discount:'',
  246. bizUserId:'',
  247. coCouponsMsg:'',
  248. coNoNewCustMsg:'',
  249. }
  250. },
  251. onLoad(opt) {
  252. this.iStatusBarHeight = uni.getSystemInfoSync().statusBarHeight;
  253. var that=this;
  254. //this.$common.getExtStoreId()
  255. var ext=this.$common.getExtStoreId();
  256. this.ext=ext
  257. console.log(ext)
  258. //console.log( String(Date.now()))
  259. this.shopId=ext.shopId;
  260. this.url=ext.url;
  261. this.unionId=ext.unionId;
  262. var shareID = opt.scene //'F16E7299-6850-4015-ABCE-A9F2794B45B5'
  263. if (shareID) {
  264. this.shareID = shareID
  265. //this.$store.commit('mutationsshareID', shareID)
  266. }
  267. //this.shareID='C01DF9DA51A341888754DE0C4ADB29D9'
  268. //this.shareID='1BF04FAEC8844ECE9C40E880C3B13721'
  269. //this.unionId="26A1039A-DB10-4D0E-BBA2-541C06274EED";
  270. //this.ext.appId="wxffd2502e67d37908"
  271. // uni.setStorage({
  272. // key: 'extdata',
  273. // data: {
  274. // shopId:'E37BB296-5A08-4534-859D-B351BA611AF9',
  275. // },
  276. // success: function () {
  277. // that.uniLogin()
  278. // }
  279. // });
  280. //this.userInfo = uni.getStorageSync("userInfo");
  281. this.userInfo=this.$store.state.userInfo
  282. if(this.userInfo){
  283. //this.wxOpenData = uni.getStorageSync("wxOpenData");
  284. this.getCarList();
  285. this.queryHomeCardList()
  286. this.queryManagerInfo()
  287. }else{
  288. this.uniLogin()
  289. }
  290. },
  291. onShow() {
  292. var indexaddcar = uni.getStorageSync("indexaddcar")
  293. if(indexaddcar==1){
  294. uni.removeStorageSync('indexaddcar');
  295. this.getCarList();
  296. }else{
  297. this.carInfo=this.$store.state.carInfo;
  298. this.jsTime()
  299. }
  300. },
  301. onPullDownRefresh(){
  302. this.getCarList();
  303. this.queryHomeCardList()
  304. this.queryManagerInfo()
  305. setTimeout(() => {
  306. uni.stopPullDownRefresh(); // 关闭下拉刷新
  307. }, 1000);
  308. },
  309. methods: {
  310. addCar(){
  311. if(!this.userInfo){
  312. this.authorizShow=true;
  313. }else{
  314. uni.navigateTo({
  315. url:'../user/addCar/addCar?type=1'
  316. })
  317. }
  318. },
  319. goShop(){
  320. uni.switchTab({
  321. url:'../shop/shop'
  322. })
  323. },
  324. moreJk(){
  325. uni.switchTab({
  326. url:'../activity/activity'
  327. })
  328. },
  329. information(){
  330. console.log('车辆信息--',this.carInfo);
  331. uni.navigateTo({
  332. url:'handbook?mileage='+this.carInfo.milage+'&liyangId='+this.carInfo.nLevelID
  333. })
  334. },
  335. changeCar(){
  336. // uni.scanCode({
  337. // success: function (res) {
  338. // console.log('条码类型:' + res.scanType);
  339. // console.log( res);
  340. // }
  341. // });
  342. // return false;
  343. uni.navigateTo({
  344. url:'../user/addCar/cailist'
  345. })
  346. },
  347. goMUsers(){
  348. if(!this.userInfo){
  349. this.authorizShow=true;
  350. }else{
  351. var managerInfo={
  352. name:this.managerInfo.name,
  353. shopInfo:{
  354. shopName:this.managerInfo.shopInfo.shopName,
  355. provinceName:this.managerInfo.shopInfo.provinceName,
  356. cityName:this.managerInfo.shopInfo.cityName,
  357. areaName:this.managerInfo.shopInfo.areaName,
  358. Address:this.managerInfo.shopInfo.Address,
  359. },
  360. avatar:this.managerInfo.avatar
  361. }
  362. uni.navigateTo({
  363. url:'../index/personalCard?adInfo='+JSON.stringify(managerInfo)
  364. })
  365. }
  366. },
  367. goGoods(item){
  368. if(!this.userInfo){
  369. this.authorizShow=true;
  370. }else{
  371. uni.navigateTo({
  372. url:'../shop/goodsDetail?id='+item.id
  373. })
  374. }
  375. },
  376. goJk(item){
  377. if(!this.userInfo){
  378. this.authorizShow=true;
  379. }else{
  380. uni.navigateTo({
  381. url:'../activity/jkDetail?id='+item.id
  382. })
  383. }
  384. },
  385. goRoter(item){
  386. console.log(item)
  387. if(!this.userInfo){
  388. this.authorizShow=true;
  389. }else{
  390. if(item.bizType==0){
  391. if(item.name=='新车'){ //
  392. uni.navigateTo({
  393. url:'newCar'
  394. })
  395. }else if(item.name=='二手车'){
  396. uni.navigateTo({
  397. url:'usedCar'
  398. })
  399. }else if(item.name=='爱车估价'){
  400. uni.navigateTo({
  401. url:'evaluation'
  402. })
  403. }
  404. else{
  405. uni.showToast({
  406. title: '敬请期待',
  407. icon:'none',
  408. duration: 3000
  409. });
  410. }
  411. }else if(item.bizType==1){ //紧急救援
  412. // uni.navigateTo({
  413. // url:'rescue'
  414. // })
  415. uni.showToast({
  416. title: '敬请期待',
  417. icon:'none',
  418. duration: 3000
  419. });
  420. }else if(item.bizType==2){ //钣金喷漆
  421. uni.navigateTo({
  422. url:'paint'
  423. })
  424. }else if(item.bizType==3){ //保养
  425. uni.navigateTo({
  426. url:'maintain'
  427. })
  428. }else if(item.bizType==4){ //在线预约
  429. uni.navigateTo({
  430. url:'onlineBooking?naShopId='+item.naShopId
  431. })
  432. }else if(item.bizType==5){ //导航
  433. this.getShopinfo(5,item.reShopId)
  434. }else if(item.bizType==6){ //联系本店
  435. this.getShopinfo(6,item.orShopId)
  436. }else if(item.bizType==7){ //7门店列表
  437. uni.navigateTo({
  438. url:'shopList'
  439. })
  440. }else if(item.bizType==8){ //我的会员卡
  441. uni.navigateTo({
  442. url:'vipCard'
  443. })
  444. }else if(item.bizType==9){ //我的优惠券
  445. uni.navigateTo({
  446. url:'discountCard'
  447. })
  448. }else if(item.bizType==10){ //我的订单
  449. uni.navigateTo({
  450. url:'../user/myOrder/myOrder'
  451. })
  452. }else if(item.bizType==11){ //我的预约
  453. uni.navigateTo({
  454. url:'../user/myBespeak'
  455. })
  456. }else if(item.bizType==12){ //历史消费
  457. uni.navigateTo({
  458. url:'../user/historySpend'
  459. })
  460. }else if(item.bizType==12){ //历史消费
  461. uni.navigateTo({
  462. url:'../user/historySpend'
  463. })
  464. }else if(item.bizType==13){ //车检报告
  465. uni.navigateTo({
  466. url:'../user/checkReport'
  467. })
  468. }else if(item.bizType==14){ //指定商品分类
  469. uni.setStorage({
  470. key: 'shopcategoryID',
  471. data: item.bizId,
  472. success: function () {
  473. getApp().globalData.shopcategoryID=item.bizId;
  474. uni.switchTab({
  475. url:'../shop/shop?shopcategoryID='+ item.bizId
  476. })
  477. }
  478. });
  479. }else if(item.bizType==15){ //商品详情
  480. uni.navigateTo({
  481. url:'../shop/goodsDetail?id='+item.bizId
  482. })
  483. }else if(item.bizType==16){ //积分商城
  484. uni.navigateTo({
  485. url:'../integral/integral'
  486. })
  487. }
  488. // uni.navigateTo({
  489. // url:url
  490. // })
  491. }
  492. },
  493. decryptPhoneNumber: function(e) {
  494. console.log(e);
  495. this.code=e.detail.code
  496. this.wxPhoneLogin()
  497. this.authorizShow=false;
  498. },
  499. wxgologin(){
  500. var that=this;
  501. uni.getUserProfile({
  502. lang:'zh_CN',
  503. desc:'登录',
  504. success:(res)=>{
  505. console.log(res);
  506. that.wxdata=res;
  507. uni.setStorage({
  508. key: 'wxdata',
  509. data: res,
  510. success: function () {
  511. that.uniLogin()
  512. }
  513. });
  514. },
  515. fail:(res)=>{
  516. console.log(res)
  517. }
  518. });
  519. },
  520. uniLogin(){
  521. var that=this;
  522. uni.login({
  523. provider: 'weixin',
  524. success: function (loginRes) {
  525. console.log(loginRes);
  526. that.getWxOpenID(loginRes)
  527. }
  528. });
  529. },
  530. getWxOpenID(e){
  531. var that=this;
  532. uni.showLoading({
  533. title: '加载中'
  534. })
  535. this.$http('miniApp2/sys/getWxOpenID', {
  536. code:e.code,
  537. unionId:this.unionId,
  538. shareId:this.shareID
  539. },'GET').then(res => {
  540. console.log(res.code);
  541. console.log("授权信息")
  542. console.log(res)
  543. uni.hideLoading();
  544. if(res.code!=0){
  545. //uni.hideLoading();
  546. var msg=res.msg
  547. if(!msg){
  548. msg='授权失败'
  549. }
  550. console.log(msg);
  551. // uni.showModal({
  552. // title: '提示',
  553. // content: msg,
  554. // success: function(resTK) {
  555. // if (resTK.confirm) {
  556. // }
  557. // }
  558. // });
  559. // uni.showToast({
  560. // title:msg,
  561. // icon: 'none',
  562. // duration: 3000
  563. // });
  564. //return false
  565. }
  566. this.wxOpenData=res.data;
  567. this.themeColor=res.data.themeColor
  568. //this.themeColor='FFFFFF'
  569. this.getwxLoing=true;
  570. uni.setNavigationBarTitle({
  571. title:this.wxOpenData.miniAppName
  572. })
  573. if(this.themeColor=='6F2BE8'){
  574. var backgroundImage='/static/tabimg/index6F2BE8.png'
  575. }
  576. if(this.themeColor=='1677FF'){
  577. var backgroundImage='/static/tabimg/index1677FF.png'
  578. }
  579. if(this.themeColor=='FF4F00'){
  580. var backgroundImage='/static/tabimg/indexFF4F00.png'
  581. }
  582. if(this.themeColor=='D53533'){
  583. var backgroundImage='/static/tabimg/index1.png'
  584. }
  585. uni.setTabBarStyle({
  586. // color: '#FF0000',
  587. selectedColor: '#'+this.themeColor,
  588. })
  589. uni.setTabBarItem({
  590. index: 0,
  591. text: '首页',
  592. selectedIconPath: backgroundImage
  593. })
  594. that.queryHomeCardList()
  595. //that.wxPhoneLogin()
  596. this.$store.commit('mutationswxOpenData', that.wxOpenData)
  597. uni.setStorage({
  598. key: 'wxOpenData',
  599. data: that.wxOpenData,
  600. success: function () {
  601. // that.uniLogin()
  602. }
  603. });
  604. uni.setStorage({
  605. key: 'themeColor',
  606. data: that.themeColor,
  607. success: function () {
  608. // that.uniLogin()
  609. }
  610. });
  611. if(this.wxOpenData.loginInfo){
  612. this.$store.commit('mutationsuserInfo', that.wxOpenData.loginInfo.openUser)
  613. this.userInfo=that.wxOpenData.loginInfo.openUser
  614. that.queryManagerInfo()
  615. uni.setStorage({
  616. key: 'userInfo',
  617. data: that.wxOpenData.loginInfo.openUser,
  618. success: function () {
  619. that.getCarList()
  620. }
  621. });
  622. }else{
  623. this.authorizShow=true;
  624. }
  625. if(res.data.loginInfo.discount){
  626. that.discount=res.data.loginInfo.discount;
  627. if(that.discount==2){
  628. that.bizUserId=res.data.loginInfo.bizUserId;
  629. }
  630. if(that.shareID){
  631. that.getCouponList()
  632. }
  633. }
  634. if(res.data.loginInfo.coNoNewCustMsg){ //车主合伙人二维码提示
  635. uni.showModal({
  636. title: '提示',
  637. content:res.data.loginInfo.coNoNewCustMsg,
  638. success: function(resTKk) {
  639. }
  640. });
  641. }
  642. //console.log("优惠券")
  643. })
  644. },
  645. wxPhoneLogin(){
  646. var that=this;
  647. this.$http('miniApp2/sys/wxPhoneLogin', {
  648. appId:this.ext.appId,
  649. unionId:this.unionId,
  650. code:this.code,
  651. openId:this.wxOpenData.openid,
  652. shareId:this.shareID
  653. },'POST').then(res => {
  654. var data = res.data;
  655. if(data.loginInfo){
  656. this.userInfo=data.loginInfo.openUser;
  657. this.$store.commit('mutationsuserInfo', this.userInfo);
  658. this.$store.commit('mutationswxOpenData', data);
  659. uni.setStorage({
  660. key: 'userInfo',
  661. data: data.loginInfo.openUser,
  662. success: function () {
  663. that.getCarList()
  664. that.queryHomeCardList()
  665. that.queryManagerInfo();
  666. if(data.loginInfo.coCouponsMsg){
  667. uni.hideLoading()
  668. that.coCouponsMsg =data.loginInfo.coCouponsMsg;
  669. that.ownerCoupon()
  670. }
  671. if(data.loginInfo.coNoNewCustMsg){
  672. //console.log(data.loginInfo.coNoNewCustMsg)
  673. uni.hideLoading()
  674. that.coNoNewCustMsg =data.loginInfo.coNoNewCustMsg;
  675. that.coNoNewCust()
  676. }
  677. if(data.loginInfo.discount){
  678. that.discount=data.loginInfo.discount;
  679. if(that.discount==2){
  680. that.bizUserId=data.loginInfo.bizUserId;
  681. }
  682. if(that.shareID&&that.discount==2){
  683. that.getCouponList()
  684. }
  685. }
  686. }
  687. });
  688. }
  689. })
  690. },
  691. coNoNewCust(){
  692. console.log(111111)
  693. var that=this;
  694. uni.showModal({
  695. title: '提示',
  696. content: that.coNoNewCustMsg,
  697. success: function(resTK) {
  698. }
  699. });
  700. },
  701. ownerCoupon(){
  702. console.log(22222)
  703. var that=this;
  704. uni.showModal({
  705. title: '提示',
  706. content: that.coCouponsMsg,
  707. cancelText:'回到首页',
  708. confirmText:'查看',
  709. success: function(resTK) {
  710. if (resTK.confirm) {
  711. uni.navigateTo({
  712. url:'discountCard'
  713. })
  714. }
  715. }
  716. });
  717. },
  718. getCouponList(){
  719. if(this.discount!=2){
  720. var params={
  721. discount:this.discount
  722. }
  723. }else{
  724. var params={
  725. discount:this.discount,
  726. bizId:this.bizUserId
  727. }
  728. }
  729. var that=this;
  730. this.$http('opencoupon/getCouponList', params, 'GET').then(res => {
  731. var list = res.data;
  732. if(list.length>0){
  733. uni.showModal({
  734. title: '提示',
  735. content: '您有优惠券待领取',
  736. cancelText:'回到首页',
  737. confirmText:'查看',
  738. success: function(resTK) {
  739. if (resTK.confirm) {
  740. uni.navigateTo({
  741. url:'discountDlq?bizUserId='+that.bizUserId+'&discount='+that.discount
  742. })
  743. }
  744. }
  745. });
  746. }
  747. })
  748. },
  749. getCarList(){
  750. this.$http('opencarOwnerHome/queryCarInfoList', {
  751. },'GET').then(res => {
  752. if(res.code==401){
  753. this.uniLogin()
  754. }else{
  755. this.carInfo=res.data[0]
  756. this.$store.commit('mutationscarInfo', this.carInfo)
  757. /* this.carInfo.insuranceExpireDate='2022-11-11';
  758. this.carInfo.nextAuditDate='2022-08-13'; */
  759. //this.carInfo.nextCareDate='2022-08-11';
  760. //this.carInfo.nextCareMilage=11
  761. this.jsTime()
  762. }
  763. })
  764. },
  765. jsTime(){
  766. if(this.carInfo.insuranceExpireDate){
  767. if (Number(new Date().getTime()) > (Number(new Date(this.carInfo.insuranceExpireDate.replace(/-/g, '/')).getTime()) || 0)) {
  768. console.log("现在时间大于开始时间")
  769. this.InsuranceExpireDate = 0
  770. } else {
  771. this.clock()
  772. }
  773. }else{
  774. this.InsuranceExpireDate=''
  775. }
  776. if(this.carInfo.nextCareDate){
  777. if (Number(new Date().getTime()) > (Number(new Date(this.carInfo.nextCareDate.replace(/-/g, '/')).getTime()) || 0)) {
  778. this.NextCareDate = 0
  779. } else {
  780. this.clock2()
  781. }
  782. }else{
  783. this.NextCareDate = ''
  784. }
  785. if(this.carInfo.nextAuditDate){
  786. if (Number(new Date().getTime()) > (Number(new Date(this.carInfo.nextAuditDate.replace(/-/g, '/')).getTime()) || 0)) {
  787. this.NextAuditDate = 0
  788. } else {
  789. this.clock3()
  790. }
  791. }else{
  792. this.NextAuditDate=''
  793. }
  794. },
  795. clock () {
  796. let _this = this
  797. let today = new Date() // 当前时间
  798. let h = today.getHours()
  799. let m = today.getMinutes()
  800. let s = today.getSeconds()
  801. let stopTime = new Date(_this.carInfo.insuranceExpireDate.replace(/-/g, '/')) // 结束时间
  802. let stopH = stopTime.getHours()
  803. let stopM = stopTime.getMinutes()
  804. let stopS = stopTime.getSeconds()
  805. let shenyu = stopTime.getTime() - today.getTime() // 倒计时毫秒数
  806. let shengyuD = parseInt(shenyu / (60 * 60 * 24 * 1000)) // 转换为天
  807. this.InsuranceExpireDate=shengyuD+1;
  808. // setTimeout(_this.clock, 500)
  809. },
  810. clock2 () {
  811. let _this = this
  812. let today = new Date() // 当前时间
  813. let stopTime = new Date(_this.carInfo.nextCareDate.replace(/-/g, '/')) // 结束时间
  814. let stopH = stopTime.getHours()
  815. let stopM = stopTime.getMinutes()
  816. let stopS = stopTime.getSeconds()
  817. let shenyu = stopTime.getTime() - today.getTime() // 倒计时毫秒数
  818. let shengyuD = parseInt(shenyu / (60 * 60 * 24 * 1000)) // 转换为天
  819. this.NextCareDate=shengyuD+1;
  820. // setTimeout(_this.clock, 500)
  821. },
  822. clock3 () {
  823. let _this = this
  824. let today = new Date() // 当前时间
  825. let stopTime = new Date(_this.carInfo.nextAuditDate.replace(/-/g, '/')) // 结束时间
  826. let shenyu = stopTime.getTime() - today.getTime() // 倒计时毫秒数
  827. let shengyuD = parseInt(shenyu / (60 * 60 * 24 * 1000)) // 转换为天
  828. this.NextAuditDate=shengyuD+1;
  829. // setTimeout(_this.clock, 500)
  830. },
  831. queryManagerInfo(){
  832. console.log("11")
  833. this.$http('openHome/queryManagerInfo', {
  834. },'GET').then(res => {
  835. this.managerInfo=res.data
  836. })
  837. },
  838. queryHomeCardList(){
  839. //console.log(this.wxOpenData)
  840. uni.showLoading({
  841. title: '加载中'
  842. })
  843. this.$http('openHome/queryHomeCardList', {
  844. unionId:this.unionId
  845. },'GET').then(res => {
  846. uni.hideLoading();
  847. this.homeCardList=res.data
  848. })
  849. },
  850. getShopinfo(num,shopId){
  851. var that=this;
  852. uni.showLoading({
  853. title: '加载中'
  854. })
  855. if(!shopId){
  856. shopId=''
  857. }
  858. this.$http('openmy/getShopinfo', {
  859. shopId:shopId
  860. },'GET').then(res => {
  861. uni.hideLoading();
  862. var res=res.data
  863. if(num==5){
  864. uni.openLocation({
  865. latitude:Number(res.lat),
  866. longitude:Number(res.lng),
  867. name: res.shopName,
  868. address: res.address,
  869. success: function() {
  870. console.log('success');
  871. },
  872. fail(err) {
  873. console.log(err)
  874. }
  875. });
  876. }else{
  877. uni.makePhoneCall({
  878. phoneNumber: res.contactorPhone
  879. });
  880. }
  881. })
  882. }
  883. }
  884. }
  885. </script>
  886. <style scoped>
  887. .bxBox{
  888. display: flex;
  889. flex-wrap: wrap;
  890. }
  891. .bxline{
  892. display: flex;
  893. padding-top: 22rpx;
  894. }
  895. .bxline1{
  896. width: 40%;
  897. }
  898. .bxline2{
  899. width: 60%;
  900. }
  901. .bxlineTitle{
  902. color: #333333;
  903. font-size: 26rpx;
  904. line-height: 37rpx;
  905. padding-left: 10rpx;
  906. }
  907. .bxlineMs1{
  908. line-height: 37rpx;
  909. color: #D53533;
  910. font-size: 26rpx;
  911. padding-left: 12rpx;
  912. }
  913. .bxlineMs2{
  914. line-height: 37rpx;
  915. color: #999999;
  916. font-size: 24rpx;
  917. padding-left: 12rpx;
  918. }
  919. .bxlineIcon{
  920. width: 34rpx;
  921. height: 34rpx;
  922. margin-left: 24rpx;
  923. }
  924. .indexTop{
  925. background: #D53533;
  926. width: 750rpx;
  927. position: fixed;
  928. top: 0;
  929. left: 0;
  930. z-index: 11;
  931. }
  932. .indexnav{
  933. height: 44px;
  934. line-height: 44px;
  935. text-align: center;
  936. font-size: 36rpx;
  937. color: #FFFFFF;
  938. }
  939. .authorizBox{
  940. width: 100vw;
  941. height: 100vh;
  942. background: rgba(0, 0, 0, 0.5);
  943. position: fixed;
  944. top: 0;
  945. left: 0;
  946. }
  947. .authorizCont{
  948. margin-top: 30vh;
  949. width: 564rpx;
  950. height: 408rpx;
  951. background: #FFFFFF;
  952. border-radius: 24rpx;
  953. margin-left: 93rpx;
  954. position: relative;
  955. }
  956. .authorizCloseImg{
  957. width: 62rpx;
  958. height: 62rpx;
  959. }
  960. .sqLogoBox{
  961. width: 180rpx;
  962. height: 180rpx;
  963. background: #FFFFFF;
  964. border-radius: 90rpx;
  965. text-align: center;
  966. position: absolute;
  967. top: -50rpx;
  968. left: 192rpx;
  969. }
  970. .authorizName{
  971. color: #333333;
  972. line-height: 42rpx;
  973. font-size: 30rpx;
  974. text-align: center;
  975. padding-top: 58rpx;
  976. }
  977. .authorizMs{
  978. color: #999999;
  979. line-height: 36rpx;
  980. font-size: 26rpx;
  981. width: 452rpx;
  982. padding-top: 24rpx;
  983. text-align: center;
  984. margin-left: 56rpx;
  985. }
  986. .authorizContbutton{
  987. width: 422rpx;
  988. height: 88rpx;
  989. background: #D53533;
  990. border-radius: 44rpx;
  991. line-height: 88rpx;
  992. text-align: center;
  993. font-size:30rpx;
  994. color: #FFFFFF;
  995. margin-top: 62rpx;
  996. margin-left:71rpx;
  997. }
  998. .content{
  999. min-height: 100vh;
  1000. background: #F4F5F7;
  1001. }
  1002. .topBox{
  1003. width: 750rpx;
  1004. height: 150rpx;
  1005. background: #D53533;
  1006. }
  1007. .yuanhu{
  1008. width: 750rpx;
  1009. height: 50rpx;
  1010. background: #D53533;
  1011. border-radius: 0 0 100% 100%;
  1012. }
  1013. .carinfoBox{
  1014. width: 702rpx;
  1015. /* height: 250rpx; */
  1016. background: #FFFFFF;
  1017. border-radius: 10rpx;
  1018. margin-left: 24rpx;
  1019. overflow: hidden;
  1020. height: 270rpx;
  1021. }
  1022. .carinfoBox2{
  1023. width: 702rpx;
  1024. height: 180rpx;
  1025. background: #FFFFFF;
  1026. border-radius: 10rpx;
  1027. margin-left: 24rpx;
  1028. overflow: hidden;
  1029. }
  1030. .carinfoBox2{
  1031. }
  1032. .carinfoBox .carLogo{
  1033. width: 60rpx;height: 60rpx;
  1034. margin-top: 6rpx;
  1035. }
  1036. .carinfoBoxTop{
  1037. display: flex;
  1038. justify-content: space-between;
  1039. padding-top: 29rpx;
  1040. padding-left: 24rpx;
  1041. padding-right: 20rpx;
  1042. padding-bottom: 24rpx;
  1043. border: 1px solid #EEEEEE;
  1044. }
  1045. .carinfoBoxTopCont{
  1046. width: 454rpx;
  1047. }
  1048. .carinfoBoxTopContTop{
  1049. display: flex;
  1050. }
  1051. .carInfoplateNumber{
  1052. font-weight: 500;
  1053. color: #3C3C3C;
  1054. font-size: 30rpx;
  1055. line-height: 42rpx;
  1056. padding-right: 16rpx;
  1057. }
  1058. .carTnfomilage{
  1059. color: #F19D01;
  1060. font-size: 22rpx;
  1061. padding: 0rpx 10rpx;
  1062. border-radius: 4rpx;
  1063. border: 1px solid #F19D01;
  1064. height: 32rpx;
  1065. line-height: 34rpx;
  1066. margin-top: 2rpx;
  1067. margin-left: 2rpx;
  1068. }
  1069. .carInfocarModel{
  1070. width: 454rpx;
  1071. color: #666666;
  1072. font-size: 26rpx;
  1073. white-space: nowrap;
  1074. overflow: hidden;
  1075. text-overflow: ellipsis;
  1076. }
  1077. .carinfoBoxTopRight{
  1078. display: flex;padding-top: 25rpx;
  1079. }
  1080. .carinfoBoxTopRightIcon{
  1081. width: 29rpx;
  1082. height: 31rpx;
  1083. }
  1084. .huancheBtn{
  1085. color: #666666; font-size: 26rpx;line-height: 31rpx;
  1086. padding-left: 10rpx;
  1087. }
  1088. .carInfoBottom{
  1089. display: flex;
  1090. justify-content: space-around;
  1091. }
  1092. .carInfoBottomLineTitle{
  1093. color: #999999;font-size: 24rpx;
  1094. text-align: center;
  1095. padding-top: 24rpx;
  1096. }
  1097. .carInfoBottomLineTxt{
  1098. color: #3C3C3C;
  1099. font-size: 26rpx;
  1100. padding-top: 5rpx;
  1101. text-align: center;
  1102. }
  1103. .carinfonocarIcon{
  1104. width: 72rpx;
  1105. height: 72rpx;
  1106. }
  1107. .carinfoBoxNocar{
  1108. display: flex;
  1109. padding-top: 50rpx;
  1110. padding-left: 20rpx;
  1111. }
  1112. .carinfoBoxNocarRightTitle{
  1113. font-weight: 500;
  1114. color: #3C3C3C;
  1115. font-size: 30rpx;
  1116. }
  1117. .carinfoBoxNocarRightMS{
  1118. color: #666666;
  1119. font-size: 26rpx;
  1120. }
  1121. .carinfoBoxNocarRight{
  1122. padding-left: 24rpx;
  1123. }
  1124. .shoptopbox{
  1125. margin-top: -170rpx;
  1126. }
  1127. .shoptopbox2{
  1128. margin-top: -170rpx;
  1129. }
  1130. .adviser{
  1131. width: 662rpx;
  1132. margin-left: 24rpx;
  1133. background: #FFFFFF;
  1134. border-radius: 10px;
  1135. display: flex;
  1136. justify-content: space-between;
  1137. padding: 18rpx 20rpx;
  1138. margin-top: 20rpx;
  1139. }
  1140. .adviserLeft{
  1141. display: flex;
  1142. }
  1143. .advisertx{
  1144. width: 62rpx;height: 62rpx;
  1145. }
  1146. .adviserNema{
  1147. color: #333333;font-size: 30rpx;
  1148. line-height: 62rpx;padding-left: 24rpx;
  1149. }
  1150. .adviserms{
  1151. width: 118rpx;
  1152. height: 36rpx;
  1153. border-radius: 4rpx;
  1154. border: 1px solid #D53533;
  1155. line-height: 36rpx;
  1156. text-align: center;
  1157. margin-top: 12rpx;
  1158. margin-left: 20rpx;
  1159. color: #D53533;
  1160. font-size: 24rpx;
  1161. }
  1162. .adviserJt{
  1163. width: 12rpx;
  1164. height: 20rpx;
  1165. margin-top: 20rpx;
  1166. }
  1167. .modular{
  1168. width: 702rpx;
  1169. /* height: 313rpx; */
  1170. background: #FFFFFF;
  1171. border-radius: 10px;
  1172. margin-top: 20rpx;
  1173. margin-left: 24rpx;
  1174. padding-bottom: 40rpx;
  1175. }
  1176. .swiper-item{
  1177. display: flex;
  1178. flex-wrap: wrap;
  1179. }
  1180. .itemImg{
  1181. width: 46rpx;
  1182. height: 46rpx;
  1183. }
  1184. .Menusline{
  1185. font-size: 24rpx;
  1186. color: #333333;
  1187. }
  1188. .itemLine{
  1189. width: 20%;
  1190. text-align: center;
  1191. padding-top: 40rpx;
  1192. }
  1193. .advertisement{
  1194. width: 702rpx;
  1195. height: 280rpx;
  1196. margin-top: 20rpx;
  1197. margin-left: 24rpx;
  1198. border-radius: 20rpx;
  1199. }
  1200. .swiper-item2{
  1201. width: 702rpx;
  1202. height: 280px;
  1203. }
  1204. .swiper-item2Img{
  1205. width: 702rpx;
  1206. height: 280rpx;
  1207. }
  1208. .hotMoreJt{
  1209. width: 12rpx;
  1210. height: 20rpx;
  1211. margin-top: 6rpx;
  1212. }
  1213. .Hot{
  1214. width: 702rpx;
  1215. margin-top: 20rpx;
  1216. margin-left: 24rpx;
  1217. }
  1218. .hotTop{
  1219. display: flex;
  1220. justify-content: space-between;
  1221. padding: 6rpx 0;
  1222. }
  1223. .hotSx{
  1224. width: 8rpx;
  1225. height: 30rpx;
  1226. background: #FF0000;
  1227. border-radius: 5rpx;
  1228. }
  1229. .hotLeft{
  1230. display: flex;
  1231. }
  1232. .hottitle{
  1233. font-weight: 500;
  1234. color: #333333;
  1235. font-size: 30rpx;
  1236. line-height: 30rpx;
  1237. margin-left: 16rpx;
  1238. }
  1239. .hotRight{
  1240. display: flex;
  1241. }
  1242. .hotMore{
  1243. line-height: 30rpx;color: #666666;font-size: 24rpx;
  1244. margin-right: 16rpx;
  1245. }
  1246. .hotLineTopImg{
  1247. width: 702rpx;
  1248. height: 280rpx;
  1249. display: block;
  1250. }
  1251. .hotLineTop{
  1252. position: relative;
  1253. height: 280rpx;
  1254. }
  1255. .hotLine{
  1256. margin-top: 20rpx;
  1257. border-radius: 10rpx;
  1258. background: #FFFFFF;
  1259. overflow: hidden;
  1260. }
  1261. .hotlinestate1{
  1262. width: 102rpx;
  1263. height: 44rpx;
  1264. background:#FBBF00 ;
  1265. line-height: 44rpx;
  1266. font-weight: 500;
  1267. color: #333333;
  1268. font-size: 24rpx;
  1269. text-align: center;
  1270. }
  1271. .hotlinestate2{
  1272. width: 102rpx;
  1273. height: 44rpx;
  1274. background:#FF0000 ;
  1275. line-height: 44rpx;
  1276. font-weight: 500;
  1277. color: #FFFFFF;
  1278. font-size: 24rpx;
  1279. text-align: center;
  1280. }
  1281. .hotlineTimebox{
  1282. position: absolute;
  1283. left: 0;
  1284. bottom: 0;
  1285. display: flex;
  1286. align-items: flex-end;
  1287. }
  1288. .hotTime{
  1289. background: rgba(0, 0, 0, 0.5);
  1290. font-weight: 400;
  1291. color: #FFFFFF;
  1292. font-size: 24rpx;
  1293. /* line-height: 44rpx; */
  1294. padding: 5rpx 20rpx;
  1295. margin-top: 9rpx;
  1296. margin-left: -8rpx;
  1297. border-radius: 0px 10rpx 0px 0px;
  1298. }
  1299. .hotName{
  1300. padding: 24rpx 20rpx;
  1301. color: #333333;
  1302. line-height: 40rpx;
  1303. font-size: 28rpx;
  1304. }
  1305. .hotGoodsLine{
  1306. margin-top: 30rpx;
  1307. padding: 20rpx;
  1308. background: #FFFFFF;
  1309. border-radius: 16rpx;
  1310. display: flex;
  1311. }
  1312. .hotGoodsLineImg{
  1313. width: 208rpx;
  1314. height: 194rpx;
  1315. border-radius: 16rpx;
  1316. border: 1px solid #EEEEEE;
  1317. display: block;
  1318. }
  1319. .goodsName{
  1320. font-size: 28rpx;
  1321. font-family: PingFangSC-Regular, PingFang SC;
  1322. font-weight: 400;
  1323. color: #333333;
  1324. line-height: 40rpx;
  1325. text-overflow: -o-ellipsis-lastline;
  1326. overflow: hidden;
  1327. text-overflow: ellipsis;
  1328. display: -webkit-box;
  1329. -webkit-line-clamp: 2;
  1330. line-clamp: 2;
  1331. -webkit-box-orient: vertical;
  1332. }
  1333. .hotGoodsLineRIght{
  1334. padding-left: 24rpx;
  1335. }
  1336. .goodsPrice{
  1337. display: flex;
  1338. padding-top: 10rpx;
  1339. }
  1340. .goodsPrice1{
  1341. font-size: 24rpx;
  1342. font-weight: 400;
  1343. color: #FF0000;
  1344. padding-top: 8rpx;
  1345. }
  1346. .goodsPrice2{
  1347. font-size: 22rpx;
  1348. font-weight: 400;
  1349. color: #FF0000;
  1350. padding-top: 10rpx;
  1351. }
  1352. .goodsPrice3{
  1353. font-size: 32rpx;
  1354. font-weight: 500;
  1355. color: #FF0000;
  1356. }
  1357. .goodsPrice4{
  1358. font-size: 24rpx;
  1359. font-weight: 400;
  1360. color: #999999;
  1361. padding-top: 8rpx;
  1362. padding-left: 10rpx;
  1363. text-decoration:line-through;
  1364. }
  1365. .Sold{
  1366. font-weight: 400;
  1367. color: #999999;
  1368. font-size: 24rpx;
  1369. padding-top: 8rpx;
  1370. }
  1371. .jkStateImg{
  1372. width: 102rpx;
  1373. height: 53rpx;
  1374. position: relative;
  1375. }
  1376. </style>