index.vue 55 KB

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