index.vue 66 KB

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