index.vue 56 KB

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