index.vue 61 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314
  1. <template>
  2. <view class="content">
  3. <view v-show="homeCardList">
  4. <view class="top" :style="{background:'#'+themeColor}">
  5. <view class="status_bar" :style="{height: iStatusBarHeight + 'px'}"></view>
  6. <view class="logoBox">
  7. <!-- <image src="../../static/img2/indexlogo.png" mode="" class="logoImg"></image> -->
  8. <image v-if="appletHomeSetting.showImageType==0" :src="appletHomeSetting.showImage" mode="" class="logoImg"></image>
  9. <view class="showTitleBox">
  10. {{appletHomeSetting.showTitle}}
  11. </view>
  12. </view>
  13. </view>
  14. <view>
  15. <view class="status_bar" :style="{height: iStatusBarHeight + 'px'}"></view>
  16. <view style="height: 98rpx;"></view>
  17. </view>
  18. <view class="topCont" :style="{background:'#'+themeColor}"></view>
  19. <view style="padding: 8rpx 20rpx;margin-top: -110rpx;">
  20. <!-- 有车 -->
  21. <view class="carBox" v-if="carInfo">
  22. <view class="carBox2">
  23. <view class="carLeft">
  24. <view class="carTop" @click="changeCar">
  25. <image :src="carInfo.brandLogo" mode="" class="carLogo"></image>
  26. <view class="carInfomodel">{{carInfo.brand?carInfo.brand:''}}&nbsp;{{carInfo.series?carInfo.series:''}}</view>
  27. <image src="../../static/img2/xia.png" mode="" class="carXia"></image>
  28. <view class="plateNumber" v-if="carInfo.plateNumber">
  29. <span class="plateNumberSpan1">{{carInfo.plateNumber.slice(0, 2)}}</span>
  30. <span class="plateNumberSpan2">{{carInfo.plateNumber.slice(2)}}</span>
  31. </view>
  32. <!-- <image src="../../static/img2/carBj.png" mode="" class="carBj"></image> -->
  33. </view>
  34. <view class="carBq">
  35. <view class="carBqLine">
  36. <image src="../../static/img2/carDui.png" mode="" class="carDui"></image>
  37. <view class="carTitle">车况报告</view>
  38. </view>
  39. <view class="carBqLine">
  40. <image src="../../static/img2/carDui.png" mode="" class="carDui"></image>
  41. <view class="carTitle">保养记录</view>
  42. </view>
  43. <view class="carBqLine">
  44. <image src="../../static/img2/carDui.png" mode="" class="carDui"></image>
  45. <view class="carTitle">快速救援</view>
  46. </view>
  47. </view>
  48. </view>
  49. <view class="carRight">
  50. <image src="../../static/img2/carLogo.png" mode="" class="carLogoBg"></image>
  51. </view>
  52. </view>
  53. <view class="carTimeBox" v-if="appletHomeSetting.carInsuranceType==2||appletHomeSetting.carInsuranceType==3||appletHomeSetting.carMaintainType==3||appletHomeSetting.carMaintainType==2||appletHomeSetting.carAuditType==2||appletHomeSetting.carAuditType==3||homeCardList.openMCar.showType==1">
  54. <view class="bxBox">
  55. <view class="bxline bxline1" v-if="appletHomeSetting.carInsuranceType==3">
  56. <img src="../../static/timg/car1.png" alt="" class="bxlineIcon">
  57. <view class="bxlineTitle">保险</view>
  58. <view class="bxlineMs1" v-if="carInfo.insuranceExpireDate">{{InsuranceExpireDate}}天到期</view>
  59. <view class="bxlineMs2" v-else>--</view>
  60. </view>
  61. <view class="bxline bxline1" v-if="appletHomeSetting.carInsuranceType==2">
  62. <img src="../../static/timg/car1.png" alt="" class="bxlineIcon">
  63. <view class="bxlineTitle">保险</view>
  64. <view class="bxlineMs1" v-if="carInfo.insuranceExpireDate">{{carInfo.insuranceExpireDate.slice(0,10)}}</view>
  65. <view class="bxlineMs2" v-else>--</view>
  66. </view>
  67. <view class="bxline bxline2" v-if="appletHomeSetting.carMaintainType ==3">
  68. <img src="../../static/timg/car2.png" alt="" class="bxlineIcon" >
  69. <view class="bxlineTitle">下次保养</view>
  70. <view class="bxlineMs1" v-if="carInfo.nextCareDate||carInfo.nextCareMilage">
  71. <span v-if="NextCareDate||NextCareDate===0">{{NextCareDate}}天后</span>
  72. <span v-if="NextCareDate===0&&carInfo.nextCareMilage">或</span>
  73. <span v-if="carInfo.nextCareMilage&&NextCareDate">或</span>
  74. <span v-if="carInfo.nextCareMilage">{{carInfo.nextCareMilage}}km</span>
  75. </view>
  76. <view class="bxlineMs2" v-else>--</view>
  77. </view>
  78. <view class="bxline bxline2" v-if="appletHomeSetting.carMaintainType ==2">
  79. <img src="../../static/timg/car2.png" alt="" class="bxlineIcon" >
  80. <view class="bxlineTitle" style="width: 140rpx;">下次保养</view>
  81. <view class="bxlineMs1" v-if="carInfo.nextCareDate||carInfo.nextCareMilage">
  82. <span v-if="NextCareDate||NextCareDate===0">{{carInfo.nextCareDate.slice(0,10)}}</span>
  83. <span v-if="NextCareDate===0&&carInfo.nextCareMilage">或</span>
  84. <span v-if="carInfo.nextCareMilage&&NextCareDate">或</span>
  85. <span v-if="carInfo.nextCareMilage">{{carInfo.nextCareMilage}}km</span>
  86. </view>
  87. <view class="bxlineMs2" v-else>--</view>
  88. </view>
  89. <view class="bxline bxline1" v-if="appletHomeSetting.carAuditType==3">
  90. <img src="../../static/timg/car3.png" alt="" class="bxlineIcon" >
  91. <view class="bxlineTitle">年审</view>
  92. <view class="bxlineMs1" v-if="carInfo.nextAuditDate">{{NextAuditDate}}天到期</view>
  93. <view class="bxlineMs2" v-else>--</view>
  94. </view>
  95. <view class="bxline bxline1" v-if="appletHomeSetting.carAuditType==2">
  96. <img src="../../static/timg/car3.png" alt="" class="bxlineIcon" >
  97. <view class="bxlineTitle">年审</view>
  98. <view class="bxlineMs1" v-if="carInfo.nextAuditDate">{{carInfo.nextAuditDate.slice(0,10)}}</view>
  99. <view class="bxlineMs2" v-else>--</view>
  100. </view>
  101. <view class="bxline bxline2" v-if="homeCardList.openMCar.showType==1">
  102. <img src="../../static/timg/car4.png" alt="" class="bxlineIcon" >
  103. <view class="bxlineTitle">保养手册</view>
  104. <view class="bxlineMs2" @click="information">点击查看</view>
  105. </view>
  106. </view>
  107. </view>
  108. </view>
  109. <!-- 有车 -->
  110. <!-- 无车 -->
  111. <view class="nocarBox" v-if="!carInfo" >
  112. <image @click="addCar" v-if="appletHomeSetting.carAddImageType!=1" :src="appletHomeSetting.carAddImage" mode="" style="width: 100%;height: 148rpx;"></image>
  113. <image @click="addCar" v-else src="http://dmsphoto.66km.com.cn/thFiles/1A5B68D2-6627-406D-A775-550C92979026.png" mode="" style="width: 100%;height: 148rpx;"></image>
  114. <!-- <view style="display: flex;">
  115. <image v-if="appletHomeSetting.carAddImageType==1" src="../../static/img2/pic.png" mode="" class="carAddImage"></image>
  116. <image v-else :src="appletHomeSetting.carAddImage" mode="" class="carAddImage"></image>
  117. <view class="addCarMs">
  118. <view class="addCarMs1">添加爱车推荐精准服务</view>
  119. <view class="addCarMs2">车辆有问题,安徒生来帮您!</view>
  120. </view>
  121. </view>
  122. <view class="addCarBtn" @click="addCar">添加爱车</view> -->
  123. </view>
  124. <!-- 无车 -->
  125. </view>
  126. <!-- <view v-if="!carInfo" style="margin-top: -80rpx;"></view> -->
  127. <view class="contBox">
  128. <!-- 服务顾问 -->
  129. <view v-if="homeCardList.openMUsers">
  130. <view class="adviser" v-if="homeCardList.openMUsers.showType!=2&&managerInfo" @click="goMUsers()">
  131. <view class="adviserLeft">
  132. <img v-if="managerInfo.avatar" :src="managerInfo.avatar" alt="" class="advisertx">
  133. <img v-else src="../../static/timg/pic_def_ava@2x.png" alt="" class="advisertx">
  134. <view class="adviserNema">{{managerInfo.name}}</view>
  135. <view class="adviserms" :style="{border:'1px solid #'+themeColor,color:'#'+themeColor}">服务顾问</view>
  136. </view>
  137. <img src="../../static/timg/icon_arrow_right.png" alt="" class="adviserJt">
  138. </view>
  139. </view>
  140. <!-- 服务顾问 -->
  141. <!-- 中间应用模块 -->
  142. <view class="modular">
  143. <view class="modularLine">
  144. <view class="modularMk" @click="goRoter(item)" v-if="index<4" v-for="(item,index) in homeCardList.application">
  145. <view class="modularLogoBox">
  146. <image :src="item.icon" mode="" class="modularLogo"></image>
  147. </view>
  148. <view class="modularTitle">{{item.name}}</view>
  149. </view>
  150. </view>
  151. <view class="modularLine">
  152. <view class="modularMk" @click="goRoter(item)" v-if="index>3" v-for="(item,index) in homeCardList.application">
  153. <view class="modularLogoBox">
  154. <image :src="item.icon" mode="" class="modularLogo2"></image>
  155. </view>
  156. <view class="modularTitle2">{{item.name}}</view>
  157. </view>
  158. </view>
  159. </view>
  160. <!-- 中间应用模块 -->
  161. <!-- 广告区 -->
  162. <view class="advertisement" v-if="homeCardList.ad1.length>0">
  163. <swiper class="swiper2" :style="{height: appletHomeSetting.adHeightSize1 + 'rpx'}" circular :autoplay="true" :interval="interval"
  164. :duration="duration" :indicator-dots="true" indicator-color="#CCCCCC" :indicator-active-color="'#'+themeColor">
  165. <swiper-item v-for="(item,index) in homeCardList.ad1">
  166. <view class="swiper-item2" @click="goRoter(item)">
  167. <image class="swiper-item2Img" :style="{height: appletHomeSetting.adHeightSize1 + 'rpx'}" :src="item.icon" mode=""></image>
  168. </view>
  169. </swiper-item>
  170. </swiper>
  171. </view>
  172. <view class="advertisement" v-if="homeCardList.ad2.length>0">
  173. <swiper class="swiper2" circular :autoplay="true" :interval="interval" :style="{height: appletHomeSetting.adHeightSize2 + 'rpx'}"
  174. :duration="duration" :indicator-dots="true" indicator-color="#CCCCCC" :indicator-active-color="'#'+themeColor">
  175. <swiper-item v-for="(item,index) in homeCardList.ad2">
  176. <view class="swiper-item2" @click="goRoter(item)">
  177. <image class="swiper-item2Img" :src="item.icon" :style="{height: appletHomeSetting.adHeightSize2 + 'rpx'}" mode=""></image>
  178. </view>
  179. </swiper-item>
  180. </swiper>
  181. </view>
  182. <view class="advertisement" v-if="homeCardList.ad3.length>0">
  183. <swiper class="swiper2" circular :autoplay="true" :interval="interval" :style="{height: appletHomeSetting.adHeightSize3 + 'rpx'}"
  184. :duration="duration" :indicator-dots="true" indicator-color="#CCCCCC" :indicator-active-color="'#'+themeColor">
  185. <swiper-item v-for="(item,index) in homeCardList.ad3">
  186. <view class="swiper-item2" @click="goRoter(item)">
  187. <image class="swiper-item2Img" :src="item.icon" mode="" :style="{height: appletHomeSetting.adHeightSize3 + 'rpx'}"></image>
  188. </view>
  189. </swiper-item>
  190. </swiper>
  191. </view>
  192. <!-- 广告区 -->
  193. <!-- 商品区 -->
  194. <view class="goodsBox">
  195. <view >
  196. <scroll-view class="goodsTabBox" scroll-x="true" enable-flex="true" >
  197. <view class="goodsTab " :class="{goodsACt:tabIndex==index}" v-for="(item,index) in navigationList">
  198. <view @click="tabFn(index,item.showType,item.id)">{{item.title}}</view>
  199. <image v-if="tabIndex==index" class="activeGoodsIcon" src="../../static/img2/tab.png" mode=""></image>
  200. <!-- <image v-if="tabIndex==index" class="activeGoodsIcon" src="http://dmsphoto.66km.com.cn/thFiles/DABE4EFB-5699-4515-A4D4-59AF13F8D2F4.png" mode=""></image> -->
  201. </view>
  202. </scroll-view>
  203. </view>
  204. <view class="goodsLIneBox byBox" v-if="tabType==1">
  205. <view class="goodsLine" @click="goMaintain(item)" v-for="(item,index) in byList">
  206. <view class="goodsLeft">
  207. <image src="http://dmsphoto.66km.com.cn/thFiles/F4CEDFE9-CF9F-41C5-B2BC-0EE00D9EA455.png" mode="" v-if="item.showType.indexOf(1)!=-1" class="byTj"></image>
  208. <image class="goodsIcon" v-if="item.mainImgUrl" :src="item.mainImgUrl" mode=""></image>
  209. <image class="goodsIcon" v-else src="../../static/timg/noimg.png" mode=""></image>
  210. </view>
  211. <view class="goodsRight">
  212. <view class="goodsRtop">
  213. <view style="display: flex;">
  214. <view class="isRecommend" v-if="item.isRecommend==1">适配</view>
  215. <view class="goodsName">{{item.title}}</view>
  216. </view>
  217. <view class="goodsMs">{{item.showContent}}</view>
  218. </view>
  219. <view class="goodsRb">
  220. <view class="goodsCBox">
  221. <view class="goodsCLeft">
  222. <view style="display: flex;" v-for="(v,i) in item.packageItems" v-if="v.isDefault==1">
  223. <view v-if="v.count>1" class="goodsTitle">{{v.count}}次更划算</view>
  224. </view>
  225. <view class="goodsPriceBox" v-for="(v,i) in item.packageItems" v-if="v.isDefault==1">
  226. <span class="goodsPrice11">¥</span>
  227. <span class="goodsPrice22">{{v.price}}</span>
  228. <span class="goodsPrice33">/次
  229. <span style="padding-left: 10rpx;">¥{{v.money}}</span>
  230. </span>
  231. </view>
  232. </view>
  233. <view class="goodsCRight">
  234. 立即抢购
  235. </view>
  236. </view>
  237. <view class="goodsKbox">
  238. <view class="goosK1" v-if="item.showOilType">{{item.showOilType}}</view>
  239. <view class="goosK2" v-if="item.showOilLevel">机油等级 | {{item.showOilLevel}}</view>
  240. <view class="goosK2" v-if="item.showFit">适配粘度 | {{item.showFit}}</view>
  241. </view>
  242. </view>
  243. </view>
  244. </view>
  245. </view>
  246. </view>
  247. <!-- 商品区 -->
  248. <!-- 热门商品 -->
  249. <view v-if="OpenMGoods&&tabType==2" class="qiehuanBox">
  250. <view class="" v-if="OpenMGoods.goodsList&&OpenMGoods.goodsList.length>0">
  251. <view class="Hot" ><!-- v-if="OpenMGoods.showType==1" -->
  252. <!-- <view class="hotTop">
  253. <view class="hotLeft">
  254. <view class="hotSx" :style="{background:'#'+themeColor}"></view>
  255. <view class="hottitle">{{OpenMGoods.showTitle?OpenMGoods.showTitle:'热门商品'}}</view>
  256. </view>
  257. <view class="hotRight" @click="goShop">
  258. <view class="hotMore">更多</view>
  259. <img src="../../static/timg/icon_arrow_right.png" alt="" class="hotMoreJt">
  260. </view>
  261. </view> -->
  262. <view v-if="OpenMGoods.showForm==1">
  263. <view class="hotGoodsLine" v-for="(item,index) in OpenMGoods.goodsList" @click="goGoods(item)">
  264. <view>
  265. <image :src="item.url" mode="" class="hotGoodsLineImg"></image>
  266. </view>
  267. <view class="hotGoodsLineRIght">
  268. <view class="goodsName">{{item.name}}</view>
  269. <view class="Sold">
  270. <view v-if="item.showLabel&&item.showLabel.indexOf('3')!=-1">
  271. 已售 {{item.saleQty>0?item.saleQty:0}}
  272. </view>
  273. </view>
  274. <view class="goodsPrice">
  275. <view class="goodsPrice1" >{{item.saleLabel}}</view><!-- :style="{color:'#'+themeColor}" -->
  276. <view class="goodsPrice2" >¥</view>
  277. <view class="goodsPrice3" >{{item.salePrice}}
  278. <span v-if="item.categoryIds=='7B97D114-C419-42B2-9C1E-0B4CA284CDA0'">万</span>
  279. </view>
  280. <view class="goodsPrice4" v-if="item.showLabel&&item.scribingPrice&&item.showLabel.indexOf('1')!=-1">¥{{item.scribingPrice}}</view>
  281. </view>
  282. </view>
  283. </view>
  284. </view>
  285. <!-- 俩列的 -->
  286. <div class="goodsTwo" v-if="OpenMGoods.showForm==2">
  287. <div class="goodsTwoLine" v-for="(item,index) in OpenMGoods.goodsList" @click="goGoods(item)">
  288. <div class="goodsTwoImg">
  289. <image :src="item.url" mode="" class="hotGoodsLineImg"></image>
  290. </div>
  291. <div class="goodsTwoName">{{item.name}}</div>
  292. <view class="Sold">
  293. <view v-if="item.showLabel&&item.showLabel.indexOf('3')!=-1">
  294. 已售 {{item.saleQty>0?item.saleQty:0}}
  295. </view>
  296. </view>
  297. <view class="goodsPrice">
  298. <view class="goodsPrice1" >{{item.saleLabel}}</view><!-- :style="{color:'#'+themeColor}" -->
  299. <view class="goodsPrice2" >¥</view>
  300. <view class="goodsPrice3" >{{item.salePrice}}
  301. <span v-if="item.categoryIds=='7B97D114-C419-42B2-9C1E-0B4CA284CDA0'">万</span>
  302. </view>
  303. <view class="goodsPrice4" v-if="item.showLabel&&item.scribingPrice&&item.showLabel.indexOf('1')!=-1">¥{{item.scribingPrice}}</view>
  304. </view>
  305. </div>
  306. </div>
  307. </view>
  308. </view>
  309. </view>
  310. <!-- 热门活动 -->
  311. <view class="qiehuanBox" v-if="openMActivity&&tabType==3">
  312. <view v-if="openMActivity.openCollectingList">
  313. <view class="Hot" v-if="openMActivity.openCollectingList.length>0">
  314. <!-- <view class="hotTop">
  315. <view class="hotLeft">
  316. <view class="hotSx" :style="{background:'#'+themeColor}"></view>
  317. <view class="hottitle">{{homeCardList.openMActivity.showTitle?homeCardList.openMActivity.showTitle:'热门活动'}}</view>
  318. </view>
  319. <view class="hotRight" @click="moreJk">
  320. <view class="hotMore">更多</view>
  321. <img src="../../static/timg/icon_arrow_right.png" alt="" class="hotMoreJt">
  322. </view>
  323. </view> -->
  324. <view class="hotLine" @click="goJk(item)" v-for="(item,index) in openMActivity.openCollectingList" >
  325. <view class="hotLineTop">
  326. <image class="hotLineTopImg" :src="item.img" mode=""></image>
  327. <view class="hotlineTimebox">
  328. <!-- <view class="hotlinestate1" v-if="item.state==2">进行中</view>
  329. <view class="hotlinestate2" v-if="item.state==1">未开始</view> -->
  330. <image class="jkStateImg" v-if="item.state==2" src="http://dmsphoto.66km.com.cn/thFiles/85EAAA7F-01A6-41A6-B25B-72FAD3E451AC.png" mode="" ></image>
  331. <image class="jkStateImg" v-if="item.state==1" src="http://dmsphoto.66km.com.cn/thFiles/EB46639B-85C9-4246-A3E3-EA87944DFC36.png" mode="" ></image>
  332. <view class="hotTime">{{item.startTime.slice(0,10)}}-{{item.endTime.slice(0,10)}}</view>
  333. </view>
  334. </view>
  335. <view class="hotName">{{item.activityName}}</view>
  336. <view class="groupType" v-if="item.groupType">拼团</view>
  337. </view>
  338. </view>
  339. </view>
  340. </view>
  341. </view>
  342. <view style="height: 60rpx;"></view>
  343. <!-- 手机号授权 -->
  344. <view class="authorizBox" v-if="authorizShow" @click="authorizShowHide"><!-- -->
  345. <view class="authorizCont" @click.stop="">
  346. <view class="authorizName">{{wxOpenData.miniAppName}}</view>
  347. <view class="authorizMs">未注册的手机号登录后将自动创会员账号,如果您不同意授权获取手机号,会影响您使用我们的产品和服务。</view>
  348. <view class="sqLine">
  349. <view class="sqRefuse" @click="authorizShowHide">拒绝</view>
  350. <button class="authorizContbutton" type="default" open-type="getPhoneNumber" @getphonenumber="decryptPhoneNumber">授权</button>
  351. </view>
  352. </view>
  353. <view style="text-align: center;padding-top: 56rpx;">
  354. <image src="../../static/timg/icon_guanbi@2x.png" mode="" class="authorizCloseImg"></image>
  355. </view>
  356. </view>
  357. <view class="qrBox" v-if="qrSHow">
  358. <view class="qrimgBox">
  359. <view class="qrTitle">微信绑定
  360. <image src="../../static/timg/chahao.png" mode="" class="qrimgchahao" @click="qrclose"></image>
  361. </view>
  362. <view class="qrms">扫描/长按下方二维码进行绑定</view>
  363. <view class="qrms2">绑定后可接收微信消息通知</view>
  364. <view style="text-align: center;padding-top: 30rpx;">
  365. <image :src="qrimg" mode="" class="qrimg" :show-menu-by-longpress='true'></image>
  366. </view>
  367. <view class="qrBtn" @click="qrclose">我知道了</view>
  368. </view>
  369. </view>
  370. <!-- 弹框广告区-->
  371. <view class="qrBox" v-if="activityModulesShow" @click="activityModulesHide">
  372. <view class="tkHdBox" @click.stop="">
  373. <swiper class="swiperTk" circular :autoplay="true" :interval="interval"
  374. :duration="duration" :indicator-dots="true" indicator-color="#CCCCCC" :indicator-active-color="'#'+themeColor">
  375. <swiper-item v-for="(item,index) in homeCardList.activityModules">
  376. <view class="swiper-itemTk" @click="goRoter(item)">
  377. <image class="tkHdImg" :src="item.icon" mode="widthFix"></image>
  378. </view>
  379. </swiper-item>
  380. </swiper>
  381. <view style="text-align: center;padding-top: 30rpx;">
  382. <image @click="activityModulesHide" class="closeTk" src="../../static/img/icon_delete.png" mode=""></image>
  383. </view>
  384. </view>
  385. </view>
  386. <!-- 弹框广告区-->
  387. </view>
  388. </view>
  389. </template>
  390. <script>
  391. export default {
  392. data() {
  393. return {
  394. shopId: '',
  395. url:'',
  396. wxOpenData:'',
  397. code:'',
  398. carInfo:'',
  399. homeCardList:'',
  400. authorizShow:false,
  401. miniAppName:'',
  402. iStatusBarHeight:'',
  403. managerInfo:'',
  404. unionId:'',
  405. ext:'',
  406. duration:500,
  407. interval:3000,
  408. InsuranceExpireDate:'',
  409. NextCareDate:'',
  410. NextAuditDate:'',
  411. themeColor:'',
  412. getwxLoing:false,
  413. shareID:'',
  414. discount:'',
  415. bizUserId:'',
  416. coCouponsMsg:'',
  417. coNoNewCustMsg:'',
  418. qrimg:'',
  419. qrSHow:false,
  420. customerInfo:'',
  421. exitNum:'',
  422. appletHomeSetting:'',
  423. activityModulesShow:false,
  424. tabIndex:0,
  425. OpenMGoods:[],
  426. openMActivity:[],
  427. tabType:'',
  428. byList:'',
  429. navigationList:[],
  430. }
  431. },
  432. onLoad(opt) {
  433. this.iStatusBarHeight = uni.getSystemInfoSync().statusBarHeight;
  434. var that=this;
  435. //this.$common.getExtStoreId()
  436. var ext=this.$common.getExtStoreId();
  437. this.ext=ext
  438. console.log("ext--themeColor")
  439. console.log(ext)
  440. //console.log( String(Date.now()))
  441. this.shopId=ext.shopId;
  442. this.url=ext.url;
  443. this.unionId=ext.unionId;
  444. var shareID = opt.scene //'F16E7299-6850-4015-ABCE-A9F2794B45B5'
  445. if (shareID) {
  446. this.shareID = shareID
  447. console.log('this.shareID==='+this.shareID)
  448. //this.$store.commit('mutationsshareID', shareID)
  449. }
  450. //this.shareID='F16E7299-6850-4015-ABCE-A9F2794B45B5'
  451. //this.shareID='1BF04FAEC8844ECE9C40E880C3B13721'
  452. //this.unionId="26A1039A-DB10-4D0E-BBA2-541C06274EED";
  453. //this.ext.appId="wxffd2502e67d37908"
  454. // uni.setStorage({
  455. // key: 'extdata',
  456. // data: {
  457. // shopId:'E37BB296-5A08-4534-859D-B351BA611AF9',
  458. // },
  459. // success: function () {
  460. // that.uniLogin()
  461. // }
  462. // });
  463. //this.userInfo = uni.getStorageSync("userInfo");
  464. this.userInfo=this.$store.state.userInfo
  465. if(this.userInfo){
  466. //this.wxOpenData = uni.getStorageSync("wxOpenData");
  467. this.getCarList();
  468. this.queryHomeCardList()
  469. this.queryManagerInfo()
  470. }else{
  471. this.uniLogin()
  472. }
  473. //版本更新
  474. this.UpdateManager();
  475. },
  476. onShow() {
  477. this.userInfo=this.$store.state.userInfo;
  478. this.wxOpenData=this.$store.state.wxOpenData;
  479. var indexaddcar = uni.getStorageSync("indexaddcar");
  480. var themeColor = uni.getStorageSync("themeColor");
  481. if(themeColor){
  482. this.themeColor=themeColor
  483. }
  484. this.getwxLoing=true;
  485. this.exitNum=this.$store.state.exitNum;
  486. if(this.exitNum==1){
  487. this.carInfo=''
  488. }else{
  489. if(indexaddcar==1){
  490. uni.removeStorageSync('indexaddcar');
  491. this.getCarList();
  492. }else{
  493. this.carInfo=this.$store.state.carInfo;
  494. console.log("车辆信息")
  495. console.log(this.carInfo)
  496. if(!this.carInfo){
  497. this.getCarList();
  498. }
  499. this.jsTime()
  500. }
  501. }
  502. if(this.userInfo){
  503. this.queryManagerInfo()
  504. }
  505. },
  506. onPullDownRefresh(){
  507. this.getCarList();
  508. this.queryHomeCardList()
  509. this.queryManagerInfo()
  510. setTimeout(() => {
  511. uni.stopPullDownRefresh(); // 关闭下拉刷新
  512. }, 1000);
  513. },
  514. methods: {
  515. goMaintain(item){
  516. uni.removeStorageSync('byCar');
  517. uni.navigateTo({
  518. url:'../subPack/maintainItem?maintainId='+item.id+'&isRecommend='+item.isRecommend
  519. })
  520. },
  521. tabData(showType,id){
  522. console.log("showType==="+showType)
  523. if(showType==3){
  524. uni.showLoading({
  525. title: '加载中'
  526. })
  527. this.$http('openHome/queryOpenMActivity', {
  528. unionId:this.unionId,id:id
  529. },'GET').then(res => {
  530. uni.hideLoading();
  531. this.openMActivity=res.data
  532. })
  533. }
  534. if(showType==2){
  535. uni.showLoading({
  536. title: '加载中'
  537. })
  538. this.$http('openHome/queryOpenMGoods', {
  539. unionId:this.unionId,id:id
  540. },'GET').then(res => {
  541. uni.hideLoading();
  542. this.OpenMGoods=res.data
  543. })
  544. }
  545. if(showType==1){
  546. this.getHomeList(id)
  547. }
  548. },
  549. getHomeList(id){
  550. if(this.carInfo){
  551. var params={
  552. carId:this.carInfo.id,
  553. id:id
  554. }
  555. }else{
  556. var params={
  557. id:id
  558. }
  559. }
  560. uni.showLoading({
  561. title: '加载中'
  562. })
  563. this.$http('openMaintain/home-list',params,'GET').then(res => {
  564. uni.hideLoading();
  565. this.byList=res.data
  566. })
  567. },
  568. tabFn(index,type,id){
  569. this.tabIndex=index
  570. this.tabType=type
  571. this.tabData(type,id)
  572. },
  573. activityModulesHide(){
  574. this.activityModulesShow=false
  575. },
  576. seeQr(){
  577. // this.authorizShow = true;
  578. // return false;
  579. if (this.userInfo) {
  580. } else {
  581. this.authorizShow = true;
  582. return false;
  583. }
  584. uni.showLoading({
  585. title: '加载中'
  586. })
  587. this.$request.httpBinary('wxV2/createQrCode', {
  588. type:'bindWx',
  589. customerId:this.customerInfo.id,
  590. unionID:this.customerInfo.unionID,
  591. }, 'GET').then(res => {
  592. uni.hideLoading();
  593. this.qrimg = 'data:image/png;base64,'+uni.arrayBufferToBase64(res);
  594. this.qrSHow=true;
  595. //this.img= uni.arrayBufferToBase64(res)
  596. //console.log('list+=', this.queryShopList);
  597. })
  598. },
  599. qrclose(){
  600. this.qrSHow=false;
  601. },
  602. authorizShowHide(){
  603. this.authorizShow=false
  604. },
  605. UpdateManager(){
  606. const updateManager = uni.getUpdateManager();
  607. updateManager.onCheckForUpdate(function (res) {
  608. // 请求完新版本信息的回调
  609. console.log(res.hasUpdate);
  610. });
  611. updateManager.onUpdateReady(function (res) {
  612. uni.showModal({
  613. title: '更新提示',
  614. content: '新版本已经准备好,是否重启应用?',
  615. success(res) {
  616. if (res.confirm) {
  617. // 新的版本已经下载好,调用 applyUpdate 应用新版本并重启
  618. updateManager.applyUpdate();
  619. }
  620. }
  621. });
  622. });
  623. updateManager.onUpdateFailed(function (res) {
  624. // 新的版本下载失败
  625. uni.showToast({
  626. title: '新的版本下载失败',
  627. icon:'none',
  628. duration: 3000
  629. });
  630. });
  631. },
  632. addCar(){
  633. if(!this.userInfo){
  634. if(this.exitNum!=1){
  635. this.authorizShow=true;
  636. }else{
  637. this.$common.automaticlogin().then(val => {
  638. this.userInfo=this.$store.state.userInfo;
  639. this.wxOpenData=this.$store.state.wxOpenData;
  640. /* uni.navigateTo({
  641. url:'../user/addCar/addCar?type=1'
  642. }) */
  643. this.exitNum=''
  644. this.$store.commit('mutationsexitNum', '')
  645. this.getCarList();
  646. uni.navigateTo({
  647. url:'../user/addCar/cailist'
  648. })
  649. })
  650. }
  651. }else{
  652. /* uni.navigateTo({
  653. url:'../user/addCar/addCar?type=1'
  654. }) */
  655. uni.navigateTo({
  656. url:'../subPack/addCarCK'
  657. })
  658. }
  659. },
  660. goShopList(){
  661. uni.navigateTo({
  662. url:'shopList'
  663. })
  664. },
  665. goShop(){
  666. uni.switchTab({
  667. url:'../shop/shop'
  668. })
  669. },
  670. moreJk(){
  671. uni.switchTab({
  672. url:'../activity/activity'
  673. })
  674. },
  675. information(){
  676. console.log('车辆信息--',this.carInfo);
  677. uni.navigateTo({
  678. url:'handbook?mileage='+this.carInfo.milage+'&liyangId='+this.carInfo.nLevelID
  679. })
  680. },
  681. changeCar(){
  682. /* uni.scanCode({
  683. success: function (res) {
  684. console.log('条码类型:' + res.scanType);
  685. console.log( res);
  686. }
  687. });
  688. return false; */
  689. uni.navigateTo({
  690. url:'../user/addCar/cailist'
  691. })
  692. },
  693. goMUsers(){
  694. if(!this.userInfo){
  695. this.authorizShow=true;
  696. }else{
  697. var managerInfo={
  698. name:this.managerInfo.name,
  699. shopInfo:{
  700. shopName:this.managerInfo.shopInfo.shopName,
  701. provinceName:this.managerInfo.shopInfo.provinceName,
  702. cityName:this.managerInfo.shopInfo.cityName,
  703. areaName:this.managerInfo.shopInfo.areaName,
  704. Address:this.managerInfo.shopInfo.Address,
  705. },
  706. avatar:this.managerInfo.avatar,
  707. phone:this.managerInfo.phone,
  708. shopID:this.managerInfo.shopInfo.id
  709. }
  710. uni.navigateTo({
  711. url:'../index/personalCard?adInfo='+JSON.stringify(managerInfo)
  712. })
  713. }
  714. },
  715. goGoods(item){
  716. uni.navigateTo({
  717. url:'../shop/goodsDetail?id='+item.id
  718. })
  719. /* if(!this.userInfo){
  720. if(this.exitNum!=1){
  721. this.authorizShow=true;
  722. }else{
  723. this.$common.automaticlogin().then(val => {
  724. this.userInfo=this.$store.state.userInfo;
  725. this.wxOpenData=this.$store.state.wxOpenData;
  726. this.exitNum=''
  727. this.$store.commit('mutationsexitNum', '')
  728. uni.navigateTo({
  729. url:'../shop/goodsDetail?id='+item.id
  730. })
  731. })
  732. }
  733. }else{
  734. uni.navigateTo({
  735. url:'../shop/goodsDetail?id='+item.id
  736. })
  737. } */
  738. /* if(!this.userInfo){
  739. this.authorizShow=true;
  740. }else{
  741. uni.navigateTo({
  742. url:'../shop/goodsDetail?id='+item.id
  743. })
  744. } */
  745. },
  746. goJk(item){
  747. uni.navigateTo({
  748. url:'../activity/jkDetail?id='+item.id
  749. })
  750. /* if(!this.userInfo){
  751. this.authorizShow=true;
  752. }else{
  753. uni.navigateTo({
  754. url:'../activity/jkDetail?id='+item.id
  755. })
  756. } */
  757. /* if(!this.userInfo){
  758. if(this.exitNum!=1){
  759. this.authorizShow=true;
  760. }else{
  761. this.$common.automaticlogin().then(val => {
  762. this.userInfo=this.$store.state.userInfo;
  763. this.wxOpenData=this.$store.state.wxOpenData;
  764. this.exitNum=''
  765. this.$store.commit('mutationsexitNum', '')
  766. uni.navigateTo({
  767. url:'../activity/jkDetail?id='+item.id
  768. })
  769. })
  770. }
  771. }else{
  772. uni.navigateTo({
  773. url:'../activity/jkDetail?id='+item.id
  774. })
  775. } */
  776. },
  777. goRoter(item){
  778. /* if(!this.userInfo){
  779. if(this.exitNum!=1){
  780. this.authorizShow=true;
  781. }else{
  782. this.$common.automaticlogin().then(val => {
  783. this.userInfo=this.$store.state.userInfo;
  784. this.wxOpenData=this.$store.state.wxOpenData;
  785. this.exitNum=''
  786. this.$store.commit('mutationsexitNum', '')
  787. this.goRoter2(item)
  788. })
  789. }
  790. }else{
  791. this.goRoter2(item)
  792. } */
  793. this.$common.automaticlogin().then(val => {
  794. this.userInfo=this.$store.state.userInfo;
  795. this.wxOpenData=this.$store.state.wxOpenData;
  796. this.exitNum=''
  797. this.$store.commit('mutationsexitNum', '')
  798. this.goRoter2(item)
  799. })
  800. },
  801. goRoter2(item){
  802. console.log(item)
  803. if(!this.userInfo){
  804. this.authorizShow=true;
  805. //if(false){
  806. }else{
  807. if(item.bizType==0){
  808. if(item.name=='新车'){ //
  809. uni.navigateTo({
  810. url:'../subPack/newCar'
  811. })
  812. }else if(item.name=='二手车'){
  813. uni.navigateTo({
  814. url:'usedCar'
  815. })
  816. }else if(item.name=='爱车估价'){
  817. uni.navigateTo({
  818. url:'evaluation'
  819. })
  820. }else if(item.sortId==18){ //领券中心
  821. uni.navigateTo({
  822. url:'receiveCoupon'
  823. })
  824. }else if(item.sortId==19){ //救援测试
  825. uni.navigateTo({
  826. url:'rescue'
  827. })
  828. }
  829. else{
  830. uni.showToast({
  831. title: '敬请期待',
  832. icon:'none',
  833. duration: 3000
  834. });
  835. }
  836. }else if(item.bizType==1){ //紧急救援
  837. uni.navigateTo({
  838. url:'rescue'
  839. })
  840. /* uni.showToast({
  841. title: '敬请期待',
  842. icon:'none',
  843. duration: 3000
  844. }); */
  845. }else if(item.bizType==2){ //钣金喷漆
  846. uni.navigateTo({
  847. url:'paint'
  848. })
  849. /* uni.navigateTo({
  850. url:'receiveCoupon'
  851. }) */
  852. }else if(item.bizType==3){ //保养
  853. uni.navigateTo({
  854. url:'maintain'
  855. })
  856. }else if(item.bizType==4){ //在线预约
  857. uni.navigateTo({
  858. url:'onlineBooking?naShopId='+item.naShopId
  859. })
  860. }else if(item.bizType==5){ //导航
  861. this.getShopinfo(5,item.reShopId)
  862. }else if(item.bizType==6){ //联系本店
  863. this.getShopinfo(6,item.orShopId)
  864. }else if(item.bizType==7){ //7门店列表
  865. /* uni.navigateTo({
  866. url:'shopList'
  867. }) */
  868. uni.switchTab({
  869. url:'shopList'
  870. })
  871. }else if(item.bizType==8){ //我的会员卡
  872. uni.navigateTo({
  873. url:'vipCard'
  874. })
  875. }else if(item.bizType==9){ //我的优惠券
  876. uni.navigateTo({
  877. url:'discountCard'
  878. })
  879. }else if(item.bizType==10){ //我的订单
  880. uni.navigateTo({
  881. url:'../user/myOrder/myOrder'
  882. })
  883. }else if(item.bizType==11){ //我的预约
  884. uni.navigateTo({
  885. url:'../user/myBespeak'
  886. })
  887. }else if(item.bizType==12){ //历史消费
  888. uni.navigateTo({
  889. url:'../user/historySpend'
  890. })
  891. }else if(item.bizType==12){ //历史消费
  892. uni.navigateTo({
  893. url:'../user/historySpend'
  894. })
  895. }else if(item.bizType==13){ //车检报告
  896. uni.navigateTo({
  897. url:'../user/checkReport'
  898. })
  899. }else if(item.bizType==14){ //指定商品分类
  900. uni.setStorage({
  901. key: 'shopcategoryID',
  902. data: item.bizId,
  903. success: function () {
  904. getApp().globalData.shopcategoryID=item.bizId;
  905. uni.switchTab({
  906. url:'../shop/shop?shopcategoryID='+ item.bizId
  907. })
  908. }
  909. });
  910. }else if(item.bizType==15){ //商品详情
  911. uni.navigateTo({
  912. url:'../shop/goodsDetail?id='+item.bizId
  913. })
  914. }else if(item.bizType==16){ //积分商城
  915. uni.navigateTo({
  916. url:'../integral/integral'
  917. })
  918. }else if(item.bizType==17){ //公司介绍
  919. uni.navigateTo({
  920. url:'../subPack/aboutUS?unionID='+this.userInfo.unionId
  921. })
  922. }else if(item.bizType==18){ //领券中心
  923. uni.navigateTo({
  924. url:'receiveCoupon'
  925. })
  926. /* uni.navigateTo({
  927. url:'rescue'
  928. }) */
  929. }else if(item.bizType==19){
  930. //我的车库pages/user/addCar/cailist
  931. uni.navigateTo({
  932. url:'../user/addCar/cailist'
  933. })
  934. }else if(item.bizType==20){
  935. console.log("做保养")
  936. uni.removeStorageSync('byCar');
  937. uni.navigateTo({
  938. url:'../subPack/maintain?maintainProjectID='+item.maintainProjectID
  939. })
  940. }
  941. // uni.navigateTo({
  942. // url:url
  943. // })
  944. }
  945. },
  946. decryptPhoneNumber: function(e) {
  947. console.log(e);
  948. this.code=e.detail.code
  949. this.wxPhoneLogin()
  950. this.authorizShow=false;
  951. },
  952. wxgologin(){
  953. var that=this;
  954. uni.getUserProfile({
  955. lang:'zh_CN',
  956. desc:'登录',
  957. success:(res)=>{
  958. console.log(res);
  959. that.wxdata=res;
  960. uni.setStorage({
  961. key: 'wxdata',
  962. data: res,
  963. success: function () {
  964. that.uniLogin()
  965. }
  966. });
  967. },
  968. fail:(res)=>{
  969. console.log(res)
  970. }
  971. });
  972. },
  973. uniLogin(){
  974. var that=this;
  975. uni.login({
  976. provider: 'weixin',
  977. success: function (loginRes) {
  978. console.log(loginRes);
  979. that.getWxOpenID(loginRes)
  980. }
  981. });
  982. },
  983. getWxOpenID(e){
  984. var that=this;
  985. // uni.showLoading({
  986. // title: '加载中'
  987. // })
  988. this.$http('miniApp2/sys/getWxOpenID', {
  989. code:e.code,
  990. unionId:this.unionId,
  991. shareId:this.shareID
  992. },'GET').then(res => {
  993. console.log(res.code);
  994. console.log("授权信息")
  995. console.log(res)
  996. //uni.hideLoading();
  997. if(res.code!=0){
  998. //uni.hideLoading();
  999. var msg=res.msg
  1000. if(!msg){
  1001. msg='授权失败'
  1002. }
  1003. console.log(msg);
  1004. }
  1005. this.wxOpenData=res.data;
  1006. this.themeColor=res.data.themeColor
  1007. //this.themeColor='FFFFFF'
  1008. this.getwxLoing=true;
  1009. uni.setNavigationBarTitle({
  1010. title:this.wxOpenData.miniAppName
  1011. })
  1012. if(this.themeColor=='6F2BE8'){
  1013. var backgroundImage='/static/tabimg/index6F2BE8.png'
  1014. }
  1015. if(this.themeColor=='1677FF'){
  1016. var backgroundImage='/static/tabimg/index1677FF.png'
  1017. }
  1018. if(this.themeColor=='FF4F00'){
  1019. var backgroundImage='/static/tabimg/indexFF4F00.png'
  1020. }
  1021. if(this.themeColor=='EC0F0A'){
  1022. var backgroundImage='/static/tabimg/index1.png'
  1023. }
  1024. uni.setTabBarStyle({
  1025. // color: '#EC0F0A',
  1026. //selectedColor: '#'+this.themeColor,
  1027. selectedColor: '#222222',
  1028. })
  1029. /* uni.setTabBarItem({
  1030. index: 0,
  1031. text: '首页',
  1032. selectedIconPath: backgroundImage
  1033. }) */
  1034. if(res.code==0){
  1035. that.queryHomeCardList()
  1036. }
  1037. //that.wxPhoneLogin()
  1038. this.$store.commit('mutationswxOpenData', that.wxOpenData)
  1039. uni.setStorage({
  1040. key: 'wxOpenData',
  1041. data: that.wxOpenData,
  1042. success: function () {
  1043. // that.uniLogin()
  1044. }
  1045. });
  1046. uni.setStorage({
  1047. key: 'themeColor',
  1048. data: that.themeColor,
  1049. success: function () {
  1050. // that.uniLogin()
  1051. console.log("themeColor=="+that.themeColor)
  1052. }
  1053. });
  1054. if(this.wxOpenData.loginInfo){
  1055. this.$store.commit('mutationsuserInfo', that.wxOpenData.loginInfo.openUser)
  1056. this.userInfo=that.wxOpenData.loginInfo.openUser
  1057. that.queryManagerInfo()
  1058. //that.tabData()
  1059. uni.setStorage({
  1060. key: 'userInfo',
  1061. data: that.wxOpenData.loginInfo.openUser,
  1062. success: function () {
  1063. that.getCarList()
  1064. }
  1065. });
  1066. }else{
  1067. //this.authorizShow=true;
  1068. }
  1069. if(res.data.loginInfo.discount){
  1070. that.discount=res.data.loginInfo.discount;
  1071. if(that.discount==2){
  1072. that.bizUserId=res.data.loginInfo.bizUserId;
  1073. }
  1074. if(that.shareID){
  1075. that.getCouponList()
  1076. }
  1077. }
  1078. if(res.data.loginInfo.coNoNewCustMsg){ //车主合伙人二维码提示
  1079. uni.showModal({
  1080. title: '提示',
  1081. content:res.data.loginInfo.coNoNewCustMsg,
  1082. success: function(resTKk) {
  1083. }
  1084. });
  1085. }
  1086. //console.log("优惠券")
  1087. })
  1088. },
  1089. wxPhoneLogin(){
  1090. var that=this;
  1091. this.$http('miniApp2/sys/wxPhoneLogin', {
  1092. appId:this.ext.appId,
  1093. unionId:this.unionId,
  1094. code:this.code,
  1095. openId:this.wxOpenData.openid,
  1096. shareId:this.shareID
  1097. },'POST').then(res => {
  1098. var data = res.data;
  1099. if(data.loginInfo){
  1100. this.userInfo=data.loginInfo.openUser;
  1101. this.customerInfo=data.loginInfo.customerInfo
  1102. this.$store.commit('mutationsuserInfo', this.userInfo);
  1103. this.$store.commit('mutationswxOpenData', data);
  1104. uni.setStorage({
  1105. key: 'customerInfo',
  1106. data: this.customerInfo,
  1107. success: function () {
  1108. }
  1109. })
  1110. uni.setStorage({
  1111. key: 'userInfo',
  1112. data: data.loginInfo.openUser,
  1113. success: function () {
  1114. that.getCarList()
  1115. that.queryHomeCardList()
  1116. that.queryManagerInfo();
  1117. if(data.loginInfo.coCouponsMsg){
  1118. uni.hideLoading()
  1119. that.coCouponsMsg =data.loginInfo.coCouponsMsg;
  1120. that.ownerCoupon()
  1121. }
  1122. if(data.loginInfo.coNoNewCustMsg){
  1123. //console.log(data.loginInfo.coNoNewCustMsg)
  1124. uni.hideLoading()
  1125. that.coNoNewCustMsg =data.loginInfo.coNoNewCustMsg;
  1126. that.coNoNewCust()
  1127. }
  1128. if(data.loginInfo.discount){
  1129. that.discount=data.loginInfo.discount;
  1130. if(that.discount==2){
  1131. that.bizUserId=data.loginInfo.bizUserId;
  1132. }
  1133. if(that.shareID&&that.discount==2){
  1134. that.getCouponList()
  1135. }
  1136. }
  1137. }
  1138. });
  1139. if(!this.customerInfo.wxMiniV2OpenID){
  1140. this.seeQr()
  1141. }
  1142. this.queryManagerInfo()
  1143. }
  1144. })
  1145. },
  1146. coNoNewCust(){
  1147. console.log(111111)
  1148. var that=this;
  1149. uni.showModal({
  1150. title: '提示',
  1151. content: that.coNoNewCustMsg,
  1152. success: function(resTK) {
  1153. }
  1154. });
  1155. },
  1156. ownerCoupon(){
  1157. console.log(22222)
  1158. var that=this;
  1159. uni.showModal({
  1160. title: '提示',
  1161. content: that.coCouponsMsg,
  1162. cancelText:'回到首页',
  1163. confirmText:'查看',
  1164. success: function(resTK) {
  1165. if (resTK.confirm) {
  1166. uni.navigateTo({
  1167. url:'discountCard'
  1168. })
  1169. }
  1170. }
  1171. });
  1172. },
  1173. getCouponList(){
  1174. if(this.discount!=2){
  1175. var params={
  1176. discount:this.discount
  1177. }
  1178. }else{
  1179. var params={
  1180. discount:this.discount,
  1181. bizId:this.bizUserId
  1182. }
  1183. }
  1184. var that=this;
  1185. this.$http('opencoupon/getCouponList', params, 'GET').then(res => {
  1186. var list = res.data;
  1187. if(list.length>0){
  1188. uni.showModal({
  1189. title: '提示',
  1190. content: '您有优惠券待领取',
  1191. cancelText:'回到首页',
  1192. confirmText:'查看',
  1193. success: function(resTK) {
  1194. if (resTK.confirm) {
  1195. uni.navigateTo({
  1196. url:'discountDlq?bizUserId='+that.bizUserId+'&discount='+that.discount
  1197. })
  1198. }
  1199. }
  1200. });
  1201. }
  1202. })
  1203. },
  1204. getCarList(){
  1205. /* this.$http('opencarOwnerHome/queryCarInfoList', {
  1206. },'GET').then(res => {
  1207. if(res.code==401){
  1208. this.carInfo=''
  1209. this.$store.commit('mutationscarInfo', '')
  1210. }else{
  1211. this.carInfo=res.data[0]
  1212. this.$store.commit('mutationscarInfo', this.carInfo)
  1213. this.jsTime()
  1214. }
  1215. }) */
  1216. this.$http('opencarOwnerHome/queryDefaultCarInfo', {
  1217. },'GET').then(res => {
  1218. if(res.code==401){
  1219. this.carInfo=''
  1220. this.$store.commit('mutationscarInfo', '')
  1221. }else{
  1222. if(res.data&&res.data!='null'){
  1223. this.carInfo = res.data
  1224. }else{
  1225. this.carInfo=''
  1226. }
  1227. this.$store.commit('mutationscarInfo', this.carInfo)
  1228. //this.getHomeList()
  1229. this.jsTime()
  1230. }
  1231. })
  1232. },
  1233. jsTime(){
  1234. if(this.carInfo.insuranceExpireDate){
  1235. if (Number(new Date().getTime()) > (Number(new Date(this.carInfo.insuranceExpireDate.replace(/-/g, '/')).getTime()) || 0)) {
  1236. console.log("现在时间大于开始时间")
  1237. this.InsuranceExpireDate = 0
  1238. } else {
  1239. this.clock()
  1240. }
  1241. }else{
  1242. this.InsuranceExpireDate=''
  1243. }
  1244. if(this.carInfo.nextCareDate){
  1245. if (Number(new Date().getTime()) > (Number(new Date(this.carInfo.nextCareDate.replace(/-/g, '/')).getTime()) || 0)) {
  1246. this.NextCareDate = 0
  1247. } else {
  1248. this.clock2()
  1249. }
  1250. }else{
  1251. this.NextCareDate = ''
  1252. }
  1253. if(this.carInfo.nextAuditDate){
  1254. if (Number(new Date().getTime()) > (Number(new Date(this.carInfo.nextAuditDate.replace(/-/g, '/')).getTime()) || 0)) {
  1255. this.NextAuditDate = 0
  1256. } else {
  1257. this.clock3()
  1258. }
  1259. }else{
  1260. this.NextAuditDate=''
  1261. }
  1262. },
  1263. clock () {
  1264. let _this = this
  1265. let today = new Date() // 当前时间
  1266. let h = today.getHours()
  1267. let m = today.getMinutes()
  1268. let s = today.getSeconds()
  1269. let stopTime = new Date(_this.carInfo.insuranceExpireDate.replace(/-/g, '/')) // 结束时间
  1270. let stopH = stopTime.getHours()
  1271. let stopM = stopTime.getMinutes()
  1272. let stopS = stopTime.getSeconds()
  1273. let shenyu = stopTime.getTime() - today.getTime() // 倒计时毫秒数
  1274. let shengyuD = parseInt(shenyu / (60 * 60 * 24 * 1000)) // 转换为天
  1275. this.InsuranceExpireDate=shengyuD+1;
  1276. // setTimeout(_this.clock, 500)
  1277. },
  1278. clock2 () {
  1279. let _this = this
  1280. let today = new Date() // 当前时间
  1281. let stopTime = new Date(_this.carInfo.nextCareDate.replace(/-/g, '/')) // 结束时间
  1282. let stopH = stopTime.getHours()
  1283. let stopM = stopTime.getMinutes()
  1284. let stopS = stopTime.getSeconds()
  1285. let shenyu = stopTime.getTime() - today.getTime() // 倒计时毫秒数
  1286. let shengyuD = parseInt(shenyu / (60 * 60 * 24 * 1000)) // 转换为天
  1287. this.NextCareDate=shengyuD+1;
  1288. // setTimeout(_this.clock, 500)
  1289. },
  1290. clock3 () {
  1291. let _this = this
  1292. let today = new Date() // 当前时间
  1293. let stopTime = new Date(_this.carInfo.nextAuditDate.replace(/-/g, '/')) // 结束时间
  1294. let shenyu = stopTime.getTime() - today.getTime() // 倒计时毫秒数
  1295. let shengyuD = parseInt(shenyu / (60 * 60 * 24 * 1000)) // 转换为天
  1296. this.NextAuditDate=shengyuD+1;
  1297. // setTimeout(_this.clock, 500)
  1298. },
  1299. queryManagerInfo(){
  1300. console.log("11")
  1301. this.$http('openHome/queryManagerInfo', {
  1302. },'GET').then(res => {
  1303. this.managerInfo=res.data
  1304. })
  1305. },
  1306. queryHomeCardList(){
  1307. //console.log(this.wxOpenData)
  1308. var that=this;
  1309. uni.showLoading({
  1310. title: '加载中'
  1311. })
  1312. this.$http('openHome/queryHomeCardList', {
  1313. unionId:this.unionId
  1314. },'GET').then(res => {
  1315. uni.hideLoading();
  1316. this.homeCardList=res.data;
  1317. this.appletHomeSetting=res.data.appletHomeSetting;
  1318. this.navigationList=res.data.navigationList
  1319. var appletHomeSetting=this.appletHomeSetting
  1320. //this.tabType=appletHomeSetting.sortSettingList[0].type
  1321. if(this.homeCardList.activityModules.length>0){
  1322. this.activityModulesShow=true
  1323. }
  1324. //console.log("this.navigationList")
  1325. //console.log(this.navigationList)
  1326. if(this.navigationList.length>0){
  1327. this.tabType=this.navigationList[0].showType
  1328. this.tabIndex=0
  1329. this.tabData(this.navigationList[0].showType,this.navigationList[0].id)
  1330. }
  1331. uni.setStorage({
  1332. key: 'openMCar',
  1333. data: res.data.openMCar,
  1334. success: function () {
  1335. that.getCarList()
  1336. }
  1337. });
  1338. uni.setStorage({
  1339. key: 'carAddImage',
  1340. data: appletHomeSetting.carAddImage,
  1341. success: function () {
  1342. }
  1343. });
  1344. uni.setTabBarItem({
  1345. index: 0,
  1346. text: '首页',
  1347. iconPath:appletHomeSetting.homeImageUnCheck,
  1348. selectedIconPath: appletHomeSetting.homeImageCheck
  1349. })
  1350. uni.setTabBarItem({
  1351. index: 1,
  1352. text: '商城',
  1353. iconPath:appletHomeSetting.mallImageUnCheck,
  1354. selectedIconPath: appletHomeSetting.mallImageCheck
  1355. })
  1356. uni.setTabBarItem({
  1357. index: 2,
  1358. text: '活动',
  1359. iconPath:appletHomeSetting.activityImageUnCheck,
  1360. selectedIconPath: appletHomeSetting.activityImageCheck
  1361. })
  1362. uni.setTabBarItem({
  1363. index: 3,
  1364. text: '门店',
  1365. iconPath:appletHomeSetting.storeImageUnCheck,
  1366. selectedIconPath: appletHomeSetting.storeImageCheck
  1367. })
  1368. uni.setTabBarItem({
  1369. index: 4,
  1370. text: '我的',
  1371. iconPath:appletHomeSetting.mineImageUnCheck,
  1372. selectedIconPath: appletHomeSetting.mineImageCheck
  1373. })
  1374. })
  1375. },
  1376. getShopinfo(num,shopId){
  1377. var that=this;
  1378. uni.showLoading({
  1379. title: '加载中'
  1380. })
  1381. if(!shopId){
  1382. shopId=''
  1383. }
  1384. this.$http('openmy/getShopinfo', {
  1385. shopId:shopId
  1386. },'GET').then(res => {
  1387. uni.hideLoading();
  1388. var res=res.data
  1389. if(num==5){
  1390. uni.openLocation({
  1391. latitude:Number(res.lat),
  1392. longitude:Number(res.lng),
  1393. name: res.shopName,
  1394. address: res.address,
  1395. success: function() {
  1396. console.log('success');
  1397. },
  1398. fail(err) {
  1399. console.log(err)
  1400. }
  1401. });
  1402. }else{
  1403. uni.makePhoneCall({
  1404. phoneNumber: res.mobilePhone
  1405. });
  1406. }
  1407. })
  1408. }
  1409. },
  1410. onShareAppMessage(){
  1411. }
  1412. }
  1413. </script>
  1414. <style scoped>
  1415. .content{
  1416. background: #F4F4F4;
  1417. }
  1418. .top{
  1419. position: fixed;
  1420. left: 0;
  1421. width: 750rpx;
  1422. top: 0;
  1423. z-index: 111;
  1424. }
  1425. .logoImg{
  1426. height: 72rpx;width: 492rpx;
  1427. }
  1428. .logoBox{
  1429. height: 78rpx;
  1430. position: relative;
  1431. }
  1432. .showTitleBox{
  1433. line-height: 78rpx;
  1434. position: absolute;
  1435. left: 0;top: 0;
  1436. width: 100%;
  1437. text-align: center;
  1438. font-size: 36rpx;
  1439. color: #fff;
  1440. font-weight: 500;
  1441. }
  1442. .logoBox{
  1443. padding-left: 20rpx;
  1444. padding-bottom: 20rpx;
  1445. padding-top: 8rpx;
  1446. }
  1447. .topCont{
  1448. padding: 8rpx 20rpx;
  1449. height: 100rpx;
  1450. /* padding-bottom: 210rpx; */
  1451. }
  1452. .carBox{
  1453. background: #FFFFFF;
  1454. border-radius: 17rpx;
  1455. padding-top: 20rpx;
  1456. padding-right: 24rpx;
  1457. padding-left: 30rpx;
  1458. }
  1459. .carBox2{
  1460. display: flex;
  1461. justify-content: space-between;
  1462. }
  1463. .carLogoBg{
  1464. width: 123rpx;
  1465. height: 127rpx;
  1466. }
  1467. .carLogo{
  1468. width: 42rpx;height: 42rpx;border-radius: 22rpx;
  1469. }
  1470. .carInfomodel{
  1471. font-size: 30rpx;
  1472. color: #0B0B0B;
  1473. line-height: 42rpx;
  1474. font-weight: 500;
  1475. padding-left: 12rpx;
  1476. max-width: 270rpx;
  1477. white-space: nowrap;
  1478. overflow: hidden;
  1479. text-overflow: ellipsis;
  1480. }
  1481. .carTop{
  1482. display: flex;
  1483. }
  1484. .carXia{
  1485. width: 12rpx;height: 9rpx;
  1486. margin-left: 4rpx;margin-top: 18rpx;
  1487. }
  1488. .plateNumber{
  1489. color: #0B0B0B;padding-right: 20rpx;
  1490. line-height: 42rpx;
  1491. font-size: 22rpx;padding-left: 20rpx;
  1492. }
  1493. .carBj{
  1494. width: 12rpx;height: 15rpx;margin-top: 16rpx;
  1495. }
  1496. .carBq{
  1497. display: flex;
  1498. width: 446rpx;
  1499. height: 47rpx;
  1500. background: #FBF0E4;
  1501. border-radius: 10rpx;
  1502. margin-top: 22rpx;
  1503. }
  1504. .carDui{
  1505. width: 24rpx;height: 24rpx;
  1506. }
  1507. .carBqLine{
  1508. display: flex;
  1509. padding-left: 20rpx;padding-right: 10rpx;padding-top: 10rpx;
  1510. font-size: 22rpx;
  1511. color: #A26D4F;line-height: 26rpx;
  1512. }
  1513. .carTitle{
  1514. padding-left: 6rpx;
  1515. }
  1516. .modular{
  1517. background: #FFFFFF;
  1518. border-radius: 17rpx;
  1519. padding: 34rpx 0 4rpx 0;
  1520. }
  1521. .modularMk{
  1522. width: 25%;text-align: center;
  1523. padding-bottom: 30rpx;
  1524. }
  1525. .modularLine{
  1526. display: flex;flex-wrap: wrap;
  1527. }
  1528. .modularLogo{
  1529. width: 110rpx;height: 110rpx;
  1530. }
  1531. .modularLogo2{
  1532. width: 62rpx;height: 62rpx;
  1533. }
  1534. .modularTitle{
  1535. /* font-weight: 600; */
  1536. font-size: 24rpx;
  1537. color: #222222;line-height: 40rpx;
  1538. }
  1539. .modularTitle2{
  1540. font-size: 24rpx;
  1541. color: #222222;line-height: 40rpx;
  1542. }
  1543. .contBox{
  1544. padding: 20rpx;
  1545. padding-top: 10rpx;
  1546. /* margin-top: 164rpx; */
  1547. /* margin-top: -200rpx; */
  1548. }
  1549. .swiper2{
  1550. height: 200rpx;
  1551. }
  1552. .swiper-item2Img{
  1553. height: 200rpx;
  1554. width: 100%;
  1555. border-radius: 10rpx;
  1556. }
  1557. /* .swiper-item2{
  1558. height: 200rpx;
  1559. } */
  1560. .advertisement{
  1561. background: #FFFFFF;
  1562. margin-top: 20rpx;
  1563. border-radius: 16rpx;
  1564. /* height: 200rpx; */
  1565. /* padding: 12rpx 15rpx; */
  1566. }
  1567. .activeGoodsIcon{
  1568. width: 51rpx;height: 16rpx;
  1569. margin: 0 auto;
  1570. margin-top: 8rpx;
  1571. margin-bottom: 26rpx;
  1572. display: block;
  1573. }
  1574. .goodsTabBox{
  1575. display: flex;
  1576. white-space: nowrap;
  1577. height: 80rpx;
  1578. }
  1579. .goodsTab{
  1580. text-align: center;
  1581. font-weight: 600;
  1582. font-size: 30rpx;
  1583. color: #8B8B8B;
  1584. padding-right: 50rpx;
  1585. }
  1586. .goodsBox{
  1587. margin-top: 30rpx;
  1588. }
  1589. .goodsACt{
  1590. font-weight: 600;
  1591. font-size: 30rpx;
  1592. color: #222222;
  1593. }
  1594. .goodsLine{
  1595. background: #FFFFFF;border-radius: 16rpx;
  1596. padding: 24rpx;margin-bottom: 20rpx;
  1597. }
  1598. .goodsIcon{
  1599. width: 230rpx;border-radius: 12rpx;
  1600. height: 230rpx;display: block;
  1601. }
  1602. .goodsLine{
  1603. display: flex;
  1604. }
  1605. .byBox{
  1606. min-height: 600rpx;
  1607. }
  1608. .qiehuanBox{
  1609. min-height: 600rpx;
  1610. }
  1611. .byBox .goodsName{
  1612. font-weight: 600;
  1613. font-size: 28rpx;
  1614. color: #222222;
  1615. line-height: 40rpx;
  1616. }
  1617. .goodsRight{
  1618. padding-left: 24rpx;
  1619. width: 438rpx;
  1620. display: flex;
  1621. flex-direction: column;
  1622. justify-content: space-between;
  1623. }
  1624. .goodsRb{
  1625. padding-top: 16rpx;
  1626. }
  1627. .goodsMs{
  1628. font-weight: 500;padding-top: 5rpx;
  1629. font-size: 20rpx;
  1630. color: #5B5B5B;
  1631. line-height: 28rpx;
  1632. white-space: nowrap; /* 确保文本在一行内显示 */
  1633. overflow: hidden; /* 超出容器部分隐藏 */
  1634. text-overflow: ellipsis;
  1635. width: 410rpx;
  1636. }
  1637. .goodsCBox{
  1638. display: flex;justify-content: space-between;
  1639. }
  1640. .goodsTitle{
  1641. height: 30rpx;line-height: 32rpx;font-size: 20rpx;
  1642. color: #EC0F0A;padding: 0 10rpx;
  1643. background: #fbf1f0;border-radius: 6rpx;
  1644. }
  1645. .goodsCRight{
  1646. width: 142rpx;
  1647. height: 58rpx;
  1648. background: #EC0F0A;
  1649. border-radius: 29rpx;
  1650. line-height: 58rpx;
  1651. text-align: center;
  1652. font-size: 24rpx;
  1653. color: #FFFFFF;
  1654. margin-top: 12rpx;
  1655. }
  1656. .goodsPriceBox{
  1657. /* padding-bottom: 10rpx; */
  1658. font-size: 22rpx;
  1659. color: #8B8B8B;
  1660. }
  1661. .goodsPrice1{
  1662. font-weight: 500;
  1663. font-size: 20rpx;
  1664. color: #EC0F0A;
  1665. }
  1666. .goodsPrice2{
  1667. font-weight: 500;
  1668. font-size: 34rpx;
  1669. color: #EC0F0A;
  1670. }
  1671. .goodsKbox{
  1672. display: flex;flex-wrap: wrap;
  1673. }
  1674. .goosK1 {
  1675. height: 25rpx;line-height: 27rpx;padding: 0 8rpx;
  1676. border: 1rpx solid #EC0F0A;font-size: 18rpx;
  1677. color: #EC0F0A;margin-right: 10rpx; border-radius: 6rpx;
  1678. margin-top: 10rpx;
  1679. }
  1680. .goosK2{
  1681. height: 25rpx;line-height: 27rpx;padding: 0 8rpx;color: #34B084;
  1682. border: 1rpx solid #34B084;font-size: 18rpx;border-radius: 6rpx;
  1683. margin-right: 10rpx;margin-top: 10rpx;
  1684. }
  1685. .carAddImage{
  1686. width: 91rpx;height: 123rpx;
  1687. }
  1688. .nocarBox{
  1689. background: #FFFFFF;
  1690. border-radius: 17rpx;
  1691. padding: 12rpx 20rpx;
  1692. display: flex;
  1693. margin-top: 20rpx;
  1694. justify-content: space-between;
  1695. }
  1696. .addCarMs{
  1697. padding-left: 26rpx;padding-top: 32rpx;
  1698. }
  1699. .addCarMs1{
  1700. font-weight: 500;
  1701. font-size: 30rpx;
  1702. color: #222222;
  1703. }
  1704. .addCarMs1{
  1705. font-weight: 500;
  1706. font-size: 30rpx;
  1707. color: #222222;
  1708. }
  1709. .addCarMs2{
  1710. font-weight: 400;
  1711. font-size: 24rpx;
  1712. color: #999999;
  1713. }
  1714. .addCarBtn{
  1715. width: 183rpx;
  1716. height: 53rpx;
  1717. background: #222222;
  1718. border-radius: 27rpx;
  1719. font-weight: 600;
  1720. font-size: 28rpx;
  1721. color: #FCD903;
  1722. text-align: center;
  1723. line-height: 53rpx;
  1724. margin-top: 40rpx;
  1725. }
  1726. .authorizBox{
  1727. width: 100vw;
  1728. height: 100vh;
  1729. background: rgba(0, 0, 0, 0.5);
  1730. position: fixed;
  1731. top: 0;
  1732. left: 0;
  1733. }
  1734. .authorizCont{
  1735. margin-top: 30vh;
  1736. width: 564rpx;
  1737. height: 408rpx;
  1738. background: #FFFFFF;
  1739. border-radius: 24rpx;
  1740. margin-left: 93rpx;
  1741. position: relative;
  1742. }
  1743. .authorizCloseImg{
  1744. width: 62rpx;
  1745. height: 62rpx;
  1746. }
  1747. .sqLogoBox{
  1748. width: 180rpx;
  1749. height: 180rpx;
  1750. background: #FFFFFF;
  1751. border-radius: 90rpx;
  1752. text-align: center;
  1753. position: absolute;
  1754. top: -50rpx;
  1755. left: 192rpx;
  1756. }
  1757. .authorizName{
  1758. color: #333333;
  1759. line-height: 42rpx;
  1760. font-size: 30rpx;
  1761. text-align: center;
  1762. padding-top: 58rpx;
  1763. }
  1764. .authorizMs{
  1765. color: #999999;
  1766. line-height: 36rpx;
  1767. font-size: 26rpx;
  1768. width: 452rpx;
  1769. padding-top: 24rpx;
  1770. text-align: center;
  1771. margin-left: 56rpx;
  1772. }
  1773. .authorizContbutton{
  1774. width: 210rpx;
  1775. height: 66rpx;
  1776. background: #EC0F0A;
  1777. border-radius: 44rpx;
  1778. line-height: 66rpx;
  1779. text-align: center;
  1780. font-size:30rpx;
  1781. color: #FFFFFF;
  1782. }
  1783. .sqRefuse{
  1784. width: 210rpx;
  1785. height: 66rpx;
  1786. border: 1px solid #eaeaea;
  1787. line-height: 66rpx;
  1788. border-radius: 36rpx;
  1789. text-align: center;
  1790. font-size:30rpx;
  1791. margin-left:40rpx;
  1792. color: #999999;
  1793. }
  1794. .sqLine{
  1795. margin-top: 62rpx;
  1796. display: flex;
  1797. justify-content: space-between;
  1798. }
  1799. .qrBox{
  1800. position: fixed;
  1801. width: 100vw;
  1802. height: 100vh;
  1803. background: rgba(0,0,0,0.5);
  1804. left: 0;
  1805. top: 0;
  1806. z-index: 11;
  1807. display: flex;
  1808. justify-content: center;
  1809. align-items: center;
  1810. flex-direction: column;
  1811. }
  1812. .qrimgBox{
  1813. width: 562rpx;
  1814. height: 704rpx;
  1815. background: #FFFFFF;
  1816. border-radius: 24rpx;
  1817. }
  1818. .qrTitle{
  1819. font-size: 30rpx;
  1820. font-family: PingFangSC-Medium, PingFang SC;
  1821. font-weight: 500;
  1822. color: #333333;
  1823. border-bottom: 1px solid #EEEEEE;
  1824. text-align: center;
  1825. line-height: 90rpx;
  1826. position: relative;
  1827. }
  1828. .qrimgchahao{
  1829. width: 38rpx;
  1830. height: 38rpx;
  1831. position: absolute;
  1832. top: 26rpx;
  1833. right: 20rpx;
  1834. }
  1835. .qrms{
  1836. font-weight: 400;
  1837. color: #999999;
  1838. line-height: 37rpx;
  1839. font-size: 26rpx;
  1840. padding-top: 23rpx;
  1841. text-align: center;
  1842. }
  1843. .qrms2{
  1844. font-weight: 400;
  1845. color: #999999;
  1846. line-height: 37rpx;
  1847. font-size: 26rpx;
  1848. text-align: center;
  1849. }
  1850. .qrimg{
  1851. width: 328rpx;
  1852. height: 328rpx;
  1853. }
  1854. .qrBtn{
  1855. width: 292rpx;
  1856. height: 64rpx;
  1857. background: #EC0F0A;
  1858. border-radius: 32rpx;
  1859. color: #FFFFFF;
  1860. line-height: 64rpx;
  1861. text-align: center;
  1862. margin: 0 auto;
  1863. margin-top:40rpx;
  1864. }
  1865. .adviser{
  1866. background: #FFFFFF;
  1867. border-radius: 10px;
  1868. display: flex;
  1869. justify-content: space-between;
  1870. padding: 18rpx 20rpx;
  1871. margin-bottom: 20rpx;
  1872. }
  1873. .adviserLeft{
  1874. display: flex;
  1875. }
  1876. .advisertx{
  1877. width: 62rpx;height: 62rpx;
  1878. }
  1879. .adviserNema{
  1880. color: #333333;font-size: 30rpx;
  1881. line-height: 62rpx;padding-left: 24rpx;
  1882. }
  1883. .adviserms{
  1884. width: 118rpx;
  1885. height: 36rpx;
  1886. border-radius: 4rpx;
  1887. border: 1px solid #EC0F0A;
  1888. line-height: 36rpx;
  1889. text-align: center;
  1890. margin-top: 12rpx;
  1891. margin-left: 20rpx;
  1892. color: #EC0F0A;
  1893. font-size: 24rpx;
  1894. }
  1895. .adviserJt{
  1896. width: 12rpx;
  1897. height: 20rpx;
  1898. margin-top: 20rpx;
  1899. }
  1900. .bxBox{
  1901. display: flex;
  1902. flex-wrap: wrap;
  1903. }
  1904. .bxline{
  1905. display: flex;
  1906. padding-bottom: 20rpx;
  1907. }
  1908. .bxline1{
  1909. width: 40%;
  1910. }
  1911. .bxline2{
  1912. width: 60%;height: 40rpx;
  1913. }
  1914. .bxlineTitle{
  1915. color: #333333;
  1916. font-size: 26rpx;
  1917. line-height: 37rpx;
  1918. padding-left: 10rpx;
  1919. }
  1920. .bxlineMs1{
  1921. line-height: 37rpx;
  1922. color: #A26D4F;
  1923. font-size: 26rpx;
  1924. padding-left: 10rpx;
  1925. }
  1926. .bxlineMs2{
  1927. line-height: 40rpx;
  1928. color: #999999;
  1929. font-size: 24rpx;
  1930. padding-left: 10rpx;
  1931. }
  1932. .bxlineIcon{
  1933. width: 34rpx;
  1934. height: 34rpx;
  1935. /* margin-left: 24rpx; */
  1936. }
  1937. .carTimeBox{
  1938. /* border-top: 1px solid #EEEEEE; */
  1939. /* padding-bottom: 15rpx; */
  1940. }
  1941. .plateNumberSpan1{
  1942. background: #0041FF;
  1943. border-radius: 4rpx 0rpx 0rpx 4rpx;
  1944. color: #FFFFFF;
  1945. border: 1px solid #0041FF;
  1946. padding: 0 6rpx;
  1947. }
  1948. .plateNumberSpan2{
  1949. color: #0B0B0B;
  1950. border: 1px solid #0041FF;
  1951. padding: 0 6rpx;
  1952. border-radius: 0rpx 4rpx 4rpx 0rpx;
  1953. }
  1954. .swiperTk{
  1955. height: 52vh;
  1956. width: 100vw;
  1957. }
  1958. .swiper-itemTk{
  1959. display: flex;
  1960. justify-content: center;
  1961. flex-direction: column;
  1962. align-items: center;
  1963. height: 50vh;
  1964. padding-bottom: 50rpx;
  1965. }
  1966. .tkHdImg{
  1967. width: 80vw;margin-bottom: 10px;
  1968. }
  1969. .swiper-itemTk{
  1970. text-align: center;
  1971. }
  1972. .closeTk{
  1973. width: 60rpx;height: 60rpx;
  1974. }
  1975. .hotGoodsLine{
  1976. /* margin-top: 30rpx; */
  1977. padding: 20rpx;
  1978. background: #FFFFFF;
  1979. border-radius: 16rpx;
  1980. display: flex;
  1981. }
  1982. .hotGoodsLineImg{
  1983. width: 208rpx;
  1984. height: 194rpx;
  1985. border-radius: 16rpx;
  1986. border: 1px solid #EEEEEE;
  1987. display: block;
  1988. }
  1989. .goodsName{
  1990. font-size: 28rpx;
  1991. font-family: PingFangSC-Regular, PingFang SC;
  1992. font-weight: 400;
  1993. color: #333333;
  1994. line-height: 40rpx;
  1995. text-overflow: -o-ellipsis-lastline;
  1996. overflow: hidden;
  1997. text-overflow: ellipsis;
  1998. display: -webkit-box;
  1999. -webkit-line-clamp: 2;
  2000. line-clamp: 2;
  2001. -webkit-box-orient: vertical;
  2002. }
  2003. .hotGoodsLineRIght{
  2004. padding-left: 24rpx;
  2005. }
  2006. .goodsPrice{
  2007. display: flex;
  2008. padding-top: 10rpx;
  2009. }
  2010. .goodsPrice1{
  2011. font-size: 24rpx;
  2012. font-weight: 400;
  2013. color: #EC0F0A;
  2014. padding-top: 8rpx;
  2015. }
  2016. .goodsPrice2{
  2017. font-size: 22rpx;
  2018. font-weight: 400;
  2019. color: #EC0F0A;
  2020. padding-top: 10rpx;
  2021. }
  2022. .goodsPrice3{
  2023. font-size: 32rpx;
  2024. font-weight: 500;
  2025. color: #EC0F0A;
  2026. }
  2027. .goodsPrice11{
  2028. font-size: 20rpx;
  2029. color: #EC0F0A;
  2030. padding-top: 8rpx;
  2031. }
  2032. .goodsPrice22{
  2033. font-size: 34rpx;
  2034. font-weight: 500;
  2035. color: #EC0F0A;
  2036. padding-top: 10rpx;
  2037. }
  2038. .goodsPrice33{
  2039. font-size: 22rpx;
  2040. color: #8B8B8B;
  2041. }
  2042. .goodsPrice4{
  2043. font-size: 24rpx;
  2044. font-weight: 400;
  2045. color: #999999;
  2046. padding-top: 8rpx;
  2047. padding-left: 10rpx;
  2048. text-decoration:line-through;
  2049. }
  2050. .Sold{
  2051. font-weight: 400;
  2052. color: #999999;
  2053. font-size: 24rpx;
  2054. padding-top: 8rpx;
  2055. }
  2056. .jkStateImg{
  2057. width: 102rpx;
  2058. height: 53rpx;
  2059. position: relative;
  2060. }
  2061. .hotLineTopImg{
  2062. width: 702rpx;
  2063. height: 280rpx;
  2064. display: block;
  2065. }
  2066. .hotLineTop{
  2067. position: relative;
  2068. height: 280rpx;
  2069. }
  2070. .hotLine{
  2071. margin-bottom: 20rpx;
  2072. border-radius: 10rpx;
  2073. background: #FFFFFF;
  2074. overflow: hidden;
  2075. position: relative;
  2076. }
  2077. .groupType{
  2078. width: 76rpx;color: #FFFFFF;
  2079. height: 36rpx;line-height: 36rpx;text-align: center;
  2080. background: linear-gradient(109deg, #FD5A04 0%, #FD0900 100%);
  2081. border-radius: 0rpx 10rpx 0rpx 10rpx;
  2082. position: absolute;font-weight: 500;
  2083. top: 0;right: 0;font-size: 24rpx;
  2084. }
  2085. .hotlinestate1{
  2086. width: 102rpx;
  2087. height: 44rpx;
  2088. background:#FBBF00 ;
  2089. line-height: 44rpx;
  2090. font-weight: 500;
  2091. color: #333333;
  2092. font-size: 24rpx;
  2093. text-align: center;
  2094. }
  2095. .hotlinestate2{
  2096. width: 102rpx;
  2097. height: 44rpx;
  2098. background:#EC0F0A ;
  2099. line-height: 44rpx;
  2100. font-weight: 500;
  2101. color: #FFFFFF;
  2102. font-size: 24rpx;
  2103. text-align: center;
  2104. }
  2105. .hotlineTimebox{
  2106. position: absolute;
  2107. left: 0;
  2108. bottom: 0;
  2109. display: flex;
  2110. align-items: flex-end;
  2111. }
  2112. .hotTime{
  2113. background: rgba(0, 0, 0, 0.5);
  2114. font-weight: 400;
  2115. color: #FFFFFF;
  2116. font-size: 24rpx;
  2117. /* line-height: 44rpx; */
  2118. padding: 5rpx 20rpx;
  2119. margin-top: 9rpx;
  2120. margin-left: -8rpx;
  2121. border-radius: 0px 10rpx 0px 0px;
  2122. }
  2123. .hotName{
  2124. padding: 24rpx 20rpx;
  2125. color: #333333;
  2126. line-height: 40rpx;
  2127. font-size: 28rpx;
  2128. }
  2129. .isRecommend{
  2130. font-size: 20rpx;
  2131. background: #57C73D;
  2132. height: 30rpx;
  2133. padding: 0 6rpx;
  2134. border-radius: 6rpx;
  2135. color: #fff;
  2136. margin-top: 5rpx;
  2137. margin-right: 10rpx;
  2138. }
  2139. .goodsLeft{
  2140. position: relative;
  2141. }
  2142. .byTj{
  2143. width: 70rpx;height: 70rpx;top: 0;left: 0;
  2144. position: absolute;
  2145. }
  2146. .goodsTwo{
  2147. display: flex;
  2148. justify-content: space-between;
  2149. flex-wrap: wrap;
  2150. }
  2151. .goodsTwoLine{
  2152. background: #FFFFFF;width: 341rpx;
  2153. margin-bottom: 20rpx;
  2154. padding-bottom: 20rpx;
  2155. border-radius: 16rpx;
  2156. overflow: hidden;
  2157. }
  2158. .goodsTwoImg .hotGoodsLineImg{
  2159. margin: 0 auto;
  2160. width: 100%;
  2161. height: 340rpx;
  2162. border-radius: 0;
  2163. border: none;
  2164. }
  2165. .goodsTwoLine .Sold{
  2166. padding-left: 20rpx;
  2167. }
  2168. .goodsTwoLine .goodsPrice{
  2169. padding-left: 20rpx;
  2170. }
  2171. .goodsTwoImg{
  2172. padding-bottom: 30rpx;
  2173. }
  2174. .goodsTwoName{
  2175. font-weight: 400;
  2176. color: #333333;
  2177. font-size: 26rpx;
  2178. line-height: 38rpx;
  2179. padding: 0 20rpx;
  2180. text-overflow: -o-ellipsis-lastline;
  2181. overflow: hidden;
  2182. text-overflow: ellipsis;
  2183. display: -webkit-box;
  2184. -webkit-line-clamp: 2;
  2185. line-clamp: 2;
  2186. -webkit-box-orient: vertical;
  2187. }
  2188. </style>