index.vue 67 KB

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