index.vue 65 KB

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