index.vue 46 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831
  1. <template>
  2. <view class="content">
  3. <view class="indexTop" :style="{background:'#'+themeColor}" v-if="getwxLoing">
  4. <view class="status_bar" :style="{height: iStatusBarHeight + 'px'}"></view>
  5. <view class="indexnav">{{wxOpenData.unionName}}</view>
  6. </view>
  7. <view class="status_bar" :style="{height: iStatusBarHeight + 'px'}"></view>
  8. <view style="height: 43px;"></view>
  9. <view class="topBox" :style="{background:'#'+themeColor}" v-if="getwxLoing"></view>
  10. <view class="yuanhu" :style="{background:'#'+themeColor}" v-if="getwxLoing"></view>
  11. <view class="shoptopbox2" v-if="!carInfo">
  12. <view class="carinfoBox2">
  13. <view class="carinfoBoxNocar" @click="addCar">
  14. <img src="../../static/timg/addcar.png" alt="" class="carinfonocarIcon">
  15. <view class="carinfoBoxNocarRight">
  16. <view class="carinfoBoxNocarRightTitle">添加我的爱车</view>
  17. <view class="carinfoBoxNocarRightMS">按照车型推荐合适的商品</view>
  18. </view>
  19. </view>
  20. </view>
  21. </view>
  22. <view class="shoptopbox" v-if="carInfo">
  23. <view class="carinfoBox" >
  24. <view class="carinfoBoxTop">
  25. <img :src="carInfo.brandLogo" alt="" class="carLogo" v-if="carInfo.brandLogo">
  26. <img src="../../static/timg/nocar.png" alt="" class="carLogo" v-else>
  27. <view class="carinfoBoxTopCont">
  28. <view class="carinfoBoxTopContTop">
  29. <view class="carInfoplateNumber">{{carInfo.plateNumber}}</view>
  30. <view class="carTnfomilage" v-if="carInfo.milage">{{carInfo.milage}}km</view>
  31. </view>
  32. <view class="carInfocarModel" v-if="carInfo.carModel">{{carInfo.carModel}}</view>
  33. <view class="carInfocarModel" v-else>暂无</view>
  34. </view>
  35. <view class="carinfoBoxTopRight" @click="changeCar">
  36. <img src="../../static/timg/icon_change@2x.png" alt="" class="carinfoBoxTopRightIcon">
  37. <view class="huancheBtn">换车</view>
  38. </view>
  39. </view>
  40. <!-- <view class="carInfoBottom">
  41. <view class="carInfoBottomLine">
  42. <view class="carInfoBottomLineTitle">下次保养里程</view>
  43. <view class="carInfoBottomLineTxt" v-if="carInfo.nextCareMilage">{{carInfo.nextCareMilage}}</view>
  44. <view class="carInfoBottomLineTxt" v-else>暂无</view>
  45. </view>
  46. <view class="carInfoBottomLine">
  47. <view class="carInfoBottomLineTitle">下次保养日期</view>
  48. <view class="carInfoBottomLineTxt" v-if="carInfo.nextCareDate">{{carInfo.nextCareDate.slice(0,10)}}</view>
  49. <view class="carInfoBottomLineTxt" v-else>暂无</view>
  50. </view>
  51. <view class="carInfoBottomLine">
  52. <view class="carInfoBottomLineTitle">保养手册</view>
  53. <view class="carInfoBottomLineTxt" @click="information">点击查看</view>
  54. </view>
  55. </view> -->
  56. <view class="bxBox">
  57. <view class="bxline bxline1">
  58. <img src="../../static/timg/car1.png" alt="" class="bxlineIcon">
  59. <view class="bxlineTitle">保险</view>
  60. <view class="bxlineMs1" v-if="carInfo.insuranceExpireDate">{{InsuranceExpireDate}}天到期</view>
  61. <view class="bxlineMs2" v-else>--</view>
  62. </view>
  63. <view class="bxline bxline2">
  64. <img src="../../static/timg/car2.png" alt="" class="bxlineIcon" >
  65. <view class="bxlineTitle">下次保养</view>
  66. <view class="bxlineMs1" v-if="carInfo.nextCareDate||carInfo.nextCareMilage">
  67. <span v-if="NextCareDate||NextCareDate===0">{{NextCareDate}}天后</span>
  68. <span v-if="NextCareDate===0&&carInfo.nextCareMilage">或</span>
  69. <span v-if="carInfo.nextCareMilage&&NextCareDate">或</span>
  70. <span v-if="carInfo.nextCareMilage">{{carInfo.nextCareMilage}}km</span>
  71. </view>
  72. <view class="bxlineMs2" v-else>--</view>
  73. </view>
  74. <view class="bxline bxline1">
  75. <img src="../../static/timg/car3.png" alt="" class="bxlineIcon" >
  76. <view class="bxlineTitle">年审</view>
  77. <view class="bxlineMs1" v-if="carInfo.nextAuditDate">{{NextAuditDate}}天到期</view>
  78. <view class="bxlineMs2" v-else>--</view>
  79. </view>
  80. <view class="bxline bxline2" v-if="homeCardList.openMCar.showType==1">
  81. <img src="../../static/timg/car4.png" alt="" class="bxlineIcon" >
  82. <view class="bxlineTitle">保养手册</view>
  83. <view class="bxlineMs2" @click="information">点击查看</view>
  84. </view>
  85. </view>
  86. </view>
  87. </view>
  88. <!-- 服务顾问 -->
  89. <view v-if="homeCardList.openMUsers">
  90. <view class="adviser" v-if="homeCardList.openMUsers.showType!=2&&managerInfo" @click="goMUsers()">
  91. <view class="adviserLeft">
  92. <img v-if="managerInfo.avatar" :src="managerInfo.avatar" alt="" class="advisertx">
  93. <img v-else src="../../static/timg/pic_def_ava@2x.png" alt="" class="advisertx">
  94. <view class="adviserNema">{{managerInfo.name}}</view>
  95. <view class="adviserms" :style="{border:'1px solid #'+themeColor,color:'#'+themeColor}">服务顾问</view>
  96. </view>
  97. <img src="../../static/timg/icon_arrow_right.png" alt="" class="adviserJt">
  98. </view>
  99. </view>
  100. <!-- 中间功能应用模块 -->
  101. <view class="modular" v-if="homeCardList.application.length>0">
  102. <view class="swiper-item">
  103. <view class="itemLine" @click="goRoter(item)" v-for="(item,index) in homeCardList.application">
  104. <view><img :src="item.icon" alt="" class="itemImg"></view>
  105. <view class="Menusline">{{item.name}}</view>
  106. </view>
  107. </view>
  108. </view>
  109. <view class="advertisement" v-if="homeCardList.ad1.length>0">
  110. <swiper class="swiper2" circular :autoplay="true" :interval="interval"
  111. :duration="duration" :indicator-dots="true" indicator-color="#CCCCCC" :indicator-active-color="'#'+themeColor">
  112. <swiper-item v-for="(item,index) in homeCardList.ad1">
  113. <view class="swiper-item2" @click="goRoter(item)">
  114. <image class="swiper-item2Img" :src="item.icon" mode=""></image>
  115. </view>
  116. </swiper-item>
  117. </swiper>
  118. </view>
  119. <view class="advertisement" v-if="homeCardList.ad2.length>0">
  120. <swiper class="swiper2" circular :autoplay="true" :interval="interval"
  121. :duration="duration" :indicator-dots="true" indicator-color="#CCCCCC" :indicator-active-color="'#'+themeColor">
  122. <swiper-item v-for="(item,index) in homeCardList.ad2">
  123. <view class="swiper-item2" @click="goRoter(item)">
  124. <image class="swiper-item2Img" :src="item.icon" mode=""></image>
  125. </view>
  126. </swiper-item>
  127. </swiper>
  128. </view>
  129. <view class="advertisement" v-if="homeCardList.ad3.length>0">
  130. <swiper class="swiper2" circular :autoplay="true" :interval="interval"
  131. :duration="duration" :indicator-dots="true" indicator-color="#CCCCCC" :indicator-active-color="'#'+themeColor">
  132. <swiper-item v-for="(item,index) in homeCardList.ad3">
  133. <view class="swiper-item2" @click="goRoter(item)">
  134. <image class="swiper-item2Img" :src="item.icon" mode=""></image>
  135. </view>
  136. </swiper-item>
  137. </swiper>
  138. </view>
  139. <!-- 热门活动 -->
  140. <view v-if="homeCardList.openMActivity&&homeCardList.openMActivity.openCollectingList">
  141. <view class="Hot" v-if="homeCardList.openMActivity.openCollectingList.length>0">
  142. <view class="hotTop">
  143. <view class="hotLeft">
  144. <view class="hotSx" :style="{background:'#'+themeColor}"></view>
  145. <view class="hottitle">{{homeCardList.openMActivity.showTitle?homeCardList.openMActivity.showTitle:'热门活动'}}</view>
  146. </view>
  147. <view class="hotRight" @click="moreJk">
  148. <view class="hotMore">更多</view>
  149. <img src="../../static/timg/icon_arrow_right.png" alt="" class="hotMoreJt">
  150. </view>
  151. </view>
  152. <view class="hotLine" @click="goJk(item)" v-for="(item,index) in homeCardList.openMActivity.openCollectingList" v-if="index<homeCardList.openMActivity.showCount">
  153. <view class="hotLineTop">
  154. <image class="hotLineTopImg" :src="item.img" mode=""></image>
  155. <view class="hotlineTimebox">
  156. <!-- <view class="hotlinestate1" v-if="item.state==2">进行中</view>
  157. <view class="hotlinestate2" v-if="item.state==1">未开始</view> -->
  158. <image class="jkStateImg" v-if="item.state==2" src="http://dmsphoto.66km.com.cn/thFiles/85EAAA7F-01A6-41A6-B25B-72FAD3E451AC.png" mode="" ></image>
  159. <image class="jkStateImg" v-if="item.state==1" src="http://dmsphoto.66km.com.cn/thFiles/EB46639B-85C9-4246-A3E3-EA87944DFC36.png" mode="" ></image>
  160. <view class="hotTime">{{item.startTime.slice(0,10)}}-{{item.endTime.slice(0,10)}}</view>
  161. </view>
  162. </view>
  163. <view class="hotName">{{item.activityName}}</view>
  164. <view class="groupType" v-if="item.groupType">拼团</view>
  165. </view>
  166. </view>
  167. </view>
  168. <!-- 热门商品 -->
  169. <view v-if="homeCardList.openMGoods">
  170. <view class="" v-if="homeCardList.openMGoods.goodsList&&homeCardList.openMGoods.goodsList.length>0">
  171. <view class="Hot" v-if="homeCardList.openMGoods.showType==1">
  172. <view class="hotTop">
  173. <view class="hotLeft">
  174. <view class="hotSx" :style="{background:'#'+themeColor}"></view>
  175. <view class="hottitle">{{homeCardList.openMGoods.showTitle?homeCardList.openMGoods.showTitle:'热门商品'}}</view>
  176. </view>
  177. <view class="hotRight" @click="goShop">
  178. <view class="hotMore">更多</view>
  179. <img src="../../static/timg/icon_arrow_right.png" alt="" class="hotMoreJt">
  180. </view>
  181. </view>
  182. <view v-if="homeCardList.openMGoods.showLayout==1">
  183. <view class="hotGoodsLine" v-for="(item,index) in homeCardList.openMGoods.goodsList" @click="goGoods(item)" v-if="index<homeCardList.openMGoods.showCount">
  184. <view>
  185. <image :src="item.url" mode="" class="hotGoodsLineImg"></image>
  186. </view>
  187. <view class="hotGoodsLineRIght">
  188. <view class="goodsName">{{item.name}}</view>
  189. <view class="Sold">
  190. <view v-if="item.showLabel&&item.showLabel.indexOf('3')!=-1">
  191. 已售 {{item.saleQty>0?item.saleQty:0}}
  192. </view>
  193. </view>
  194. <view class="goodsPrice">
  195. <view class="goodsPrice1" >{{item.saleLabel}}</view><!-- :style="{color:'#'+themeColor}" -->
  196. <view class="goodsPrice2" >¥</view>
  197. <view class="goodsPrice3" >{{item.salePrice}}
  198. <span v-if="item.categoryIds=='7B97D114-C419-42B2-9C1E-0B4CA284CDA0'">万</span>
  199. </view>
  200. <view class="goodsPrice4" v-if="item.showLabel&&item.scribingPrice&&item.showLabel.indexOf('1')!=-1">¥{{item.scribingPrice}}</view>
  201. </view>
  202. </view>
  203. </view>
  204. </view>
  205. <!-- 俩列的 -->
  206. <div class="goodsTwo" v-if="homeCardList.openMGoods.showLayout==2">
  207. <div class="goodsTwoLine" v-for="(item,index) in homeCardList.openMGoods.goodsList" @click="goGoods(item)" v-if="index<homeCardList.openMGoods.showCount">
  208. <div class="goodsTwoImg">
  209. <image :src="item.url" mode="" class="hotGoodsLineImg"></image>
  210. </div>
  211. <div class="goodsTwoName">{{item.name}}</div>
  212. <view class="Sold">
  213. <view v-if="item.showLabel&&item.showLabel.indexOf('3')!=-1">
  214. 已售 {{item.saleQty>0?item.saleQty:0}}
  215. </view>
  216. </view>
  217. <view class="goodsPrice">
  218. <view class="goodsPrice1" >{{item.saleLabel}}</view><!-- :style="{color:'#'+themeColor}" -->
  219. <view class="goodsPrice2" >¥</view>
  220. <view class="goodsPrice3" >{{item.salePrice}}
  221. <span v-if="item.categoryIds=='7B97D114-C419-42B2-9C1E-0B4CA284CDA0'">万</span>
  222. </view>
  223. <view class="goodsPrice4" v-if="item.showLabel&&item.scribingPrice&&item.showLabel.indexOf('1')!=-1">¥{{item.scribingPrice}}</view>
  224. </view>
  225. </div>
  226. </div>
  227. </view>
  228. </view>
  229. </view>
  230. <view style="height: 60rpx;"></view>
  231. <!-- 手机号授权 -->
  232. <view class="authorizBox" v-if="authorizShow" @click="authorizShowHide">
  233. <view class="authorizCont" @click.stop="">
  234. <view class="authorizName">{{wxOpenData.miniAppName}}</view>
  235. <view class="authorizMs">您好,欢迎访问本店,授权手机号登录能获取我们最新的促销活动哦~</view>
  236. <button class="authorizContbutton" type="default" open-type="getPhoneNumber" @getphonenumber="decryptPhoneNumber">授权</button>
  237. </view>
  238. <view style="text-align: center;padding-top: 56rpx;">
  239. <image src="../../static/timg/icon_guanbi@2x.png" mode="" class="authorizCloseImg"></image>
  240. </view>
  241. </view>
  242. <!-- <view @getphonenumber="decryptPhoneNumber" >shopId:{{shopId}}</view>
  243. -->
  244. <view class="qrBox" v-if="qrSHow">
  245. <view class="qrimgBox">
  246. <view class="qrTitle">微信绑定
  247. <image src="../../static/timg/chahao.png" mode="" class="qrimgchahao" @click="qrclose"></image>
  248. </view>
  249. <view class="qrms">扫描/长按下方二维码进行绑定</view>
  250. <view class="qrms2">绑定后可接收微信消息通知</view>
  251. <view style="text-align: center;padding-top: 30rpx;">
  252. <image :src="qrimg" mode="" class="qrimg" :show-menu-by-longpress='true'></image>
  253. </view>
  254. <view class="qrBtn" @click="qrclose">我知道了</view>
  255. </view>
  256. </view>
  257. </view>
  258. </template>
  259. <script>
  260. export default {
  261. data() {
  262. return {
  263. shopId: '',
  264. url:'',
  265. wxOpenData:'',
  266. code:'',
  267. carInfo:'',
  268. homeCardList:'',
  269. authorizShow:false,
  270. miniAppName:'',
  271. iStatusBarHeight:'',
  272. managerInfo:'',
  273. unionId:'',
  274. ext:'',
  275. duration:500,
  276. interval:3000,
  277. InsuranceExpireDate:'',
  278. NextCareDate:'',
  279. NextAuditDate:'',
  280. themeColor:'',
  281. getwxLoing:false,
  282. shareID:'',
  283. discount:'',
  284. bizUserId:'',
  285. coCouponsMsg:'',
  286. coNoNewCustMsg:'',
  287. qrimg:'',
  288. qrSHow:false,
  289. customerInfo:'',
  290. exitNum:'',
  291. }
  292. },
  293. onLoad(opt) {
  294. this.iStatusBarHeight = uni.getSystemInfoSync().statusBarHeight;
  295. var that=this;
  296. //this.$common.getExtStoreId()
  297. var ext=this.$common.getExtStoreId();
  298. this.ext=ext
  299. console.log("ext--themeColor")
  300. console.log(ext)
  301. //console.log( String(Date.now()))
  302. this.shopId=ext.shopId;
  303. this.url=ext.url;
  304. this.unionId=ext.unionId;
  305. var shareID = opt.scene //'F16E7299-6850-4015-ABCE-A9F2794B45B5'
  306. if (shareID) {
  307. this.shareID = shareID
  308. console.log('this.shareID==='+this.shareID)
  309. //this.$store.commit('mutationsshareID', shareID)
  310. }
  311. //this.shareID='F16E7299-6850-4015-ABCE-A9F2794B45B5'
  312. //this.shareID='1BF04FAEC8844ECE9C40E880C3B13721'
  313. //this.unionId="26A1039A-DB10-4D0E-BBA2-541C06274EED";
  314. //this.ext.appId="wxffd2502e67d37908"
  315. // uni.setStorage({
  316. // key: 'extdata',
  317. // data: {
  318. // shopId:'E37BB296-5A08-4534-859D-B351BA611AF9',
  319. // },
  320. // success: function () {
  321. // that.uniLogin()
  322. // }
  323. // });
  324. //this.userInfo = uni.getStorageSync("userInfo");
  325. this.userInfo=this.$store.state.userInfo
  326. if(this.userInfo){
  327. //this.wxOpenData = uni.getStorageSync("wxOpenData");
  328. this.getCarList();
  329. this.queryHomeCardList()
  330. this.queryManagerInfo()
  331. }else{
  332. this.uniLogin()
  333. }
  334. //版本更新
  335. this.UpdateManager();
  336. },
  337. onShow() {
  338. this.userInfo=this.$store.state.userInfo;
  339. this.wxOpenData=this.$store.state.wxOpenData;
  340. var indexaddcar = uni.getStorageSync("indexaddcar");
  341. var themeColor = uni.getStorageSync("themeColor");
  342. if(themeColor){
  343. this.themeColor=themeColor
  344. }
  345. this.getwxLoing=true;
  346. this.exitNum=this.$store.state.exitNum;
  347. if(this.exitNum==1){
  348. this.carInfo=''
  349. }else{
  350. if(indexaddcar==1){
  351. uni.removeStorageSync('indexaddcar');
  352. this.getCarList();
  353. }else{
  354. this.carInfo=this.$store.state.carInfo;
  355. console.log("车辆信息")
  356. console.log(this.carInfo)
  357. if(!this.carInfo){
  358. this.getCarList();
  359. }
  360. this.jsTime()
  361. }
  362. }
  363. },
  364. onPullDownRefresh(){
  365. this.getCarList();
  366. this.queryHomeCardList()
  367. this.queryManagerInfo()
  368. setTimeout(() => {
  369. uni.stopPullDownRefresh(); // 关闭下拉刷新
  370. }, 1000);
  371. },
  372. methods: {
  373. seeQr(){
  374. // this.authorizShow = true;
  375. // return false;
  376. if (this.userInfo) {
  377. } else {
  378. this.authorizShow = true;
  379. return false;
  380. }
  381. uni.showLoading({
  382. title: '加载中'
  383. })
  384. this.$request.httpBinary('wxV2/createQrCode', {
  385. type:'bindWx',
  386. customerId:this.customerInfo.id,
  387. unionID:this.customerInfo.unionID,
  388. }, 'GET').then(res => {
  389. uni.hideLoading();
  390. this.qrimg = 'data:image/png;base64,'+uni.arrayBufferToBase64(res);
  391. this.qrSHow=true;
  392. //this.img= uni.arrayBufferToBase64(res)
  393. //console.log('list+=', this.queryShopList);
  394. })
  395. },
  396. qrclose(){
  397. this.qrSHow=false;
  398. },
  399. authorizShowHide(){
  400. this.authorizShow=false
  401. },
  402. UpdateManager(){
  403. const updateManager = uni.getUpdateManager();
  404. updateManager.onCheckForUpdate(function (res) {
  405. // 请求完新版本信息的回调
  406. console.log(res.hasUpdate);
  407. });
  408. updateManager.onUpdateReady(function (res) {
  409. uni.showModal({
  410. title: '更新提示',
  411. content: '新版本已经准备好,是否重启应用?',
  412. success(res) {
  413. if (res.confirm) {
  414. // 新的版本已经下载好,调用 applyUpdate 应用新版本并重启
  415. updateManager.applyUpdate();
  416. }
  417. }
  418. });
  419. });
  420. updateManager.onUpdateFailed(function (res) {
  421. // 新的版本下载失败
  422. uni.showToast({
  423. title: '新的版本下载失败',
  424. icon:'none',
  425. duration: 3000
  426. });
  427. });
  428. },
  429. addCar(){
  430. if(!this.userInfo){
  431. if(this.exitNum!=1){
  432. this.authorizShow=true;
  433. }else{
  434. this.$common.automaticlogin().then(val => {
  435. this.userInfo=this.$store.state.userInfo;
  436. this.wxOpenData=this.$store.state.wxOpenData;
  437. /* uni.navigateTo({
  438. url:'../user/addCar/addCar?type=1'
  439. }) */
  440. this.exitNum=''
  441. this.$store.commit('mutationsexitNum', '')
  442. this.getCarList();
  443. uni.navigateTo({
  444. url:'../user/addCar/cailist'
  445. })
  446. })
  447. }
  448. }else{
  449. uni.navigateTo({
  450. url:'../user/addCar/addCar?type=1'
  451. })
  452. }
  453. },
  454. goShop(){
  455. uni.switchTab({
  456. url:'../shop/shop'
  457. })
  458. },
  459. moreJk(){
  460. uni.switchTab({
  461. url:'../activity/activity'
  462. })
  463. },
  464. information(){
  465. console.log('车辆信息--',this.carInfo);
  466. uni.navigateTo({
  467. url:'handbook?mileage='+this.carInfo.milage+'&liyangId='+this.carInfo.nLevelID
  468. })
  469. },
  470. changeCar(){
  471. /* uni.scanCode({
  472. success: function (res) {
  473. console.log('条码类型:' + res.scanType);
  474. console.log( res);
  475. }
  476. });
  477. return false; */
  478. uni.navigateTo({
  479. url:'../user/addCar/cailist'
  480. })
  481. },
  482. goMUsers(){
  483. if(!this.userInfo){
  484. this.authorizShow=true;
  485. }else{
  486. var managerInfo={
  487. name:this.managerInfo.name,
  488. shopInfo:{
  489. shopName:this.managerInfo.shopInfo.shopName,
  490. provinceName:this.managerInfo.shopInfo.provinceName,
  491. cityName:this.managerInfo.shopInfo.cityName,
  492. areaName:this.managerInfo.shopInfo.areaName,
  493. Address:this.managerInfo.shopInfo.Address,
  494. },
  495. avatar:this.managerInfo.avatar,
  496. phone:this.managerInfo.phone,
  497. shopID:this.managerInfo.shopInfo.id
  498. }
  499. uni.navigateTo({
  500. url:'../index/personalCard?adInfo='+JSON.stringify(managerInfo)
  501. })
  502. }
  503. },
  504. goGoods(item){
  505. if(!this.userInfo){
  506. if(this.exitNum!=1){
  507. this.authorizShow=true;
  508. }else{
  509. this.$common.automaticlogin().then(val => {
  510. this.userInfo=this.$store.state.userInfo;
  511. this.wxOpenData=this.$store.state.wxOpenData;
  512. this.exitNum=''
  513. this.$store.commit('mutationsexitNum', '')
  514. uni.navigateTo({
  515. url:'../shop/goodsDetail?id='+item.id
  516. })
  517. })
  518. }
  519. }else{
  520. uni.navigateTo({
  521. url:'../shop/goodsDetail?id='+item.id
  522. })
  523. }
  524. /* if(!this.userInfo){
  525. this.authorizShow=true;
  526. }else{
  527. uni.navigateTo({
  528. url:'../shop/goodsDetail?id='+item.id
  529. })
  530. } */
  531. },
  532. goJk(item){
  533. /* if(!this.userInfo){
  534. this.authorizShow=true;
  535. }else{
  536. uni.navigateTo({
  537. url:'../activity/jkDetail?id='+item.id
  538. })
  539. } */
  540. if(!this.userInfo){
  541. if(this.exitNum!=1){
  542. this.authorizShow=true;
  543. }else{
  544. this.$common.automaticlogin().then(val => {
  545. this.userInfo=this.$store.state.userInfo;
  546. this.wxOpenData=this.$store.state.wxOpenData;
  547. this.exitNum=''
  548. this.$store.commit('mutationsexitNum', '')
  549. uni.navigateTo({
  550. url:'../activity/jkDetail?id='+item.id
  551. })
  552. })
  553. }
  554. }else{
  555. uni.navigateTo({
  556. url:'../activity/jkDetail?id='+item.id
  557. })
  558. }
  559. },
  560. goRoter(item){
  561. if(!this.userInfo){
  562. if(this.exitNum!=1){
  563. this.authorizShow=true;
  564. }else{
  565. this.$common.automaticlogin().then(val => {
  566. this.userInfo=this.$store.state.userInfo;
  567. this.wxOpenData=this.$store.state.wxOpenData;
  568. this.exitNum=''
  569. this.$store.commit('mutationsexitNum', '')
  570. this.goRoter2(item)
  571. })
  572. }
  573. }else{
  574. this.goRoter2(item)
  575. }
  576. },
  577. goRoter2(item){
  578. console.log(item)
  579. if(!this.userInfo){
  580. //this.authorizShow=true;
  581. }else{
  582. if(item.bizType==0){
  583. if(item.name=='新车'){ //
  584. uni.navigateTo({
  585. url:'newCar'
  586. })
  587. }else if(item.name=='二手车'){
  588. uni.navigateTo({
  589. url:'usedCar'
  590. })
  591. }else if(item.name=='爱车估价'){
  592. uni.navigateTo({
  593. url:'evaluation'
  594. })
  595. }else if(item.sortId==18){ //领券中心
  596. uni.navigateTo({
  597. url:'receiveCoupon'
  598. })
  599. }else if(item.sortId==19){ //救援测试
  600. uni.navigateTo({
  601. url:'rescue'
  602. })
  603. }
  604. else{
  605. uni.showToast({
  606. title: '敬请期待',
  607. icon:'none',
  608. duration: 3000
  609. });
  610. }
  611. }else if(item.bizType==1){ //紧急救援
  612. uni.navigateTo({
  613. url:'rescue'
  614. })
  615. /* uni.showToast({
  616. title: '敬请期待',
  617. icon:'none',
  618. duration: 3000
  619. }); */
  620. }else if(item.bizType==2){ //钣金喷漆
  621. uni.navigateTo({
  622. url:'paint'
  623. })
  624. /* uni.navigateTo({
  625. url:'receiveCoupon'
  626. }) */
  627. }else if(item.bizType==3){ //保养
  628. uni.navigateTo({
  629. url:'maintain'
  630. })
  631. }else if(item.bizType==4){ //在线预约
  632. uni.navigateTo({
  633. url:'onlineBooking?naShopId='+item.naShopId
  634. })
  635. }else if(item.bizType==5){ //导航
  636. this.getShopinfo(5,item.reShopId)
  637. }else if(item.bizType==6){ //联系本店
  638. this.getShopinfo(6,item.orShopId)
  639. }else if(item.bizType==7){ //7门店列表
  640. uni.navigateTo({
  641. url:'shopList'
  642. })
  643. }else if(item.bizType==8){ //我的会员卡
  644. uni.navigateTo({
  645. url:'vipCard'
  646. })
  647. }else if(item.bizType==9){ //我的优惠券
  648. uni.navigateTo({
  649. url:'discountCard'
  650. })
  651. }else if(item.bizType==10){ //我的订单
  652. uni.navigateTo({
  653. url:'../user/myOrder/myOrder'
  654. })
  655. }else if(item.bizType==11){ //我的预约
  656. uni.navigateTo({
  657. url:'../user/myBespeak'
  658. })
  659. }else if(item.bizType==12){ //历史消费
  660. uni.navigateTo({
  661. url:'../user/historySpend'
  662. })
  663. }else if(item.bizType==12){ //历史消费
  664. uni.navigateTo({
  665. url:'../user/historySpend'
  666. })
  667. }else if(item.bizType==13){ //车检报告
  668. uni.navigateTo({
  669. url:'../user/checkReport'
  670. })
  671. }else if(item.bizType==14){ //指定商品分类
  672. uni.setStorage({
  673. key: 'shopcategoryID',
  674. data: item.bizId,
  675. success: function () {
  676. getApp().globalData.shopcategoryID=item.bizId;
  677. uni.switchTab({
  678. url:'../shop/shop?shopcategoryID='+ item.bizId
  679. })
  680. }
  681. });
  682. }else if(item.bizType==15){ //商品详情
  683. uni.navigateTo({
  684. url:'../shop/goodsDetail?id='+item.bizId
  685. })
  686. }else if(item.bizType==16){ //积分商城
  687. uni.navigateTo({
  688. url:'../integral/integral'
  689. })
  690. }else if(item.bizType==17){ //公司介绍
  691. uni.navigateTo({
  692. url:'aboutUS?unionID='+this.userInfo.unionId
  693. })
  694. }else if(item.bizType==18){ //领券中心
  695. uni.navigateTo({
  696. url:'receiveCoupon'
  697. })
  698. /* uni.navigateTo({
  699. url:'rescue'
  700. }) */
  701. }else if(item.bizType==19){
  702. //我的车库pages/user/addCar/cailist
  703. uni.navigateTo({
  704. url:'../user/addCar/cailist'
  705. })
  706. }
  707. // uni.navigateTo({
  708. // url:url
  709. // })
  710. }
  711. },
  712. decryptPhoneNumber: function(e) {
  713. console.log(e);
  714. this.code=e.detail.code
  715. this.wxPhoneLogin()
  716. this.authorizShow=false;
  717. },
  718. wxgologin(){
  719. var that=this;
  720. uni.getUserProfile({
  721. lang:'zh_CN',
  722. desc:'登录',
  723. success:(res)=>{
  724. console.log(res);
  725. that.wxdata=res;
  726. uni.setStorage({
  727. key: 'wxdata',
  728. data: res,
  729. success: function () {
  730. that.uniLogin()
  731. }
  732. });
  733. },
  734. fail:(res)=>{
  735. console.log(res)
  736. }
  737. });
  738. },
  739. uniLogin(){
  740. var that=this;
  741. uni.login({
  742. provider: 'weixin',
  743. success: function (loginRes) {
  744. console.log(loginRes);
  745. that.getWxOpenID(loginRes)
  746. }
  747. });
  748. },
  749. getWxOpenID(e){
  750. var that=this;
  751. // uni.showLoading({
  752. // title: '加载中'
  753. // })
  754. this.$http('miniApp2/sys/getWxOpenID', {
  755. code:e.code,
  756. unionId:this.unionId,
  757. shareId:this.shareID
  758. },'GET').then(res => {
  759. console.log(res.code);
  760. console.log("授权信息")
  761. console.log(res)
  762. //uni.hideLoading();
  763. if(res.code!=0){
  764. //uni.hideLoading();
  765. var msg=res.msg
  766. if(!msg){
  767. msg='授权失败'
  768. }
  769. console.log(msg);
  770. // uni.showModal({
  771. // title: '提示',
  772. // content: msg,
  773. // success: function(resTK) {
  774. // if (resTK.confirm) {
  775. // }
  776. // }
  777. // });
  778. // uni.showToast({
  779. // title:msg,
  780. // icon: 'none',
  781. // duration: 3000
  782. // });
  783. //return false
  784. }
  785. this.wxOpenData=res.data;
  786. this.themeColor=res.data.themeColor
  787. //this.themeColor='FFFFFF'
  788. this.getwxLoing=true;
  789. uni.setNavigationBarTitle({
  790. title:this.wxOpenData.miniAppName
  791. })
  792. if(this.themeColor=='6F2BE8'){
  793. var backgroundImage='/static/tabimg/index6F2BE8.png'
  794. }
  795. if(this.themeColor=='1677FF'){
  796. var backgroundImage='/static/tabimg/index1677FF.png'
  797. }
  798. if(this.themeColor=='FF4F00'){
  799. var backgroundImage='/static/tabimg/indexFF4F00.png'
  800. }
  801. if(this.themeColor=='D53533'){
  802. var backgroundImage='/static/tabimg/index1.png'
  803. }
  804. uni.setTabBarStyle({
  805. // color: '#FF0000',
  806. selectedColor: '#'+this.themeColor,
  807. })
  808. uni.setTabBarItem({
  809. index: 0,
  810. text: '首页',
  811. selectedIconPath: backgroundImage
  812. })
  813. if(res.code==0){
  814. that.queryHomeCardList()
  815. }
  816. //that.wxPhoneLogin()
  817. this.$store.commit('mutationswxOpenData', that.wxOpenData)
  818. uni.setStorage({
  819. key: 'wxOpenData',
  820. data: that.wxOpenData,
  821. success: function () {
  822. // that.uniLogin()
  823. }
  824. });
  825. uni.setStorage({
  826. key: 'themeColor',
  827. data: that.themeColor,
  828. success: function () {
  829. // that.uniLogin()
  830. console.log("themeColor=="+that.themeColor)
  831. }
  832. });
  833. if(this.wxOpenData.loginInfo){
  834. this.$store.commit('mutationsuserInfo', that.wxOpenData.loginInfo.openUser)
  835. this.userInfo=that.wxOpenData.loginInfo.openUser
  836. that.queryManagerInfo()
  837. uni.setStorage({
  838. key: 'userInfo',
  839. data: that.wxOpenData.loginInfo.openUser,
  840. success: function () {
  841. that.getCarList()
  842. }
  843. });
  844. }else{
  845. //this.authorizShow=true;
  846. }
  847. if(res.data.loginInfo.discount){
  848. that.discount=res.data.loginInfo.discount;
  849. if(that.discount==2){
  850. that.bizUserId=res.data.loginInfo.bizUserId;
  851. }
  852. if(that.shareID){
  853. that.getCouponList()
  854. }
  855. }
  856. if(res.data.loginInfo.coNoNewCustMsg){ //车主合伙人二维码提示
  857. uni.showModal({
  858. title: '提示',
  859. content:res.data.loginInfo.coNoNewCustMsg,
  860. success: function(resTKk) {
  861. }
  862. });
  863. }
  864. //console.log("优惠券")
  865. })
  866. },
  867. wxPhoneLogin(){
  868. var that=this;
  869. this.$http('miniApp2/sys/wxPhoneLogin', {
  870. appId:this.ext.appId,
  871. unionId:this.unionId,
  872. code:this.code,
  873. openId:this.wxOpenData.openid,
  874. shareId:this.shareID
  875. },'POST').then(res => {
  876. var data = res.data;
  877. if(data.loginInfo){
  878. this.userInfo=data.loginInfo.openUser;
  879. this.customerInfo=data.loginInfo.customerInfo
  880. this.$store.commit('mutationsuserInfo', this.userInfo);
  881. this.$store.commit('mutationswxOpenData', data);
  882. uni.setStorage({
  883. key: 'userInfo',
  884. data: data.loginInfo.openUser,
  885. success: function () {
  886. that.getCarList()
  887. that.queryHomeCardList()
  888. that.queryManagerInfo();
  889. if(data.loginInfo.coCouponsMsg){
  890. uni.hideLoading()
  891. that.coCouponsMsg =data.loginInfo.coCouponsMsg;
  892. that.ownerCoupon()
  893. }
  894. if(data.loginInfo.coNoNewCustMsg){
  895. //console.log(data.loginInfo.coNoNewCustMsg)
  896. uni.hideLoading()
  897. that.coNoNewCustMsg =data.loginInfo.coNoNewCustMsg;
  898. that.coNoNewCust()
  899. }
  900. if(data.loginInfo.discount){
  901. that.discount=data.loginInfo.discount;
  902. if(that.discount==2){
  903. that.bizUserId=data.loginInfo.bizUserId;
  904. }
  905. if(that.shareID&&that.discount==2){
  906. that.getCouponList()
  907. }
  908. }
  909. }
  910. });
  911. if(!this.customerInfo.wxMiniV2OpenID){
  912. this.seeQr()
  913. }
  914. }
  915. })
  916. },
  917. coNoNewCust(){
  918. console.log(111111)
  919. var that=this;
  920. uni.showModal({
  921. title: '提示',
  922. content: that.coNoNewCustMsg,
  923. success: function(resTK) {
  924. }
  925. });
  926. },
  927. ownerCoupon(){
  928. console.log(22222)
  929. var that=this;
  930. uni.showModal({
  931. title: '提示',
  932. content: that.coCouponsMsg,
  933. cancelText:'回到首页',
  934. confirmText:'查看',
  935. success: function(resTK) {
  936. if (resTK.confirm) {
  937. uni.navigateTo({
  938. url:'discountCard'
  939. })
  940. }
  941. }
  942. });
  943. },
  944. getCouponList(){
  945. if(this.discount!=2){
  946. var params={
  947. discount:this.discount
  948. }
  949. }else{
  950. var params={
  951. discount:this.discount,
  952. bizId:this.bizUserId
  953. }
  954. }
  955. var that=this;
  956. this.$http('opencoupon/getCouponList', params, 'GET').then(res => {
  957. var list = res.data;
  958. if(list.length>0){
  959. uni.showModal({
  960. title: '提示',
  961. content: '您有优惠券待领取',
  962. cancelText:'回到首页',
  963. confirmText:'查看',
  964. success: function(resTK) {
  965. if (resTK.confirm) {
  966. uni.navigateTo({
  967. url:'discountDlq?bizUserId='+that.bizUserId+'&discount='+that.discount
  968. })
  969. }
  970. }
  971. });
  972. }
  973. })
  974. },
  975. getCarList(){
  976. this.$http('opencarOwnerHome/queryCarInfoList', {
  977. },'GET').then(res => {
  978. if(res.code==401){
  979. // this.uniLogin()
  980. this.carInfo=''
  981. this.$store.commit('mutationscarInfo', '')
  982. }else{
  983. this.carInfo=res.data[0]
  984. //this.carInfo=[]
  985. this.$store.commit('mutationscarInfo', this.carInfo)
  986. /* this.carInfo.insuranceExpireDate='2022-11-11';
  987. this.carInfo.nextAuditDate='2022-08-13'; */
  988. //this.carInfo.nextCareDate='2022-08-11';
  989. //this.carInfo.nextCareMilage=11
  990. this.jsTime()
  991. }
  992. })
  993. },
  994. jsTime(){
  995. if(this.carInfo.insuranceExpireDate){
  996. if (Number(new Date().getTime()) > (Number(new Date(this.carInfo.insuranceExpireDate.replace(/-/g, '/')).getTime()) || 0)) {
  997. console.log("现在时间大于开始时间")
  998. this.InsuranceExpireDate = 0
  999. } else {
  1000. this.clock()
  1001. }
  1002. }else{
  1003. this.InsuranceExpireDate=''
  1004. }
  1005. if(this.carInfo.nextCareDate){
  1006. if (Number(new Date().getTime()) > (Number(new Date(this.carInfo.nextCareDate.replace(/-/g, '/')).getTime()) || 0)) {
  1007. this.NextCareDate = 0
  1008. } else {
  1009. this.clock2()
  1010. }
  1011. }else{
  1012. this.NextCareDate = ''
  1013. }
  1014. if(this.carInfo.nextAuditDate){
  1015. if (Number(new Date().getTime()) > (Number(new Date(this.carInfo.nextAuditDate.replace(/-/g, '/')).getTime()) || 0)) {
  1016. this.NextAuditDate = 0
  1017. } else {
  1018. this.clock3()
  1019. }
  1020. }else{
  1021. this.NextAuditDate=''
  1022. }
  1023. },
  1024. clock () {
  1025. let _this = this
  1026. let today = new Date() // 当前时间
  1027. let h = today.getHours()
  1028. let m = today.getMinutes()
  1029. let s = today.getSeconds()
  1030. let stopTime = new Date(_this.carInfo.insuranceExpireDate.replace(/-/g, '/')) // 结束时间
  1031. let stopH = stopTime.getHours()
  1032. let stopM = stopTime.getMinutes()
  1033. let stopS = stopTime.getSeconds()
  1034. let shenyu = stopTime.getTime() - today.getTime() // 倒计时毫秒数
  1035. let shengyuD = parseInt(shenyu / (60 * 60 * 24 * 1000)) // 转换为天
  1036. this.InsuranceExpireDate=shengyuD+1;
  1037. // setTimeout(_this.clock, 500)
  1038. },
  1039. clock2 () {
  1040. let _this = this
  1041. let today = new Date() // 当前时间
  1042. let stopTime = new Date(_this.carInfo.nextCareDate.replace(/-/g, '/')) // 结束时间
  1043. let stopH = stopTime.getHours()
  1044. let stopM = stopTime.getMinutes()
  1045. let stopS = stopTime.getSeconds()
  1046. let shenyu = stopTime.getTime() - today.getTime() // 倒计时毫秒数
  1047. let shengyuD = parseInt(shenyu / (60 * 60 * 24 * 1000)) // 转换为天
  1048. this.NextCareDate=shengyuD+1;
  1049. // setTimeout(_this.clock, 500)
  1050. },
  1051. clock3 () {
  1052. let _this = this
  1053. let today = new Date() // 当前时间
  1054. let stopTime = new Date(_this.carInfo.nextAuditDate.replace(/-/g, '/')) // 结束时间
  1055. let shenyu = stopTime.getTime() - today.getTime() // 倒计时毫秒数
  1056. let shengyuD = parseInt(shenyu / (60 * 60 * 24 * 1000)) // 转换为天
  1057. this.NextAuditDate=shengyuD+1;
  1058. // setTimeout(_this.clock, 500)
  1059. },
  1060. queryManagerInfo(){
  1061. console.log("11")
  1062. this.$http('openHome/queryManagerInfo', {
  1063. },'GET').then(res => {
  1064. this.managerInfo=res.data
  1065. })
  1066. },
  1067. queryHomeCardList(){
  1068. //console.log(this.wxOpenData)
  1069. var that=this;
  1070. uni.showLoading({
  1071. title: '加载中'
  1072. })
  1073. this.$http('openHome/queryHomeCardList', {
  1074. unionId:this.unionId
  1075. },'GET').then(res => {
  1076. uni.hideLoading();
  1077. this.homeCardList=res.data;
  1078. uni.setStorage({
  1079. key: 'openMCar',
  1080. data: res.data.openMCar,
  1081. success: function () {
  1082. that.getCarList()
  1083. }
  1084. });
  1085. })
  1086. },
  1087. getShopinfo(num,shopId){
  1088. var that=this;
  1089. uni.showLoading({
  1090. title: '加载中'
  1091. })
  1092. if(!shopId){
  1093. shopId=''
  1094. }
  1095. this.$http('openmy/getShopinfo', {
  1096. shopId:shopId
  1097. },'GET').then(res => {
  1098. uni.hideLoading();
  1099. var res=res.data
  1100. if(num==5){
  1101. uni.openLocation({
  1102. latitude:Number(res.lat),
  1103. longitude:Number(res.lng),
  1104. name: res.shopName,
  1105. address: res.address,
  1106. success: function() {
  1107. console.log('success');
  1108. },
  1109. fail(err) {
  1110. console.log(err)
  1111. }
  1112. });
  1113. }else{
  1114. uni.makePhoneCall({
  1115. phoneNumber: res.mobilePhone
  1116. });
  1117. }
  1118. })
  1119. }
  1120. },
  1121. onShareAppMessage(){
  1122. }
  1123. }
  1124. </script>
  1125. <style scoped>
  1126. .qrBox{
  1127. position: fixed;
  1128. width: 100vw;
  1129. height: 100vh;
  1130. background: rgba(0,0,0,0.5);
  1131. left: 0;
  1132. top: 0;
  1133. z-index: 11;
  1134. display: flex;
  1135. justify-content: center;
  1136. align-items: center;
  1137. flex-direction: column;
  1138. }
  1139. .qrimgBox{
  1140. width: 562rpx;
  1141. height: 704rpx;
  1142. background: #FFFFFF;
  1143. border-radius: 24rpx;
  1144. }
  1145. .qrTitle{
  1146. font-size: 30rpx;
  1147. font-family: PingFangSC-Medium, PingFang SC;
  1148. font-weight: 500;
  1149. color: #333333;
  1150. border-bottom: 1px solid #EEEEEE;
  1151. text-align: center;
  1152. line-height: 90rpx;
  1153. position: relative;
  1154. }
  1155. .qrimgchahao{
  1156. width: 38rpx;
  1157. height: 38rpx;
  1158. position: absolute;
  1159. top: 26rpx;
  1160. right: 20rpx;
  1161. }
  1162. .qrms{
  1163. font-weight: 400;
  1164. color: #999999;
  1165. line-height: 37rpx;
  1166. font-size: 26rpx;
  1167. padding-top: 23rpx;
  1168. text-align: center;
  1169. }
  1170. .qrms2{
  1171. font-weight: 400;
  1172. color: #999999;
  1173. line-height: 37rpx;
  1174. font-size: 26rpx;
  1175. text-align: center;
  1176. }
  1177. .qrimg{
  1178. width: 328rpx;
  1179. height: 328rpx;
  1180. }
  1181. .qrBtn{
  1182. width: 292rpx;
  1183. height: 64rpx;
  1184. background: #D53533;
  1185. border-radius: 32rpx;
  1186. color: #FFFFFF;
  1187. line-height: 64rpx;
  1188. text-align: center;
  1189. margin: 0 auto;
  1190. margin-top:40rpx;
  1191. }
  1192. .goodsTwo{
  1193. display: flex;
  1194. justify-content: space-between;
  1195. flex-wrap: wrap;
  1196. }
  1197. .goodsTwoLine{
  1198. background: #FFFFFF;width: 341rpx;
  1199. margin-top: 20rpx;
  1200. padding-bottom: 20rpx;
  1201. border-radius: 16rpx;
  1202. overflow: hidden;
  1203. }
  1204. .goodsTwoImg .hotGoodsLineImg{
  1205. margin: 0 auto;
  1206. width: 100%;
  1207. height: 340rpx;
  1208. border-radius: 0;
  1209. border: none;
  1210. }
  1211. .goodsTwoLine .Sold{
  1212. padding-left: 20rpx;
  1213. }
  1214. .goodsTwoLine .goodsPrice{
  1215. padding-left: 20rpx;
  1216. }
  1217. .goodsTwoImg{
  1218. padding-bottom: 30rpx;
  1219. }
  1220. .goodsTwoName{
  1221. font-weight: 400;
  1222. color: #333333;
  1223. font-size: 26rpx;
  1224. line-height: 38rpx;
  1225. padding: 0 20rpx;
  1226. text-overflow: -o-ellipsis-lastline;
  1227. overflow: hidden;
  1228. text-overflow: ellipsis;
  1229. display: -webkit-box;
  1230. -webkit-line-clamp: 2;
  1231. line-clamp: 2;
  1232. -webkit-box-orient: vertical;
  1233. }
  1234. .bxBox{
  1235. display: flex;
  1236. flex-wrap: wrap;
  1237. }
  1238. .bxline{
  1239. display: flex;
  1240. padding-top: 22rpx;
  1241. }
  1242. .bxline1{
  1243. width: 40%;
  1244. }
  1245. .bxline2{
  1246. width: 60%;
  1247. }
  1248. .bxlineTitle{
  1249. color: #333333;
  1250. font-size: 26rpx;
  1251. line-height: 37rpx;
  1252. padding-left: 10rpx;
  1253. }
  1254. .bxlineMs1{
  1255. line-height: 37rpx;
  1256. color: #D53533;
  1257. font-size: 26rpx;
  1258. padding-left: 12rpx;
  1259. }
  1260. .bxlineMs2{
  1261. line-height: 37rpx;
  1262. color: #999999;
  1263. font-size: 24rpx;
  1264. padding-left: 12rpx;
  1265. }
  1266. .bxlineIcon{
  1267. width: 34rpx;
  1268. height: 34rpx;
  1269. margin-left: 24rpx;
  1270. }
  1271. .indexTop{
  1272. /* background: #D53533; */
  1273. width: 750rpx;
  1274. position: fixed;
  1275. top: 0;
  1276. left: 0;
  1277. z-index: 11;
  1278. }
  1279. .indexnav{
  1280. height: 44px;
  1281. line-height: 44px;
  1282. text-align: center;
  1283. font-size: 36rpx;
  1284. color: #FFFFFF;
  1285. }
  1286. .authorizBox{
  1287. width: 100vw;
  1288. height: 100vh;
  1289. background: rgba(0, 0, 0, 0.5);
  1290. position: fixed;
  1291. top: 0;
  1292. left: 0;
  1293. }
  1294. .authorizCont{
  1295. margin-top: 30vh;
  1296. width: 564rpx;
  1297. height: 408rpx;
  1298. background: #FFFFFF;
  1299. border-radius: 24rpx;
  1300. margin-left: 93rpx;
  1301. position: relative;
  1302. }
  1303. .authorizCloseImg{
  1304. width: 62rpx;
  1305. height: 62rpx;
  1306. }
  1307. .sqLogoBox{
  1308. width: 180rpx;
  1309. height: 180rpx;
  1310. background: #FFFFFF;
  1311. border-radius: 90rpx;
  1312. text-align: center;
  1313. position: absolute;
  1314. top: -50rpx;
  1315. left: 192rpx;
  1316. }
  1317. .authorizName{
  1318. color: #333333;
  1319. line-height: 42rpx;
  1320. font-size: 30rpx;
  1321. text-align: center;
  1322. padding-top: 58rpx;
  1323. }
  1324. .authorizMs{
  1325. color: #999999;
  1326. line-height: 36rpx;
  1327. font-size: 26rpx;
  1328. width: 452rpx;
  1329. padding-top: 24rpx;
  1330. text-align: center;
  1331. margin-left: 56rpx;
  1332. }
  1333. .authorizContbutton{
  1334. width: 422rpx;
  1335. height: 88rpx;
  1336. background: #D53533;
  1337. border-radius: 44rpx;
  1338. line-height: 88rpx;
  1339. text-align: center;
  1340. font-size:30rpx;
  1341. color: #FFFFFF;
  1342. margin-top: 62rpx;
  1343. margin-left:71rpx;
  1344. }
  1345. .content{
  1346. min-height: 100vh;
  1347. background: #F4F5F7;
  1348. }
  1349. .topBox{
  1350. width: 750rpx;
  1351. height: 150rpx;
  1352. /* background: #D53533; */
  1353. }
  1354. .yuanhu{
  1355. width: 750rpx;
  1356. height: 50rpx;
  1357. /* background: #D53533; */
  1358. border-radius: 0 0 100% 100%;
  1359. }
  1360. .carinfoBox{
  1361. width: 702rpx;
  1362. /* height: 250rpx; */
  1363. background: #FFFFFF;
  1364. border-radius: 10rpx;
  1365. margin-left: 24rpx;
  1366. overflow: hidden;
  1367. height: 270rpx;
  1368. }
  1369. .carinfoBox2{
  1370. width: 702rpx;
  1371. height: 180rpx;
  1372. background: #FFFFFF;
  1373. border-radius: 10rpx;
  1374. margin-left: 24rpx;
  1375. overflow: hidden;
  1376. }
  1377. .carinfoBox2{
  1378. }
  1379. .carinfoBox .carLogo{
  1380. width: 60rpx;height: 60rpx;
  1381. margin-top: 6rpx;
  1382. }
  1383. .carinfoBoxTop{
  1384. display: flex;
  1385. justify-content: space-between;
  1386. padding-top: 29rpx;
  1387. padding-left: 24rpx;
  1388. padding-right: 20rpx;
  1389. padding-bottom: 24rpx;
  1390. border: 1px solid #EEEEEE;
  1391. }
  1392. .carinfoBoxTopCont{
  1393. width: 454rpx;
  1394. }
  1395. .carinfoBoxTopContTop{
  1396. display: flex;
  1397. }
  1398. .carInfoplateNumber{
  1399. font-weight: 500;
  1400. color: #3C3C3C;
  1401. font-size: 30rpx;
  1402. line-height: 42rpx;
  1403. padding-right: 16rpx;
  1404. }
  1405. .carTnfomilage{
  1406. color: #F19D01;
  1407. font-size: 22rpx;
  1408. padding: 0rpx 10rpx;
  1409. border-radius: 4rpx;
  1410. border: 1px solid #F19D01;
  1411. height: 32rpx;
  1412. line-height: 34rpx;
  1413. margin-top: 2rpx;
  1414. margin-left: 2rpx;
  1415. }
  1416. .carInfocarModel{
  1417. width: 454rpx;
  1418. color: #666666;
  1419. font-size: 26rpx;
  1420. white-space: nowrap;
  1421. overflow: hidden;
  1422. text-overflow: ellipsis;
  1423. }
  1424. .carinfoBoxTopRight{
  1425. display: flex;padding-top: 25rpx;
  1426. }
  1427. .carinfoBoxTopRightIcon{
  1428. width: 29rpx;
  1429. height: 31rpx;
  1430. }
  1431. .huancheBtn{
  1432. color: #666666; font-size: 26rpx;line-height: 31rpx;
  1433. padding-left: 10rpx;
  1434. }
  1435. .carInfoBottom{
  1436. display: flex;
  1437. justify-content: space-around;
  1438. }
  1439. .carInfoBottomLineTitle{
  1440. color: #999999;font-size: 24rpx;
  1441. text-align: center;
  1442. padding-top: 24rpx;
  1443. }
  1444. .carInfoBottomLineTxt{
  1445. color: #3C3C3C;
  1446. font-size: 26rpx;
  1447. padding-top: 5rpx;
  1448. text-align: center;
  1449. }
  1450. .carinfonocarIcon{
  1451. width: 72rpx;
  1452. height: 72rpx;
  1453. }
  1454. .carinfoBoxNocar{
  1455. display: flex;
  1456. padding-top: 50rpx;
  1457. padding-left: 20rpx;
  1458. }
  1459. .carinfoBoxNocarRightTitle{
  1460. font-weight: 500;
  1461. color: #3C3C3C;
  1462. font-size: 30rpx;
  1463. }
  1464. .carinfoBoxNocarRightMS{
  1465. color: #666666;
  1466. font-size: 26rpx;
  1467. }
  1468. .carinfoBoxNocarRight{
  1469. padding-left: 24rpx;
  1470. }
  1471. .shoptopbox{
  1472. margin-top: -170rpx;
  1473. }
  1474. .shoptopbox2{
  1475. margin-top: -170rpx;
  1476. }
  1477. .adviser{
  1478. width: 662rpx;
  1479. margin-left: 24rpx;
  1480. background: #FFFFFF;
  1481. border-radius: 10px;
  1482. display: flex;
  1483. justify-content: space-between;
  1484. padding: 18rpx 20rpx;
  1485. margin-top: 20rpx;
  1486. }
  1487. .adviserLeft{
  1488. display: flex;
  1489. }
  1490. .advisertx{
  1491. width: 62rpx;height: 62rpx;
  1492. }
  1493. .adviserNema{
  1494. color: #333333;font-size: 30rpx;
  1495. line-height: 62rpx;padding-left: 24rpx;
  1496. }
  1497. .adviserms{
  1498. width: 118rpx;
  1499. height: 36rpx;
  1500. border-radius: 4rpx;
  1501. border: 1px solid #D53533;
  1502. line-height: 36rpx;
  1503. text-align: center;
  1504. margin-top: 12rpx;
  1505. margin-left: 20rpx;
  1506. color: #D53533;
  1507. font-size: 24rpx;
  1508. }
  1509. .adviserJt{
  1510. width: 12rpx;
  1511. height: 20rpx;
  1512. margin-top: 20rpx;
  1513. }
  1514. .modular{
  1515. width: 702rpx;
  1516. /* height: 313rpx; */
  1517. background: #FFFFFF;
  1518. border-radius: 10px;
  1519. margin-top: 20rpx;
  1520. margin-left: 24rpx;
  1521. padding-bottom: 40rpx;
  1522. }
  1523. .swiper-item{
  1524. display: flex;
  1525. flex-wrap: wrap;
  1526. }
  1527. .itemImg{
  1528. width: 46rpx;
  1529. height: 46rpx;
  1530. }
  1531. .Menusline{
  1532. font-size: 24rpx;
  1533. color: #333333;
  1534. }
  1535. .itemLine{
  1536. width: 20%;
  1537. text-align: center;
  1538. padding-top: 40rpx;
  1539. }
  1540. .advertisement{
  1541. width: 702rpx;
  1542. height: 280rpx;
  1543. margin-top: 20rpx;
  1544. margin-left: 24rpx;
  1545. border-radius: 20rpx;
  1546. }
  1547. .swiper-item2{
  1548. width: 702rpx;
  1549. height: 280px;
  1550. }
  1551. .swiper-item2Img{
  1552. width: 702rpx;
  1553. height: 280rpx;
  1554. }
  1555. .hotMoreJt{
  1556. width: 12rpx;
  1557. height: 20rpx;
  1558. margin-top: 6rpx;
  1559. }
  1560. .Hot{
  1561. width: 702rpx;
  1562. margin-top: 20rpx;
  1563. margin-left: 24rpx;
  1564. }
  1565. .hotTop{
  1566. display: flex;
  1567. justify-content: space-between;
  1568. padding: 6rpx 0;
  1569. }
  1570. .hotSx{
  1571. width: 8rpx;
  1572. height: 30rpx;
  1573. background: #FF0000;
  1574. border-radius: 5rpx;
  1575. }
  1576. .hotLeft{
  1577. display: flex;
  1578. }
  1579. .hottitle{
  1580. font-weight: 500;
  1581. color: #333333;
  1582. font-size: 30rpx;
  1583. line-height: 30rpx;
  1584. margin-left: 16rpx;
  1585. }
  1586. .hotRight{
  1587. display: flex;
  1588. }
  1589. .hotMore{
  1590. line-height: 30rpx;color: #666666;font-size: 24rpx;
  1591. margin-right: 16rpx;
  1592. }
  1593. .hotLineTopImg{
  1594. width: 702rpx;
  1595. height: 280rpx;
  1596. display: block;
  1597. }
  1598. .hotLineTop{
  1599. position: relative;
  1600. height: 280rpx;
  1601. }
  1602. .hotLine{
  1603. margin-top: 20rpx;
  1604. border-radius: 10rpx;
  1605. background: #FFFFFF;
  1606. overflow: hidden;
  1607. position: relative;
  1608. }
  1609. .groupType{
  1610. width: 76rpx;color: #FFFFFF;
  1611. height: 36rpx;line-height: 36rpx;text-align: center;
  1612. background: linear-gradient(109deg, #FD5A04 0%, #FD0900 100%);
  1613. border-radius: 0rpx 10rpx 0rpx 10rpx;
  1614. position: absolute;font-weight: 500;
  1615. top: 0;right: 0;font-size: 24rpx;
  1616. }
  1617. .hotlinestate1{
  1618. width: 102rpx;
  1619. height: 44rpx;
  1620. background:#FBBF00 ;
  1621. line-height: 44rpx;
  1622. font-weight: 500;
  1623. color: #333333;
  1624. font-size: 24rpx;
  1625. text-align: center;
  1626. }
  1627. .hotlinestate2{
  1628. width: 102rpx;
  1629. height: 44rpx;
  1630. background:#FF0000 ;
  1631. line-height: 44rpx;
  1632. font-weight: 500;
  1633. color: #FFFFFF;
  1634. font-size: 24rpx;
  1635. text-align: center;
  1636. }
  1637. .hotlineTimebox{
  1638. position: absolute;
  1639. left: 0;
  1640. bottom: 0;
  1641. display: flex;
  1642. align-items: flex-end;
  1643. }
  1644. .hotTime{
  1645. background: rgba(0, 0, 0, 0.5);
  1646. font-weight: 400;
  1647. color: #FFFFFF;
  1648. font-size: 24rpx;
  1649. /* line-height: 44rpx; */
  1650. padding: 5rpx 20rpx;
  1651. margin-top: 9rpx;
  1652. margin-left: -8rpx;
  1653. border-radius: 0px 10rpx 0px 0px;
  1654. }
  1655. .hotName{
  1656. padding: 24rpx 20rpx;
  1657. color: #333333;
  1658. line-height: 40rpx;
  1659. font-size: 28rpx;
  1660. }
  1661. .hotGoodsLine{
  1662. margin-top: 30rpx;
  1663. padding: 20rpx;
  1664. background: #FFFFFF;
  1665. border-radius: 16rpx;
  1666. display: flex;
  1667. }
  1668. .hotGoodsLineImg{
  1669. width: 208rpx;
  1670. height: 194rpx;
  1671. border-radius: 16rpx;
  1672. border: 1px solid #EEEEEE;
  1673. display: block;
  1674. }
  1675. .goodsName{
  1676. font-size: 28rpx;
  1677. font-family: PingFangSC-Regular, PingFang SC;
  1678. font-weight: 400;
  1679. color: #333333;
  1680. line-height: 40rpx;
  1681. text-overflow: -o-ellipsis-lastline;
  1682. overflow: hidden;
  1683. text-overflow: ellipsis;
  1684. display: -webkit-box;
  1685. -webkit-line-clamp: 2;
  1686. line-clamp: 2;
  1687. -webkit-box-orient: vertical;
  1688. }
  1689. .hotGoodsLineRIght{
  1690. padding-left: 24rpx;
  1691. }
  1692. .goodsPrice{
  1693. display: flex;
  1694. padding-top: 10rpx;
  1695. }
  1696. .goodsPrice1{
  1697. font-size: 24rpx;
  1698. font-weight: 400;
  1699. color: #FF0000;
  1700. padding-top: 8rpx;
  1701. }
  1702. .goodsPrice2{
  1703. font-size: 22rpx;
  1704. font-weight: 400;
  1705. color: #FF0000;
  1706. padding-top: 10rpx;
  1707. }
  1708. .goodsPrice3{
  1709. font-size: 32rpx;
  1710. font-weight: 500;
  1711. color: #FF0000;
  1712. }
  1713. .goodsPrice4{
  1714. font-size: 24rpx;
  1715. font-weight: 400;
  1716. color: #999999;
  1717. padding-top: 8rpx;
  1718. padding-left: 10rpx;
  1719. text-decoration:line-through;
  1720. }
  1721. .Sold{
  1722. font-weight: 400;
  1723. color: #999999;
  1724. font-size: 24rpx;
  1725. padding-top: 8rpx;
  1726. }
  1727. .jkStateImg{
  1728. width: 102rpx;
  1729. height: 53rpx;
  1730. position: relative;
  1731. }
  1732. </style>