index.vue 66 KB

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