index.vue 47 KB

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