index.vue 47 KB

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