index.vue 61 KB

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