index.vue 60 KB

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