index.vue 56 KB

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