index.vue 65 KB

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