index.vue 66 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480
  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="qiehuanBox" v-if="openMActivity&&tabType==3">
  316. <view v-if="openMActivity.openCollectingList">
  317. <view class="Hot" 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. }
  964. // uni.navigateTo({
  965. // url:url
  966. // })
  967. }
  968. },
  969. decryptPhoneNumber: function(e) {
  970. console.log(e);
  971. this.code=e.detail.code
  972. this.wxPhoneLogin()
  973. this.authorizShow=false;
  974. },
  975. wxgologin(){
  976. var that=this;
  977. uni.getUserProfile({
  978. lang:'zh_CN',
  979. desc:'登录',
  980. success:(res)=>{
  981. console.log(res);
  982. that.wxdata=res;
  983. uni.setStorage({
  984. key: 'wxdata',
  985. data: res,
  986. success: function () {
  987. that.uniLogin()
  988. }
  989. });
  990. },
  991. fail:(res)=>{
  992. console.log(res)
  993. }
  994. });
  995. },
  996. uniLogin(){
  997. var that=this;
  998. uni.login({
  999. provider: 'weixin',
  1000. success: function (loginRes) {
  1001. console.log(loginRes);
  1002. that.getWxOpenID(loginRes)
  1003. }
  1004. });
  1005. },
  1006. getWxOpenID(e){
  1007. var that=this;
  1008. // uni.showLoading({
  1009. // title: '加载中'
  1010. // })
  1011. this.$http('miniApp2/sys/getWxOpenID', {
  1012. code:e.code,
  1013. unionId:this.unionId,
  1014. shareId:this.shareID
  1015. },'GET').then(res => {
  1016. console.log(res.code);
  1017. console.log("授权信息")
  1018. console.log(res)
  1019. //uni.hideLoading();
  1020. if(res.code!=0){
  1021. //uni.hideLoading();
  1022. var msg=res.msg
  1023. if(!msg){
  1024. msg='授权失败'
  1025. }
  1026. console.log(msg);
  1027. }
  1028. this.wxOpenData=res.data;
  1029. this.themeColor=res.data.themeColor
  1030. //this.themeColor='FFFFFF'
  1031. this.getwxLoing=true;
  1032. uni.setNavigationBarTitle({
  1033. title:this.wxOpenData.miniAppName
  1034. })
  1035. if(this.themeColor=='6F2BE8'){
  1036. var backgroundImage='/static/tabimg/index6F2BE8.png'
  1037. }
  1038. if(this.themeColor=='1677FF'){
  1039. var backgroundImage='/static/tabimg/index1677FF.png'
  1040. }
  1041. if(this.themeColor=='FF4F00'){
  1042. var backgroundImage='/static/tabimg/indexFF4F00.png'
  1043. }
  1044. if(this.themeColor=='EC0F0A'){
  1045. var backgroundImage='/static/tabimg/index1.png'
  1046. }
  1047. uni.setTabBarStyle({
  1048. // color: '#EC0F0A',
  1049. //selectedColor: '#'+this.themeColor,
  1050. selectedColor: '#222222',
  1051. })
  1052. /* uni.setTabBarItem({
  1053. index: 0,
  1054. text: '首页',
  1055. selectedIconPath: backgroundImage
  1056. }) */
  1057. if(res.code==0){
  1058. that.queryHomeCardList()
  1059. }
  1060. //that.wxPhoneLogin()
  1061. this.$store.commit('mutationswxOpenData', that.wxOpenData)
  1062. uni.setStorage({
  1063. key: 'wxOpenData',
  1064. data: that.wxOpenData,
  1065. success: function () {
  1066. // that.uniLogin()
  1067. }
  1068. });
  1069. uni.setStorage({
  1070. key: 'themeColor',
  1071. data: that.themeColor,
  1072. success: function () {
  1073. // that.uniLogin()
  1074. console.log("themeColor=="+that.themeColor)
  1075. }
  1076. });
  1077. if(this.wxOpenData.loginInfo){
  1078. this.$store.commit('mutationsuserInfo', that.wxOpenData.loginInfo.openUser)
  1079. this.userInfo=that.wxOpenData.loginInfo.openUser
  1080. that.queryManagerInfo()
  1081. //that.tabData()
  1082. uni.setStorage({
  1083. key: 'userInfo',
  1084. data: that.wxOpenData.loginInfo.openUser,
  1085. success: function () {
  1086. that.getCarList()
  1087. }
  1088. });
  1089. }else{
  1090. //this.authorizShow=true;
  1091. }
  1092. if(res.data.loginInfo.discount){
  1093. that.discount=res.data.loginInfo.discount;
  1094. if(that.discount==2){
  1095. that.bizUserId=res.data.loginInfo.bizUserId;
  1096. }
  1097. if(that.shareID){
  1098. that.getCouponList()
  1099. }
  1100. }
  1101. if(res.data.loginInfo.coNoNewCustMsg){ //车主合伙人二维码提示
  1102. uni.showModal({
  1103. title: '提示',
  1104. content:res.data.loginInfo.coNoNewCustMsg,
  1105. success: function(resTKk) {
  1106. }
  1107. });
  1108. }
  1109. //console.log("优惠券")
  1110. })
  1111. },
  1112. wxPhoneLogin(){
  1113. var that=this;
  1114. this.$http('miniApp2/sys/wxPhoneLogin', {
  1115. appId:this.ext.appId,
  1116. unionId:this.unionId,
  1117. code:this.code,
  1118. openId:this.wxOpenData.openid,
  1119. shareId:this.shareID
  1120. },'POST').then(res => {
  1121. var data = res.data;
  1122. if(data.loginInfo){
  1123. this.userInfo=data.loginInfo.openUser;
  1124. this.customerInfo=data.loginInfo.customerInfo
  1125. this.$store.commit('mutationsuserInfo', this.userInfo);
  1126. this.$store.commit('mutationswxOpenData', data);
  1127. uni.setStorage({
  1128. key: 'customerInfo',
  1129. data: this.customerInfo,
  1130. success: function () {
  1131. }
  1132. })
  1133. uni.setStorage({
  1134. key: 'userInfo',
  1135. data: data.loginInfo.openUser,
  1136. success: function () {
  1137. that.getCarList()
  1138. that.queryHomeCardList()
  1139. that.queryManagerInfo();
  1140. if(data.loginInfo.coCouponsMsg){
  1141. uni.hideLoading()
  1142. that.coCouponsMsg =data.loginInfo.coCouponsMsg;
  1143. that.ownerCoupon()
  1144. }
  1145. if(data.loginInfo.coNoNewCustMsg){
  1146. //console.log(data.loginInfo.coNoNewCustMsg)
  1147. uni.hideLoading()
  1148. that.coNoNewCustMsg =data.loginInfo.coNoNewCustMsg;
  1149. that.coNoNewCust()
  1150. }
  1151. if(data.loginInfo.discount){
  1152. that.discount=data.loginInfo.discount;
  1153. if(that.discount==2){
  1154. that.bizUserId=data.loginInfo.bizUserId;
  1155. }
  1156. if(that.shareID&&that.discount==2){
  1157. that.getCouponList()
  1158. }
  1159. }
  1160. }
  1161. });
  1162. if(!this.customerInfo.wxMiniV2OpenID){
  1163. this.seeQr()
  1164. }
  1165. this.queryManagerInfo()
  1166. }
  1167. })
  1168. },
  1169. coNoNewCust(){
  1170. console.log(111111)
  1171. var that=this;
  1172. uni.showModal({
  1173. title: '提示',
  1174. content: that.coNoNewCustMsg,
  1175. success: function(resTK) {
  1176. }
  1177. });
  1178. },
  1179. ownerCoupon(){
  1180. console.log(22222)
  1181. var that=this;
  1182. uni.showModal({
  1183. title: '提示',
  1184. content: that.coCouponsMsg,
  1185. cancelText:'回到首页',
  1186. confirmText:'查看',
  1187. success: function(resTK) {
  1188. if (resTK.confirm) {
  1189. uni.navigateTo({
  1190. url:'discountCard'
  1191. })
  1192. }
  1193. }
  1194. });
  1195. },
  1196. getCouponList(){
  1197. if(this.discount!=2){
  1198. var params={
  1199. discount:this.discount
  1200. }
  1201. }else{
  1202. var params={
  1203. discount:this.discount,
  1204. bizId:this.bizUserId
  1205. }
  1206. }
  1207. var that=this;
  1208. this.$http('opencoupon/getCouponList', params, 'GET').then(res => {
  1209. var list = res.data;
  1210. if(list.length>0){
  1211. uni.showModal({
  1212. title: '提示',
  1213. content: '您有优惠券待领取',
  1214. cancelText:'回到首页',
  1215. confirmText:'查看',
  1216. success: function(resTK) {
  1217. if (resTK.confirm) {
  1218. uni.navigateTo({
  1219. url:'discountDlq?bizUserId='+that.bizUserId+'&discount='+that.discount
  1220. })
  1221. }
  1222. }
  1223. });
  1224. }
  1225. })
  1226. },
  1227. getCarList(){
  1228. /* this.$http('opencarOwnerHome/queryCarInfoList', {
  1229. },'GET').then(res => {
  1230. if(res.code==401){
  1231. this.carInfo=''
  1232. this.$store.commit('mutationscarInfo', '')
  1233. }else{
  1234. this.carInfo=res.data[0]
  1235. this.$store.commit('mutationscarInfo', this.carInfo)
  1236. this.jsTime()
  1237. }
  1238. }) */
  1239. this.$http('opencarOwnerHome/queryDefaultCarInfo', {
  1240. },'GET').then(res => {
  1241. if(res.code==401){
  1242. this.carInfo=''
  1243. this.$store.commit('mutationscarInfo', '')
  1244. }else{
  1245. if(res.data&&res.data!='null'){
  1246. this.carInfo = res.data
  1247. }else{
  1248. this.carInfo=''
  1249. }
  1250. this.$store.commit('mutationscarInfo', this.carInfo)
  1251. //this.getHomeList()
  1252. this.jsTime()
  1253. }
  1254. })
  1255. },
  1256. jsTime(){
  1257. if(this.carInfo.insuranceExpireDate){
  1258. if (Number(new Date().getTime()) > (Number(new Date(this.carInfo.insuranceExpireDate.replace(/-/g, '/')).getTime()) || 0)) {
  1259. console.log("现在时间大于开始时间")
  1260. this.InsuranceExpireDate = 0
  1261. } else {
  1262. this.clock()
  1263. }
  1264. }else{
  1265. this.InsuranceExpireDate=''
  1266. }
  1267. if(this.carInfo.nextCareDate){
  1268. if (Number(new Date().getTime()) > (Number(new Date(this.carInfo.nextCareDate.replace(/-/g, '/')).getTime()) || 0)) {
  1269. this.NextCareDate = 0
  1270. } else {
  1271. this.clock2()
  1272. }
  1273. }else{
  1274. this.NextCareDate = ''
  1275. }
  1276. if(this.carInfo.nextAuditDate){
  1277. if (Number(new Date().getTime()) > (Number(new Date(this.carInfo.nextAuditDate.replace(/-/g, '/')).getTime()) || 0)) {
  1278. this.NextAuditDate = 0
  1279. } else {
  1280. this.clock3()
  1281. }
  1282. }else{
  1283. this.NextAuditDate=''
  1284. }
  1285. },
  1286. clock () {
  1287. let _this = this
  1288. let today = new Date() // 当前时间
  1289. let h = today.getHours()
  1290. let m = today.getMinutes()
  1291. let s = today.getSeconds()
  1292. let stopTime = new Date(_this.carInfo.insuranceExpireDate.replace(/-/g, '/')) // 结束时间
  1293. let stopH = stopTime.getHours()
  1294. let stopM = stopTime.getMinutes()
  1295. let stopS = stopTime.getSeconds()
  1296. let shenyu = stopTime.getTime() - today.getTime() // 倒计时毫秒数
  1297. let shengyuD = parseInt(shenyu / (60 * 60 * 24 * 1000)) // 转换为天
  1298. this.InsuranceExpireDate=shengyuD+1;
  1299. // setTimeout(_this.clock, 500)
  1300. },
  1301. clock2 () {
  1302. let _this = this
  1303. let today = new Date() // 当前时间
  1304. let stopTime = new Date(_this.carInfo.nextCareDate.replace(/-/g, '/')) // 结束时间
  1305. let stopH = stopTime.getHours()
  1306. let stopM = stopTime.getMinutes()
  1307. let stopS = stopTime.getSeconds()
  1308. let shenyu = stopTime.getTime() - today.getTime() // 倒计时毫秒数
  1309. let shengyuD = parseInt(shenyu / (60 * 60 * 24 * 1000)) // 转换为天
  1310. this.NextCareDate=shengyuD+1;
  1311. // setTimeout(_this.clock, 500)
  1312. },
  1313. clock3 () {
  1314. let _this = this
  1315. let today = new Date() // 当前时间
  1316. let stopTime = new Date(_this.carInfo.nextAuditDate.replace(/-/g, '/')) // 结束时间
  1317. let shenyu = stopTime.getTime() - today.getTime() // 倒计时毫秒数
  1318. let shengyuD = parseInt(shenyu / (60 * 60 * 24 * 1000)) // 转换为天
  1319. this.NextAuditDate=shengyuD+1;
  1320. // setTimeout(_this.clock, 500)
  1321. },
  1322. queryManagerInfo(){
  1323. console.log("11")
  1324. this.$http('openHome/queryManagerInfo', {
  1325. },'GET').then(res => {
  1326. this.managerInfo=res.data
  1327. })
  1328. },
  1329. queryHomeCardList(){
  1330. //console.log(this.wxOpenData)
  1331. var that=this;
  1332. uni.showLoading({
  1333. title: '加载中'
  1334. })
  1335. this.$http('openHome/queryHomeCardList', {
  1336. unionId:this.unionId
  1337. },'GET').then(res => {
  1338. uni.hideLoading();
  1339. this.homeCardList=res.data;
  1340. this.appletHomeSetting=res.data.appletHomeSetting;
  1341. this.navigationList=res.data.navigationList
  1342. var appletHomeSetting=this.appletHomeSetting
  1343. this.setTabBarItemFn()
  1344. if(this.homeCardList.activityModules.length>0){
  1345. this.activityModulesShow=true
  1346. }
  1347. //console.log("this.navigationList")
  1348. //console.log(this.navigationList)
  1349. if(this.navigationList.length>0){
  1350. this.tabType=this.navigationList[0].showType
  1351. this.tabIndex=0
  1352. this.tabData(this.navigationList[0].showType,this.navigationList[0].id)
  1353. }
  1354. uni.setStorage({
  1355. key: 'openMCar',
  1356. data: res.data.openMCar,
  1357. success: function () {
  1358. that.getCarList()
  1359. }
  1360. });
  1361. var carbg={
  1362. carAddImage:appletHomeSetting.carAddImage,
  1363. carAddImageType:appletHomeSetting.carAddImageType,
  1364. carAddImageDefault:appletHomeSetting.carAddImageDefault,
  1365. }
  1366. uni.setStorage({
  1367. key: 'carbg',
  1368. data: carbg,
  1369. success: function () {
  1370. }
  1371. });
  1372. })
  1373. },
  1374. setTabBarItemFn(){
  1375. var appletHomeSetting=this.appletHomeSetting
  1376. /* uni.setTabBarStyle({
  1377. // color: '#FF0000',
  1378. selectedColor: '#'+this.themeColor,
  1379. }) */
  1380. if(appletHomeSetting.showHomeType==1){
  1381. if(this.themeColor=='6F2BE8'){
  1382. var backgroundImage='/static/tabimg/index6F2BE8.png'
  1383. }else if(this.themeColor=='1677FF'){
  1384. var backgroundImage='/static/tabimg/index1677FF.png'
  1385. }else if(this.themeColor=='FF4F00'){
  1386. var backgroundImage='/static/tabimg/indexFF4F00.png'
  1387. }else if(this.themeColor=='D53533'){
  1388. var backgroundImage='/static/tabimg/index1.png'
  1389. }else{
  1390. var backgroundImage='/static/tabimg/index1.png'
  1391. }
  1392. uni.setTabBarItem({
  1393. index: 0,
  1394. text: '首页',
  1395. iconPath:'/static/tabimg/index2.png',
  1396. selectedIconPath: backgroundImage
  1397. })
  1398. }else{
  1399. uni.setTabBarItem({
  1400. index: 0,
  1401. text: '首页',
  1402. iconPath:appletHomeSetting.homeImageUnCheck,
  1403. selectedIconPath: appletHomeSetting.homeImageCheck
  1404. })
  1405. }
  1406. //商城
  1407. if(appletHomeSetting.showMallType==1){
  1408. if(this.themeColor=='6F2BE8'){
  1409. var backgroundImage='/static/tabimg/shop6F2BE8.png'
  1410. }else
  1411. if(this.themeColor=='1677FF'){
  1412. var backgroundImage='/static/tabimg/shop1677FF.png'
  1413. }else
  1414. if(this.themeColor=='FF4F00'){
  1415. var backgroundImage='/static/tabimg/shopFF4F00.png'
  1416. }else
  1417. if(this.themeColor=='D53533'){
  1418. var backgroundImage='/static/tabimg/shop1.png'
  1419. }else{
  1420. var backgroundImage='/static/tabimg/shop1.png'
  1421. }
  1422. uni.setTabBarItem({
  1423. index: 1,
  1424. text: '商城',
  1425. iconPath:'/static/tabimg/shop2.png',
  1426. selectedIconPath: backgroundImage
  1427. })
  1428. }else{
  1429. uni.setTabBarItem({
  1430. index: 1,
  1431. text: '商城',
  1432. iconPath:appletHomeSetting.mallImageUnCheck,
  1433. selectedIconPath: appletHomeSetting.mallImageCheck
  1434. })
  1435. }
  1436. if(appletHomeSetting.showActivityType==1){
  1437. if(this.themeColor=='6F2BE8'){
  1438. var backgroundImage='/static/tabimg/activty6F2BE8.png'
  1439. }else
  1440. if(this.themeColor=='1677FF'){
  1441. var backgroundImage='/static/tabimg/activty1677FF.png'
  1442. }else
  1443. if(this.themeColor=='FF4F00'){
  1444. var backgroundImage='/static/tabimg/activtyFF4F00.png'
  1445. }else
  1446. if(this.themeColor=='D53533'){
  1447. var backgroundImage='/static/tabimg/activity1.png'
  1448. }else{
  1449. var backgroundImage='/static/tabimg/activity1.png'
  1450. }
  1451. uni.setTabBarItem({
  1452. index: 2,
  1453. text: '活动',
  1454. iconPath:'/static/tabimg/activty2.png',
  1455. selectedIconPath: backgroundImage
  1456. })
  1457. }else{
  1458. uni.setTabBarItem({
  1459. index: 2,
  1460. text: '活动',
  1461. iconPath:appletHomeSetting.activityImageUnCheck,
  1462. selectedIconPath: appletHomeSetting.activityImageCheck
  1463. })
  1464. }
  1465. //门店
  1466. if(appletHomeSetting.showStoreType==1){
  1467. if(this.themeColor=='6F2BE8'){
  1468. var backgroundImage='/static/tabimg/shop6F2BE8.png'
  1469. }else
  1470. if(this.themeColor=='1677FF'){
  1471. var backgroundImage='/static/tabimg/shop1677FF.png'
  1472. }else
  1473. if(this.themeColor=='FF4F00'){
  1474. var backgroundImage='/static/tabimg/shopFF4F00.png'
  1475. }else
  1476. if(this.themeColor=='D53533'){
  1477. var backgroundImage='/static/tabimg/shop1.png'
  1478. }else{
  1479. var backgroundImage='/static/tabimg/shop1.png'
  1480. }
  1481. uni.setTabBarItem({
  1482. index: 3,
  1483. text: '门店',
  1484. iconPath:'/static/tabimg/shop2.png',
  1485. selectedIconPath: backgroundImage
  1486. })
  1487. }else{
  1488. uni.setTabBarItem({
  1489. index: 3,
  1490. text: '门店',
  1491. iconPath:appletHomeSetting.storeImageUnCheck,
  1492. selectedIconPath: appletHomeSetting.storeImageCheck
  1493. })
  1494. }
  1495. if(appletHomeSetting.showMineType==1){
  1496. if (this.themeColor == '6F2BE8') {
  1497. var backgroundImage = '/static/tabimg/me6F2BE8.png'
  1498. }else
  1499. if (this.themeColor == '1677FF') {
  1500. var backgroundImage = '/static/tabimg/me1677FF.png'
  1501. }else
  1502. if (this.themeColor == 'FF4F00') {
  1503. var backgroundImage = '/static/tabimg/meFF4F00.png'
  1504. }else
  1505. if (this.themeColor == 'D53533') {
  1506. var backgroundImage = '/static/tabimg/me1.png'
  1507. }else{
  1508. var backgroundImage = '/static/tabimg/me1.png'
  1509. }
  1510. uni.setTabBarItem({
  1511. index: 4,
  1512. text: '我的',
  1513. iconPath:'/static/tabimg/me2.png',
  1514. selectedIconPath: backgroundImage
  1515. })
  1516. }else{
  1517. uni.setTabBarItem({
  1518. index: 4,
  1519. text: '我的',
  1520. iconPath:appletHomeSetting.mineImageUnCheck,
  1521. selectedIconPath: appletHomeSetting.mineImageCheck
  1522. })
  1523. }
  1524. },
  1525. getShopinfo(num,shopId){
  1526. var that=this;
  1527. uni.showLoading({
  1528. title: '加载中'
  1529. })
  1530. if(!shopId){
  1531. shopId=''
  1532. }
  1533. this.$http('openmy/getShopinfo', {
  1534. shopId:shopId
  1535. },'GET').then(res => {
  1536. uni.hideLoading();
  1537. var res=res.data
  1538. if(num==5){
  1539. uni.openLocation({
  1540. latitude:Number(res.lat),
  1541. longitude:Number(res.lng),
  1542. name: res.shopName,
  1543. address: res.address,
  1544. success: function() {
  1545. console.log('success');
  1546. },
  1547. fail(err) {
  1548. console.log(err)
  1549. }
  1550. });
  1551. }else{
  1552. uni.makePhoneCall({
  1553. phoneNumber: res.mobilePhone
  1554. });
  1555. }
  1556. })
  1557. }
  1558. },
  1559. onShareAppMessage(){
  1560. }
  1561. }
  1562. </script>
  1563. <style scoped>
  1564. .content{
  1565. background: #F4F4F4;
  1566. }
  1567. .top{
  1568. position: fixed;
  1569. left: 0;
  1570. width: 750rpx;
  1571. top: 0;
  1572. z-index: 111;
  1573. }
  1574. .logoImg{
  1575. height: 72rpx;width: 492rpx;
  1576. }
  1577. .logoBox{
  1578. height: 78rpx;
  1579. position: relative;
  1580. }
  1581. .showTitleBox{
  1582. line-height: 78rpx;
  1583. position: absolute;
  1584. left: 0;top: 0;
  1585. width: 100%;
  1586. text-align: center;
  1587. font-size: 36rpx;
  1588. color: #fff;
  1589. font-weight: 500;
  1590. }
  1591. .logoBox{
  1592. padding-left: 20rpx;
  1593. padding-bottom: 20rpx;
  1594. padding-top: 8rpx;
  1595. }
  1596. .topCont{
  1597. padding: 8rpx 20rpx;
  1598. height: 100rpx;
  1599. /* padding-bottom: 210rpx; */
  1600. }
  1601. .carBox{
  1602. background: #FFFFFF;
  1603. border-radius: 17rpx;
  1604. padding-top: 20rpx;
  1605. padding-right: 24rpx;
  1606. padding-left: 30rpx;
  1607. }
  1608. .carBox2{
  1609. display: flex;
  1610. justify-content: space-between;
  1611. }
  1612. .carLogoBg{
  1613. width: 123rpx;
  1614. height: 127rpx;
  1615. }
  1616. .carLogo{
  1617. width: 42rpx;height: 42rpx;border-radius: 22rpx;
  1618. }
  1619. .carInfomodel{
  1620. font-size: 30rpx;
  1621. color: #0B0B0B;
  1622. line-height: 42rpx;
  1623. font-weight: 500;
  1624. padding-left: 12rpx;
  1625. max-width: 270rpx;
  1626. white-space: nowrap;
  1627. overflow: hidden;
  1628. text-overflow: ellipsis;
  1629. }
  1630. .carTop{
  1631. display: flex;
  1632. }
  1633. .carXia{
  1634. width: 12rpx;height: 9rpx;
  1635. margin-left: 4rpx;margin-top: 18rpx;
  1636. }
  1637. .plateNumber{
  1638. color: #0B0B0B;padding-right: 20rpx;
  1639. line-height: 42rpx;
  1640. font-size: 22rpx;padding-left: 20rpx;
  1641. }
  1642. .carBj{
  1643. width: 12rpx;height: 15rpx;margin-top: 16rpx;
  1644. }
  1645. .carBq{
  1646. display: flex;
  1647. width: 446rpx;
  1648. height: 47rpx;
  1649. background: #FBF0E4;
  1650. border-radius: 10rpx;
  1651. margin-top: 22rpx;
  1652. }
  1653. .carDui{
  1654. width: 24rpx;height: 24rpx;
  1655. }
  1656. .carBqLine{
  1657. display: flex;
  1658. padding-left: 20rpx;padding-right: 10rpx;padding-top: 10rpx;
  1659. font-size: 22rpx;
  1660. color: #A26D4F;line-height: 26rpx;
  1661. }
  1662. .carTitle{
  1663. padding-left: 6rpx;
  1664. }
  1665. .modular{
  1666. background: #FFFFFF;
  1667. border-radius: 17rpx;
  1668. padding: 34rpx 0 4rpx 0;
  1669. }
  1670. .modularMk{
  1671. width: 25%;text-align: center;
  1672. padding-bottom: 30rpx;
  1673. }
  1674. .modularLine{
  1675. display: flex;flex-wrap: wrap;
  1676. }
  1677. .modularLogo{
  1678. width: 110rpx;height: 110rpx;
  1679. }
  1680. .modularLogo2{
  1681. width: 62rpx;height: 62rpx;
  1682. }
  1683. .modularTitle{
  1684. /* font-weight: 600; */
  1685. font-size: 24rpx;
  1686. color: #222222;line-height: 40rpx;
  1687. }
  1688. .modularTitle2{
  1689. font-size: 24rpx;
  1690. color: #222222;line-height: 40rpx;
  1691. }
  1692. .contBox{
  1693. padding: 20rpx;
  1694. padding-top: 10rpx;
  1695. /* margin-top: 164rpx; */
  1696. /* margin-top: -200rpx; */
  1697. }
  1698. .swiper2{
  1699. height: 200rpx;
  1700. }
  1701. .swiper-item2Img{
  1702. height: 200rpx;
  1703. width: 100%;
  1704. border-radius: 10rpx;
  1705. }
  1706. /* .swiper-item2{
  1707. height: 200rpx;
  1708. } */
  1709. .advertisement{
  1710. background: #FFFFFF;
  1711. margin-top: 20rpx;
  1712. border-radius: 16rpx;
  1713. /* height: 200rpx; */
  1714. /* padding: 12rpx 15rpx; */
  1715. }
  1716. .activeGoodsIcon{
  1717. width: 51rpx;height: 16rpx;
  1718. margin: 0 auto;
  1719. margin-top: 8rpx;
  1720. margin-bottom: 26rpx;
  1721. display: block;
  1722. }
  1723. .goodsTabBox{
  1724. display: flex;
  1725. white-space: nowrap;
  1726. height: 80rpx;
  1727. }
  1728. .goodsTab{
  1729. text-align: center;
  1730. font-weight: 600;
  1731. font-size: 30rpx;
  1732. color: #8B8B8B;
  1733. padding-right: 50rpx;
  1734. }
  1735. .goodsBox{
  1736. margin-top: 30rpx;
  1737. }
  1738. .goodsACt{
  1739. font-weight: 600;
  1740. font-size: 30rpx;
  1741. color: #222222;
  1742. }
  1743. .goodsLine{
  1744. background: #FFFFFF;border-radius: 16rpx;
  1745. padding: 24rpx;margin-bottom: 20rpx;
  1746. }
  1747. .goodsIcon{
  1748. width: 230rpx;border-radius: 12rpx;
  1749. height: 230rpx;display: block;
  1750. }
  1751. .goodsLine{
  1752. display: flex;
  1753. }
  1754. .byBox{
  1755. min-height: 600rpx;
  1756. }
  1757. .qiehuanBox{
  1758. min-height: 600rpx;
  1759. }
  1760. .byBox .bygoodsNameBox{
  1761. text-overflow: -o-ellipsis-lastline;
  1762. overflow: hidden;
  1763. text-overflow: ellipsis;
  1764. display: -webkit-box;
  1765. -webkit-line-clamp: 2;
  1766. line-clamp: 2;
  1767. -webkit-box-orient: vertical;
  1768. }
  1769. .bygoodsName{
  1770. font-weight: 600;
  1771. font-size: 28rpx;
  1772. color: #222222;
  1773. line-height: 40rpx;
  1774. }
  1775. .goodsRight{
  1776. padding-left: 24rpx;
  1777. width: 438rpx;
  1778. display: flex;
  1779. flex-direction: column;
  1780. justify-content: space-between;
  1781. }
  1782. .goodsRb{
  1783. padding-top: 16rpx;
  1784. }
  1785. .goodsMs{
  1786. font-weight: 500;padding-top: 5rpx;
  1787. font-size: 20rpx;
  1788. color: #5B5B5B;
  1789. line-height: 28rpx;
  1790. white-space: nowrap; /* 确保文本在一行内显示 */
  1791. overflow: hidden; /* 超出容器部分隐藏 */
  1792. text-overflow: ellipsis;
  1793. width: 410rpx;
  1794. }
  1795. .goodsCBox{
  1796. display: flex;justify-content: space-between;
  1797. }
  1798. .goodsTitle{
  1799. height: 30rpx;line-height: 32rpx;font-size: 20rpx;
  1800. color: #EC0F0A;padding: 0 10rpx;
  1801. background: #fbf1f0;border-radius: 6rpx;
  1802. }
  1803. .goodsCRight{
  1804. width: 142rpx;
  1805. height: 58rpx;
  1806. background: #EC0F0A;
  1807. border-radius: 29rpx;
  1808. line-height: 58rpx;
  1809. text-align: center;
  1810. font-size: 24rpx;
  1811. color: #FFFFFF;
  1812. margin-top: 12rpx;
  1813. }
  1814. .goodsPriceBox{
  1815. /* padding-bottom: 10rpx; */
  1816. font-size: 22rpx;
  1817. color: #8B8B8B;
  1818. }
  1819. .goodsPrice1{
  1820. font-weight: 500;
  1821. font-size: 20rpx;
  1822. color: #EC0F0A;
  1823. }
  1824. .goodsPrice2{
  1825. font-weight: 500;
  1826. font-size: 34rpx;
  1827. color: #EC0F0A;
  1828. }
  1829. .goodsKbox{
  1830. display: flex;flex-wrap: wrap;
  1831. }
  1832. .goosK1 {
  1833. height: 25rpx;line-height: 27rpx;padding: 0 8rpx;
  1834. border: 1rpx solid #EC0F0A;font-size: 18rpx;
  1835. color: #EC0F0A;margin-right: 10rpx; border-radius: 6rpx;
  1836. margin-top: 10rpx;
  1837. }
  1838. .goosK2{
  1839. height: 25rpx;line-height: 27rpx;padding: 0 8rpx;color: #34B084;
  1840. border: 1rpx solid #34B084;font-size: 18rpx;border-radius: 6rpx;
  1841. margin-right: 10rpx;margin-top: 10rpx;
  1842. }
  1843. .carAddImage{
  1844. width: 91rpx;height: 123rpx;
  1845. }
  1846. .nocarBox{
  1847. background: #FFFFFF;
  1848. border-radius: 17rpx;
  1849. padding: 12rpx 20rpx;
  1850. display: flex;
  1851. margin-top: 20rpx;
  1852. justify-content: space-between;
  1853. }
  1854. .addCarMs{
  1855. padding-left: 26rpx;padding-top: 32rpx;
  1856. }
  1857. .addCarMs1{
  1858. font-weight: 500;
  1859. font-size: 30rpx;
  1860. color: #222222;
  1861. }
  1862. .addCarMs1{
  1863. font-weight: 500;
  1864. font-size: 30rpx;
  1865. color: #222222;
  1866. }
  1867. .addCarMs2{
  1868. font-weight: 400;
  1869. font-size: 24rpx;
  1870. color: #999999;
  1871. }
  1872. .addCarBtn{
  1873. width: 183rpx;
  1874. height: 53rpx;
  1875. background: #222222;
  1876. border-radius: 27rpx;
  1877. font-weight: 600;
  1878. font-size: 28rpx;
  1879. color: #FCD903;
  1880. text-align: center;
  1881. line-height: 53rpx;
  1882. margin-top: 40rpx;
  1883. }
  1884. .authorizBox{
  1885. width: 100vw;
  1886. height: 100vh;
  1887. background: rgba(0, 0, 0, 0.5);
  1888. position: fixed;
  1889. top: 0;
  1890. left: 0;
  1891. }
  1892. .authorizCont{
  1893. margin-top: 30vh;
  1894. width: 564rpx;
  1895. height: 408rpx;
  1896. background: #FFFFFF;
  1897. border-radius: 24rpx;
  1898. margin-left: 93rpx;
  1899. position: relative;
  1900. }
  1901. .authorizCloseImg{
  1902. width: 62rpx;
  1903. height: 62rpx;
  1904. }
  1905. .sqLogoBox{
  1906. width: 180rpx;
  1907. height: 180rpx;
  1908. background: #FFFFFF;
  1909. border-radius: 90rpx;
  1910. text-align: center;
  1911. position: absolute;
  1912. top: -50rpx;
  1913. left: 192rpx;
  1914. }
  1915. .authorizName{
  1916. color: #333333;
  1917. line-height: 42rpx;
  1918. font-size: 30rpx;
  1919. text-align: center;
  1920. padding-top: 58rpx;
  1921. }
  1922. .authorizMs{
  1923. color: #999999;
  1924. line-height: 36rpx;
  1925. font-size: 26rpx;
  1926. width: 452rpx;
  1927. padding-top: 24rpx;
  1928. text-align: center;
  1929. margin-left: 56rpx;
  1930. }
  1931. .authorizContbutton{
  1932. width: 210rpx;
  1933. height: 66rpx;
  1934. background: #EC0F0A;
  1935. border-radius: 44rpx;
  1936. line-height: 66rpx;
  1937. text-align: center;
  1938. font-size:30rpx;
  1939. color: #FFFFFF;
  1940. }
  1941. .sqRefuse{
  1942. width: 210rpx;
  1943. height: 66rpx;
  1944. border: 1px solid #eaeaea;
  1945. line-height: 66rpx;
  1946. border-radius: 36rpx;
  1947. text-align: center;
  1948. font-size:30rpx;
  1949. margin-left:40rpx;
  1950. color: #999999;
  1951. }
  1952. .sqLine{
  1953. margin-top: 62rpx;
  1954. display: flex;
  1955. justify-content: space-between;
  1956. }
  1957. .qrBox{
  1958. position: fixed;
  1959. width: 100vw;
  1960. height: 100vh;
  1961. background: rgba(0,0,0,0.5);
  1962. left: 0;
  1963. top: 0;
  1964. z-index: 11;
  1965. display: flex;
  1966. justify-content: center;
  1967. align-items: center;
  1968. flex-direction: column;
  1969. }
  1970. .qrimgBox{
  1971. width: 562rpx;
  1972. height: 704rpx;
  1973. background: #FFFFFF;
  1974. border-radius: 24rpx;
  1975. }
  1976. .qrTitle{
  1977. font-size: 30rpx;
  1978. font-family: PingFangSC-Medium, PingFang SC;
  1979. font-weight: 500;
  1980. color: #333333;
  1981. border-bottom: 1px solid #EEEEEE;
  1982. text-align: center;
  1983. line-height: 90rpx;
  1984. position: relative;
  1985. }
  1986. .qrimgchahao{
  1987. width: 38rpx;
  1988. height: 38rpx;
  1989. position: absolute;
  1990. top: 26rpx;
  1991. right: 20rpx;
  1992. }
  1993. .qrms{
  1994. font-weight: 400;
  1995. color: #999999;
  1996. line-height: 37rpx;
  1997. font-size: 26rpx;
  1998. padding-top: 23rpx;
  1999. text-align: center;
  2000. }
  2001. .qrms2{
  2002. font-weight: 400;
  2003. color: #999999;
  2004. line-height: 37rpx;
  2005. font-size: 26rpx;
  2006. text-align: center;
  2007. }
  2008. .qrimg{
  2009. width: 328rpx;
  2010. height: 328rpx;
  2011. }
  2012. .qrBtn{
  2013. width: 292rpx;
  2014. height: 64rpx;
  2015. background: #EC0F0A;
  2016. border-radius: 32rpx;
  2017. color: #FFFFFF;
  2018. line-height: 64rpx;
  2019. text-align: center;
  2020. margin: 0 auto;
  2021. margin-top:40rpx;
  2022. }
  2023. .adviser{
  2024. background: #FFFFFF;
  2025. border-radius: 10px;
  2026. display: flex;
  2027. justify-content: space-between;
  2028. padding: 18rpx 20rpx;
  2029. margin-bottom: 20rpx;
  2030. }
  2031. .adviserLeft{
  2032. display: flex;
  2033. }
  2034. .advisertx{
  2035. width: 62rpx;height: 62rpx;
  2036. }
  2037. .adviserNema{
  2038. color: #333333;font-size: 30rpx;
  2039. line-height: 62rpx;padding-left: 24rpx;
  2040. }
  2041. .adviserms{
  2042. width: 118rpx;
  2043. height: 36rpx;
  2044. border-radius: 4rpx;
  2045. border: 1px solid #EC0F0A;
  2046. line-height: 36rpx;
  2047. text-align: center;
  2048. margin-top: 12rpx;
  2049. margin-left: 20rpx;
  2050. color: #EC0F0A;
  2051. font-size: 24rpx;
  2052. }
  2053. .adviserJt{
  2054. width: 12rpx;
  2055. height: 20rpx;
  2056. margin-top: 20rpx;
  2057. }
  2058. .bxBox{
  2059. display: flex;
  2060. flex-wrap: wrap;
  2061. }
  2062. .bxline{
  2063. display: flex;
  2064. padding-bottom: 20rpx;
  2065. }
  2066. .bxline1{
  2067. width: 40%;
  2068. }
  2069. .bxline2{
  2070. width: 60%;height: 40rpx;
  2071. }
  2072. .bxlineTitle{
  2073. color: #333333;
  2074. font-size: 26rpx;
  2075. line-height: 37rpx;
  2076. padding-left: 10rpx;
  2077. }
  2078. .bxlineMs1{
  2079. line-height: 37rpx;
  2080. color: #A26D4F;
  2081. font-size: 26rpx;
  2082. padding-left: 10rpx;
  2083. }
  2084. .bxlineMs2{
  2085. line-height: 40rpx;
  2086. color: #999999;
  2087. font-size: 24rpx;
  2088. padding-left: 10rpx;
  2089. }
  2090. .bxlineIcon{
  2091. width: 34rpx;
  2092. height: 34rpx;
  2093. /* margin-left: 24rpx; */
  2094. }
  2095. .carTimeBox{
  2096. /* border-top: 1px solid #EEEEEE; */
  2097. /* padding-bottom: 15rpx; */
  2098. }
  2099. .plateNumberSpan1{
  2100. background: #0041FF;
  2101. border-radius: 4rpx 0rpx 0rpx 4rpx;
  2102. color: #FFFFFF;
  2103. border: 1px solid #0041FF;
  2104. padding: 0 6rpx;
  2105. }
  2106. .plateNumberSpan2{
  2107. color: #0B0B0B;
  2108. border: 1px solid #0041FF;
  2109. padding: 0 6rpx;
  2110. border-radius: 0rpx 4rpx 4rpx 0rpx;
  2111. }
  2112. .swiperTk{
  2113. height: 52vh;
  2114. width: 100vw;
  2115. }
  2116. .swiper-itemTk{
  2117. display: flex;
  2118. justify-content: center;
  2119. flex-direction: column;
  2120. align-items: center;
  2121. height: 50vh;
  2122. padding-bottom: 50rpx;
  2123. }
  2124. .tkHdImg{
  2125. width: 80vw;margin-bottom: 10px;
  2126. }
  2127. .swiper-itemTk{
  2128. text-align: center;
  2129. }
  2130. .closeTk{
  2131. width: 60rpx;height: 60rpx;
  2132. }
  2133. .hotGoodsLine{
  2134. /* margin-top: 30rpx; */
  2135. padding: 20rpx;
  2136. background: #FFFFFF;
  2137. border-radius: 16rpx;
  2138. display: flex;
  2139. }
  2140. .hotGoodsLineImg{
  2141. width: 208rpx;
  2142. height: 194rpx;
  2143. border-radius: 16rpx;
  2144. border: 1px solid #EEEEEE;
  2145. display: block;
  2146. }
  2147. .goodsName{
  2148. font-size: 28rpx;
  2149. font-family: PingFangSC-Regular, PingFang SC;
  2150. font-weight: 400;
  2151. color: #333333;
  2152. line-height: 40rpx;
  2153. text-overflow: -o-ellipsis-lastline;
  2154. overflow: hidden;
  2155. text-overflow: ellipsis;
  2156. display: -webkit-box;
  2157. -webkit-line-clamp: 2;
  2158. line-clamp: 2;
  2159. -webkit-box-orient: vertical;
  2160. }
  2161. .hotGoodsLineRIght{
  2162. padding-left: 24rpx;
  2163. }
  2164. .goodsPrice{
  2165. display: flex;
  2166. padding-top: 10rpx;
  2167. }
  2168. .goodsPrice1{
  2169. font-size: 24rpx;
  2170. font-weight: 400;
  2171. color: #EC0F0A;
  2172. padding-top: 8rpx;
  2173. }
  2174. .goodsPrice2{
  2175. font-size: 22rpx;
  2176. font-weight: 400;
  2177. color: #EC0F0A;
  2178. padding-top: 10rpx;
  2179. }
  2180. .goodsPrice3{
  2181. font-size: 32rpx;
  2182. font-weight: 500;
  2183. color: #EC0F0A;
  2184. }
  2185. .goodsPrice11{
  2186. font-size: 20rpx;
  2187. color: #EC0F0A;
  2188. padding-top: 8rpx;
  2189. }
  2190. .goodsPrice22{
  2191. font-size: 34rpx;
  2192. font-weight: 500;
  2193. color: #EC0F0A;
  2194. padding-top: 10rpx;
  2195. }
  2196. .goodsPrice33{
  2197. font-size: 22rpx;
  2198. color: #8B8B8B;
  2199. }
  2200. .goodsPrice4{
  2201. font-size: 24rpx;
  2202. font-weight: 400;
  2203. color: #999999;
  2204. padding-top: 8rpx;
  2205. padding-left: 10rpx;
  2206. text-decoration:line-through;
  2207. }
  2208. .Sold{
  2209. font-weight: 400;
  2210. color: #999999;
  2211. font-size: 24rpx;
  2212. padding-top: 8rpx;
  2213. }
  2214. .jkStateImg{
  2215. width: 102rpx;
  2216. height: 53rpx;
  2217. position: relative;
  2218. }
  2219. .hotLineTopImg{
  2220. width: 702rpx;
  2221. height: 280rpx;
  2222. display: block;
  2223. }
  2224. .hotLineTop{
  2225. position: relative;
  2226. height: 280rpx;
  2227. }
  2228. .hotLine{
  2229. margin-bottom: 20rpx;
  2230. border-radius: 10rpx;
  2231. background: #FFFFFF;
  2232. overflow: hidden;
  2233. position: relative;
  2234. }
  2235. .groupType{
  2236. width: 76rpx;color: #FFFFFF;
  2237. height: 36rpx;line-height: 36rpx;text-align: center;
  2238. background: linear-gradient(109deg, #FD5A04 0%, #FD0900 100%);
  2239. border-radius: 0rpx 10rpx 0rpx 10rpx;
  2240. position: absolute;font-weight: 500;
  2241. top: 0;right: 0;font-size: 24rpx;
  2242. }
  2243. .hotlinestate1{
  2244. width: 102rpx;
  2245. height: 44rpx;
  2246. background:#FBBF00 ;
  2247. line-height: 44rpx;
  2248. font-weight: 500;
  2249. color: #333333;
  2250. font-size: 24rpx;
  2251. text-align: center;
  2252. }
  2253. .hotlinestate2{
  2254. width: 102rpx;
  2255. height: 44rpx;
  2256. background:#EC0F0A ;
  2257. line-height: 44rpx;
  2258. font-weight: 500;
  2259. color: #FFFFFF;
  2260. font-size: 24rpx;
  2261. text-align: center;
  2262. }
  2263. .hotlineTimebox{
  2264. position: absolute;
  2265. left: 0;
  2266. bottom: 0;
  2267. display: flex;
  2268. align-items: flex-end;
  2269. }
  2270. .hotTime{
  2271. background: rgba(0, 0, 0, 0.5);
  2272. font-weight: 400;
  2273. color: #FFFFFF;
  2274. font-size: 24rpx;
  2275. /* line-height: 44rpx; */
  2276. padding: 5rpx 20rpx;
  2277. margin-top: 9rpx;
  2278. margin-left: -8rpx;
  2279. border-radius: 0px 10rpx 0px 0px;
  2280. }
  2281. .hotName{
  2282. padding: 24rpx 20rpx;
  2283. color: #333333;
  2284. line-height: 40rpx;
  2285. font-size: 28rpx;
  2286. }
  2287. .isRecommend{
  2288. font-size: 20rpx;
  2289. background: #57C73D;
  2290. height: 30rpx;
  2291. padding: 0 6rpx;
  2292. border-radius: 6rpx;
  2293. color: #fff;
  2294. margin-top: 5rpx;
  2295. /* margin-right: 10rpx; */
  2296. }
  2297. .goodsLeft{
  2298. position: relative;
  2299. }
  2300. .byTj{
  2301. width: 70rpx;height: 70rpx;top: 0;left: 0;
  2302. position: absolute;
  2303. }
  2304. .goodsTwo{
  2305. display: flex;
  2306. justify-content: space-between;
  2307. flex-wrap: wrap;
  2308. }
  2309. .goodsTwoLine{
  2310. background: #FFFFFF;width: 341rpx;
  2311. margin-bottom: 20rpx;
  2312. padding-bottom: 20rpx;
  2313. border-radius: 16rpx;
  2314. overflow: hidden;
  2315. }
  2316. .goodsTwoImg .hotGoodsLineImg{
  2317. margin: 0 auto;
  2318. width: 100%;
  2319. height: 340rpx;
  2320. border-radius: 0;
  2321. border: none;
  2322. }
  2323. .goodsTwoLine .Sold{
  2324. padding-left: 20rpx;
  2325. }
  2326. .goodsTwoLine .goodsPrice{
  2327. padding-left: 20rpx;
  2328. }
  2329. .goodsTwoImg{
  2330. padding-bottom: 30rpx;
  2331. }
  2332. .goodsTwoName{
  2333. font-weight: 400;
  2334. color: #333333;
  2335. font-size: 26rpx;
  2336. line-height: 38rpx;
  2337. padding: 0 20rpx;
  2338. text-overflow: -o-ellipsis-lastline;
  2339. overflow: hidden;
  2340. text-overflow: ellipsis;
  2341. display: -webkit-box;
  2342. -webkit-line-clamp: 2;
  2343. line-clamp: 2;
  2344. -webkit-box-orient: vertical;
  2345. }
  2346. </style>