index.vue 65 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452
  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 style="display: flex;">
  215. <view class="isRecommend" v-if="item.isRecommend==1">适配</view>
  216. <view class="goodsName">{{item.title}}</view>
  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 .goodsName{
  1740. font-weight: 600;
  1741. font-size: 28rpx;
  1742. color: #222222;
  1743. line-height: 40rpx;
  1744. }
  1745. .goodsRight{
  1746. padding-left: 24rpx;
  1747. width: 438rpx;
  1748. display: flex;
  1749. flex-direction: column;
  1750. justify-content: space-between;
  1751. }
  1752. .goodsRb{
  1753. padding-top: 16rpx;
  1754. }
  1755. .goodsMs{
  1756. font-weight: 500;padding-top: 5rpx;
  1757. font-size: 20rpx;
  1758. color: #5B5B5B;
  1759. line-height: 28rpx;
  1760. white-space: nowrap; /* 确保文本在一行内显示 */
  1761. overflow: hidden; /* 超出容器部分隐藏 */
  1762. text-overflow: ellipsis;
  1763. width: 410rpx;
  1764. }
  1765. .goodsCBox{
  1766. display: flex;justify-content: space-between;
  1767. }
  1768. .goodsTitle{
  1769. height: 30rpx;line-height: 32rpx;font-size: 20rpx;
  1770. color: #EC0F0A;padding: 0 10rpx;
  1771. background: #fbf1f0;border-radius: 6rpx;
  1772. }
  1773. .goodsCRight{
  1774. width: 142rpx;
  1775. height: 58rpx;
  1776. background: #EC0F0A;
  1777. border-radius: 29rpx;
  1778. line-height: 58rpx;
  1779. text-align: center;
  1780. font-size: 24rpx;
  1781. color: #FFFFFF;
  1782. margin-top: 12rpx;
  1783. }
  1784. .goodsPriceBox{
  1785. /* padding-bottom: 10rpx; */
  1786. font-size: 22rpx;
  1787. color: #8B8B8B;
  1788. }
  1789. .goodsPrice1{
  1790. font-weight: 500;
  1791. font-size: 20rpx;
  1792. color: #EC0F0A;
  1793. }
  1794. .goodsPrice2{
  1795. font-weight: 500;
  1796. font-size: 34rpx;
  1797. color: #EC0F0A;
  1798. }
  1799. .goodsKbox{
  1800. display: flex;flex-wrap: wrap;
  1801. }
  1802. .goosK1 {
  1803. height: 25rpx;line-height: 27rpx;padding: 0 8rpx;
  1804. border: 1rpx solid #EC0F0A;font-size: 18rpx;
  1805. color: #EC0F0A;margin-right: 10rpx; border-radius: 6rpx;
  1806. margin-top: 10rpx;
  1807. }
  1808. .goosK2{
  1809. height: 25rpx;line-height: 27rpx;padding: 0 8rpx;color: #34B084;
  1810. border: 1rpx solid #34B084;font-size: 18rpx;border-radius: 6rpx;
  1811. margin-right: 10rpx;margin-top: 10rpx;
  1812. }
  1813. .carAddImage{
  1814. width: 91rpx;height: 123rpx;
  1815. }
  1816. .nocarBox{
  1817. background: #FFFFFF;
  1818. border-radius: 17rpx;
  1819. padding: 12rpx 20rpx;
  1820. display: flex;
  1821. margin-top: 20rpx;
  1822. justify-content: space-between;
  1823. }
  1824. .addCarMs{
  1825. padding-left: 26rpx;padding-top: 32rpx;
  1826. }
  1827. .addCarMs1{
  1828. font-weight: 500;
  1829. font-size: 30rpx;
  1830. color: #222222;
  1831. }
  1832. .addCarMs1{
  1833. font-weight: 500;
  1834. font-size: 30rpx;
  1835. color: #222222;
  1836. }
  1837. .addCarMs2{
  1838. font-weight: 400;
  1839. font-size: 24rpx;
  1840. color: #999999;
  1841. }
  1842. .addCarBtn{
  1843. width: 183rpx;
  1844. height: 53rpx;
  1845. background: #222222;
  1846. border-radius: 27rpx;
  1847. font-weight: 600;
  1848. font-size: 28rpx;
  1849. color: #FCD903;
  1850. text-align: center;
  1851. line-height: 53rpx;
  1852. margin-top: 40rpx;
  1853. }
  1854. .authorizBox{
  1855. width: 100vw;
  1856. height: 100vh;
  1857. background: rgba(0, 0, 0, 0.5);
  1858. position: fixed;
  1859. top: 0;
  1860. left: 0;
  1861. }
  1862. .authorizCont{
  1863. margin-top: 30vh;
  1864. width: 564rpx;
  1865. height: 408rpx;
  1866. background: #FFFFFF;
  1867. border-radius: 24rpx;
  1868. margin-left: 93rpx;
  1869. position: relative;
  1870. }
  1871. .authorizCloseImg{
  1872. width: 62rpx;
  1873. height: 62rpx;
  1874. }
  1875. .sqLogoBox{
  1876. width: 180rpx;
  1877. height: 180rpx;
  1878. background: #FFFFFF;
  1879. border-radius: 90rpx;
  1880. text-align: center;
  1881. position: absolute;
  1882. top: -50rpx;
  1883. left: 192rpx;
  1884. }
  1885. .authorizName{
  1886. color: #333333;
  1887. line-height: 42rpx;
  1888. font-size: 30rpx;
  1889. text-align: center;
  1890. padding-top: 58rpx;
  1891. }
  1892. .authorizMs{
  1893. color: #999999;
  1894. line-height: 36rpx;
  1895. font-size: 26rpx;
  1896. width: 452rpx;
  1897. padding-top: 24rpx;
  1898. text-align: center;
  1899. margin-left: 56rpx;
  1900. }
  1901. .authorizContbutton{
  1902. width: 210rpx;
  1903. height: 66rpx;
  1904. background: #EC0F0A;
  1905. border-radius: 44rpx;
  1906. line-height: 66rpx;
  1907. text-align: center;
  1908. font-size:30rpx;
  1909. color: #FFFFFF;
  1910. }
  1911. .sqRefuse{
  1912. width: 210rpx;
  1913. height: 66rpx;
  1914. border: 1px solid #eaeaea;
  1915. line-height: 66rpx;
  1916. border-radius: 36rpx;
  1917. text-align: center;
  1918. font-size:30rpx;
  1919. margin-left:40rpx;
  1920. color: #999999;
  1921. }
  1922. .sqLine{
  1923. margin-top: 62rpx;
  1924. display: flex;
  1925. justify-content: space-between;
  1926. }
  1927. .qrBox{
  1928. position: fixed;
  1929. width: 100vw;
  1930. height: 100vh;
  1931. background: rgba(0,0,0,0.5);
  1932. left: 0;
  1933. top: 0;
  1934. z-index: 11;
  1935. display: flex;
  1936. justify-content: center;
  1937. align-items: center;
  1938. flex-direction: column;
  1939. }
  1940. .qrimgBox{
  1941. width: 562rpx;
  1942. height: 704rpx;
  1943. background: #FFFFFF;
  1944. border-radius: 24rpx;
  1945. }
  1946. .qrTitle{
  1947. font-size: 30rpx;
  1948. font-family: PingFangSC-Medium, PingFang SC;
  1949. font-weight: 500;
  1950. color: #333333;
  1951. border-bottom: 1px solid #EEEEEE;
  1952. text-align: center;
  1953. line-height: 90rpx;
  1954. position: relative;
  1955. }
  1956. .qrimgchahao{
  1957. width: 38rpx;
  1958. height: 38rpx;
  1959. position: absolute;
  1960. top: 26rpx;
  1961. right: 20rpx;
  1962. }
  1963. .qrms{
  1964. font-weight: 400;
  1965. color: #999999;
  1966. line-height: 37rpx;
  1967. font-size: 26rpx;
  1968. padding-top: 23rpx;
  1969. text-align: center;
  1970. }
  1971. .qrms2{
  1972. font-weight: 400;
  1973. color: #999999;
  1974. line-height: 37rpx;
  1975. font-size: 26rpx;
  1976. text-align: center;
  1977. }
  1978. .qrimg{
  1979. width: 328rpx;
  1980. height: 328rpx;
  1981. }
  1982. .qrBtn{
  1983. width: 292rpx;
  1984. height: 64rpx;
  1985. background: #EC0F0A;
  1986. border-radius: 32rpx;
  1987. color: #FFFFFF;
  1988. line-height: 64rpx;
  1989. text-align: center;
  1990. margin: 0 auto;
  1991. margin-top:40rpx;
  1992. }
  1993. .adviser{
  1994. background: #FFFFFF;
  1995. border-radius: 10px;
  1996. display: flex;
  1997. justify-content: space-between;
  1998. padding: 18rpx 20rpx;
  1999. margin-bottom: 20rpx;
  2000. }
  2001. .adviserLeft{
  2002. display: flex;
  2003. }
  2004. .advisertx{
  2005. width: 62rpx;height: 62rpx;
  2006. }
  2007. .adviserNema{
  2008. color: #333333;font-size: 30rpx;
  2009. line-height: 62rpx;padding-left: 24rpx;
  2010. }
  2011. .adviserms{
  2012. width: 118rpx;
  2013. height: 36rpx;
  2014. border-radius: 4rpx;
  2015. border: 1px solid #EC0F0A;
  2016. line-height: 36rpx;
  2017. text-align: center;
  2018. margin-top: 12rpx;
  2019. margin-left: 20rpx;
  2020. color: #EC0F0A;
  2021. font-size: 24rpx;
  2022. }
  2023. .adviserJt{
  2024. width: 12rpx;
  2025. height: 20rpx;
  2026. margin-top: 20rpx;
  2027. }
  2028. .bxBox{
  2029. display: flex;
  2030. flex-wrap: wrap;
  2031. }
  2032. .bxline{
  2033. display: flex;
  2034. padding-bottom: 20rpx;
  2035. }
  2036. .bxline1{
  2037. width: 40%;
  2038. }
  2039. .bxline2{
  2040. width: 60%;height: 40rpx;
  2041. }
  2042. .bxlineTitle{
  2043. color: #333333;
  2044. font-size: 26rpx;
  2045. line-height: 37rpx;
  2046. padding-left: 10rpx;
  2047. }
  2048. .bxlineMs1{
  2049. line-height: 37rpx;
  2050. color: #A26D4F;
  2051. font-size: 26rpx;
  2052. padding-left: 10rpx;
  2053. }
  2054. .bxlineMs2{
  2055. line-height: 40rpx;
  2056. color: #999999;
  2057. font-size: 24rpx;
  2058. padding-left: 10rpx;
  2059. }
  2060. .bxlineIcon{
  2061. width: 34rpx;
  2062. height: 34rpx;
  2063. /* margin-left: 24rpx; */
  2064. }
  2065. .carTimeBox{
  2066. /* border-top: 1px solid #EEEEEE; */
  2067. /* padding-bottom: 15rpx; */
  2068. }
  2069. .plateNumberSpan1{
  2070. background: #0041FF;
  2071. border-radius: 4rpx 0rpx 0rpx 4rpx;
  2072. color: #FFFFFF;
  2073. border: 1px solid #0041FF;
  2074. padding: 0 6rpx;
  2075. }
  2076. .plateNumberSpan2{
  2077. color: #0B0B0B;
  2078. border: 1px solid #0041FF;
  2079. padding: 0 6rpx;
  2080. border-radius: 0rpx 4rpx 4rpx 0rpx;
  2081. }
  2082. .swiperTk{
  2083. height: 52vh;
  2084. width: 100vw;
  2085. }
  2086. .swiper-itemTk{
  2087. display: flex;
  2088. justify-content: center;
  2089. flex-direction: column;
  2090. align-items: center;
  2091. height: 50vh;
  2092. padding-bottom: 50rpx;
  2093. }
  2094. .tkHdImg{
  2095. width: 80vw;margin-bottom: 10px;
  2096. }
  2097. .swiper-itemTk{
  2098. text-align: center;
  2099. }
  2100. .closeTk{
  2101. width: 60rpx;height: 60rpx;
  2102. }
  2103. .hotGoodsLine{
  2104. /* margin-top: 30rpx; */
  2105. padding: 20rpx;
  2106. background: #FFFFFF;
  2107. border-radius: 16rpx;
  2108. display: flex;
  2109. }
  2110. .hotGoodsLineImg{
  2111. width: 208rpx;
  2112. height: 194rpx;
  2113. border-radius: 16rpx;
  2114. border: 1px solid #EEEEEE;
  2115. display: block;
  2116. }
  2117. .goodsName{
  2118. font-size: 28rpx;
  2119. font-family: PingFangSC-Regular, PingFang SC;
  2120. font-weight: 400;
  2121. color: #333333;
  2122. line-height: 40rpx;
  2123. text-overflow: -o-ellipsis-lastline;
  2124. overflow: hidden;
  2125. text-overflow: ellipsis;
  2126. display: -webkit-box;
  2127. -webkit-line-clamp: 2;
  2128. line-clamp: 2;
  2129. -webkit-box-orient: vertical;
  2130. }
  2131. .hotGoodsLineRIght{
  2132. padding-left: 24rpx;
  2133. }
  2134. .goodsPrice{
  2135. display: flex;
  2136. padding-top: 10rpx;
  2137. }
  2138. .goodsPrice1{
  2139. font-size: 24rpx;
  2140. font-weight: 400;
  2141. color: #EC0F0A;
  2142. padding-top: 8rpx;
  2143. }
  2144. .goodsPrice2{
  2145. font-size: 22rpx;
  2146. font-weight: 400;
  2147. color: #EC0F0A;
  2148. padding-top: 10rpx;
  2149. }
  2150. .goodsPrice3{
  2151. font-size: 32rpx;
  2152. font-weight: 500;
  2153. color: #EC0F0A;
  2154. }
  2155. .goodsPrice11{
  2156. font-size: 20rpx;
  2157. color: #EC0F0A;
  2158. padding-top: 8rpx;
  2159. }
  2160. .goodsPrice22{
  2161. font-size: 34rpx;
  2162. font-weight: 500;
  2163. color: #EC0F0A;
  2164. padding-top: 10rpx;
  2165. }
  2166. .goodsPrice33{
  2167. font-size: 22rpx;
  2168. color: #8B8B8B;
  2169. }
  2170. .goodsPrice4{
  2171. font-size: 24rpx;
  2172. font-weight: 400;
  2173. color: #999999;
  2174. padding-top: 8rpx;
  2175. padding-left: 10rpx;
  2176. text-decoration:line-through;
  2177. }
  2178. .Sold{
  2179. font-weight: 400;
  2180. color: #999999;
  2181. font-size: 24rpx;
  2182. padding-top: 8rpx;
  2183. }
  2184. .jkStateImg{
  2185. width: 102rpx;
  2186. height: 53rpx;
  2187. position: relative;
  2188. }
  2189. .hotLineTopImg{
  2190. width: 702rpx;
  2191. height: 280rpx;
  2192. display: block;
  2193. }
  2194. .hotLineTop{
  2195. position: relative;
  2196. height: 280rpx;
  2197. }
  2198. .hotLine{
  2199. margin-bottom: 20rpx;
  2200. border-radius: 10rpx;
  2201. background: #FFFFFF;
  2202. overflow: hidden;
  2203. position: relative;
  2204. }
  2205. .groupType{
  2206. width: 76rpx;color: #FFFFFF;
  2207. height: 36rpx;line-height: 36rpx;text-align: center;
  2208. background: linear-gradient(109deg, #FD5A04 0%, #FD0900 100%);
  2209. border-radius: 0rpx 10rpx 0rpx 10rpx;
  2210. position: absolute;font-weight: 500;
  2211. top: 0;right: 0;font-size: 24rpx;
  2212. }
  2213. .hotlinestate1{
  2214. width: 102rpx;
  2215. height: 44rpx;
  2216. background:#FBBF00 ;
  2217. line-height: 44rpx;
  2218. font-weight: 500;
  2219. color: #333333;
  2220. font-size: 24rpx;
  2221. text-align: center;
  2222. }
  2223. .hotlinestate2{
  2224. width: 102rpx;
  2225. height: 44rpx;
  2226. background:#EC0F0A ;
  2227. line-height: 44rpx;
  2228. font-weight: 500;
  2229. color: #FFFFFF;
  2230. font-size: 24rpx;
  2231. text-align: center;
  2232. }
  2233. .hotlineTimebox{
  2234. position: absolute;
  2235. left: 0;
  2236. bottom: 0;
  2237. display: flex;
  2238. align-items: flex-end;
  2239. }
  2240. .hotTime{
  2241. background: rgba(0, 0, 0, 0.5);
  2242. font-weight: 400;
  2243. color: #FFFFFF;
  2244. font-size: 24rpx;
  2245. /* line-height: 44rpx; */
  2246. padding: 5rpx 20rpx;
  2247. margin-top: 9rpx;
  2248. margin-left: -8rpx;
  2249. border-radius: 0px 10rpx 0px 0px;
  2250. }
  2251. .hotName{
  2252. padding: 24rpx 20rpx;
  2253. color: #333333;
  2254. line-height: 40rpx;
  2255. font-size: 28rpx;
  2256. }
  2257. .isRecommend{
  2258. font-size: 20rpx;
  2259. background: #57C73D;
  2260. height: 30rpx;
  2261. padding: 0 6rpx;
  2262. border-radius: 6rpx;
  2263. color: #fff;
  2264. margin-top: 5rpx;
  2265. margin-right: 10rpx;
  2266. }
  2267. .goodsLeft{
  2268. position: relative;
  2269. }
  2270. .byTj{
  2271. width: 70rpx;height: 70rpx;top: 0;left: 0;
  2272. position: absolute;
  2273. }
  2274. .goodsTwo{
  2275. display: flex;
  2276. justify-content: space-between;
  2277. flex-wrap: wrap;
  2278. }
  2279. .goodsTwoLine{
  2280. background: #FFFFFF;width: 341rpx;
  2281. margin-bottom: 20rpx;
  2282. padding-bottom: 20rpx;
  2283. border-radius: 16rpx;
  2284. overflow: hidden;
  2285. }
  2286. .goodsTwoImg .hotGoodsLineImg{
  2287. margin: 0 auto;
  2288. width: 100%;
  2289. height: 340rpx;
  2290. border-radius: 0;
  2291. border: none;
  2292. }
  2293. .goodsTwoLine .Sold{
  2294. padding-left: 20rpx;
  2295. }
  2296. .goodsTwoLine .goodsPrice{
  2297. padding-left: 20rpx;
  2298. }
  2299. .goodsTwoImg{
  2300. padding-bottom: 30rpx;
  2301. }
  2302. .goodsTwoName{
  2303. font-weight: 400;
  2304. color: #333333;
  2305. font-size: 26rpx;
  2306. line-height: 38rpx;
  2307. padding: 0 20rpx;
  2308. text-overflow: -o-ellipsis-lastline;
  2309. overflow: hidden;
  2310. text-overflow: ellipsis;
  2311. display: -webkit-box;
  2312. -webkit-line-clamp: 2;
  2313. line-clamp: 2;
  2314. -webkit-box-orient: vertical;
  2315. }
  2316. </style>