index.vue 47 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863
  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. }else if(item.bizType==19){
  709. //我的车库pages/user/addCar/cailist
  710. uni.navigateTo({
  711. url:'../user/addCar/cailist'
  712. })
  713. }
  714. // uni.navigateTo({
  715. // url:url
  716. // })
  717. }
  718. },
  719. decryptPhoneNumber: function(e) {
  720. console.log(e);
  721. this.code=e.detail.code
  722. this.wxPhoneLogin()
  723. this.authorizShow=false;
  724. },
  725. wxgologin(){
  726. var that=this;
  727. uni.getUserProfile({
  728. lang:'zh_CN',
  729. desc:'登录',
  730. success:(res)=>{
  731. console.log(res);
  732. that.wxdata=res;
  733. uni.setStorage({
  734. key: 'wxdata',
  735. data: res,
  736. success: function () {
  737. that.uniLogin()
  738. }
  739. });
  740. },
  741. fail:(res)=>{
  742. console.log(res)
  743. }
  744. });
  745. },
  746. uniLogin(){
  747. var that=this;
  748. uni.login({
  749. provider: 'weixin',
  750. success: function (loginRes) {
  751. console.log(loginRes);
  752. that.getWxOpenID(loginRes)
  753. }
  754. });
  755. },
  756. getWxOpenID(e){
  757. var that=this;
  758. // uni.showLoading({
  759. // title: '加载中'
  760. // })
  761. this.$http('miniApp2/sys/getWxOpenID', {
  762. code:e.code,
  763. unionId:this.unionId,
  764. shareId:this.shareID
  765. },'GET').then(res => {
  766. console.log(res.code);
  767. console.log("授权信息")
  768. console.log(res)
  769. //uni.hideLoading();
  770. if(res.code!=0){
  771. //uni.hideLoading();
  772. var msg=res.msg
  773. if(!msg){
  774. msg='授权失败'
  775. }
  776. console.log(msg);
  777. // uni.showModal({
  778. // title: '提示',
  779. // content: msg,
  780. // success: function(resTK) {
  781. // if (resTK.confirm) {
  782. // }
  783. // }
  784. // });
  785. // uni.showToast({
  786. // title:msg,
  787. // icon: 'none',
  788. // duration: 3000
  789. // });
  790. //return false
  791. }
  792. this.wxOpenData=res.data;
  793. this.themeColor=res.data.themeColor
  794. //this.themeColor='FFFFFF'
  795. this.getwxLoing=true;
  796. uni.setNavigationBarTitle({
  797. title:this.wxOpenData.miniAppName
  798. })
  799. if(this.themeColor=='6F2BE8'){
  800. var backgroundImage='/static/tabimg/index6F2BE8.png'
  801. }
  802. if(this.themeColor=='1677FF'){
  803. var backgroundImage='/static/tabimg/index1677FF.png'
  804. }
  805. if(this.themeColor=='FF4F00'){
  806. var backgroundImage='/static/tabimg/indexFF4F00.png'
  807. }
  808. if(this.themeColor=='D53533'){
  809. var backgroundImage='/static/tabimg/index1.png'
  810. }
  811. uni.setTabBarStyle({
  812. // color: '#FF0000',
  813. selectedColor: '#'+this.themeColor,
  814. })
  815. uni.setTabBarItem({
  816. index: 0,
  817. text: '首页',
  818. selectedIconPath: backgroundImage
  819. })
  820. if(res.code==0){
  821. that.queryHomeCardList()
  822. }
  823. //that.wxPhoneLogin()
  824. this.$store.commit('mutationswxOpenData', that.wxOpenData)
  825. uni.setStorage({
  826. key: 'wxOpenData',
  827. data: that.wxOpenData,
  828. success: function () {
  829. // that.uniLogin()
  830. }
  831. });
  832. uni.setStorage({
  833. key: 'themeColor',
  834. data: that.themeColor,
  835. success: function () {
  836. // that.uniLogin()
  837. console.log("themeColor=="+that.themeColor)
  838. }
  839. });
  840. if(this.wxOpenData.loginInfo){
  841. this.$store.commit('mutationsuserInfo', that.wxOpenData.loginInfo.openUser)
  842. this.userInfo=that.wxOpenData.loginInfo.openUser
  843. console.log("this.userInfo")
  844. console.log(this.userInfo)
  845. that.queryManagerInfo()
  846. uni.setStorage({
  847. key: 'userInfo',
  848. data: that.wxOpenData.loginInfo.openUser,
  849. success: function () {
  850. that.getCarList()
  851. }
  852. });
  853. }else{
  854. //this.authorizShow=true;
  855. }
  856. if(res.data.loginInfo.discount){
  857. that.discount=res.data.loginInfo.discount;
  858. if(that.discount==2){
  859. that.bizUserId=res.data.loginInfo.bizUserId;
  860. }
  861. if(that.shareID){
  862. that.getCouponList()
  863. }
  864. }
  865. if(res.data.loginInfo.coNoNewCustMsg){ //车主合伙人二维码提示
  866. uni.showModal({
  867. title: '提示',
  868. content:res.data.loginInfo.coNoNewCustMsg,
  869. success: function(resTKk) {
  870. }
  871. });
  872. }
  873. //console.log("优惠券")
  874. })
  875. },
  876. wxPhoneLogin(){
  877. var that=this;
  878. this.$http('miniApp2/sys/wxPhoneLogin', {
  879. appId:this.ext.appId,
  880. unionId:this.unionId,
  881. code:this.code,
  882. openId:this.wxOpenData.openid,
  883. shareId:this.shareID
  884. },'POST').then(res => {
  885. var data = res.data;
  886. if(data.newCustomer){
  887. uni.showModal({
  888. title: '提示',
  889. content: data.newCustomerMsg,
  890. success: function(resTK) {
  891. }
  892. });
  893. var token=res.data.token
  894. data.loginInfo={}
  895. data.loginInfo.token=token
  896. this.$store.commit('mutationswxOpenData', data);
  897. return false;
  898. }
  899. if(data.loginInfo){
  900. this.userInfo=data.loginInfo.openUser;
  901. this.customerInfo=data.loginInfo.customerInfo
  902. this.$store.commit('mutationsuserInfo', this.userInfo);
  903. this.$store.commit('mutationswxOpenData', data);
  904. uni.setStorage({
  905. key: 'userInfo',
  906. data: data.loginInfo.openUser,
  907. success: function () {
  908. that.getCarList()
  909. that.queryHomeCardList()
  910. that.queryManagerInfo();
  911. if(data.loginInfo.coCouponsMsg){
  912. uni.hideLoading()
  913. that.coCouponsMsg =data.loginInfo.coCouponsMsg;
  914. that.ownerCoupon()
  915. }
  916. if(data.loginInfo.coNoNewCustMsg){
  917. //console.log(data.loginInfo.coNoNewCustMsg)
  918. uni.hideLoading()
  919. that.coNoNewCustMsg =data.loginInfo.coNoNewCustMsg;
  920. that.coNoNewCust()
  921. }
  922. if(data.loginInfo.discount){
  923. that.discount=data.loginInfo.discount;
  924. if(that.discount==2){
  925. that.bizUserId=data.loginInfo.bizUserId;
  926. }
  927. if(that.shareID&&that.discount==2){
  928. that.getCouponList()
  929. }
  930. }
  931. }
  932. });
  933. if(!this.customerInfo.wxMiniV2OpenID){
  934. this.seeQr()
  935. }
  936. }
  937. })
  938. },
  939. coNoNewCust(){
  940. console.log(111111)
  941. var that=this;
  942. uni.showModal({
  943. title: '提示',
  944. content: that.coNoNewCustMsg,
  945. success: function(resTK) {
  946. }
  947. });
  948. },
  949. ownerCoupon(){
  950. console.log(22222)
  951. var that=this;
  952. uni.showModal({
  953. title: '提示',
  954. content: that.coCouponsMsg,
  955. cancelText:'回到首页',
  956. confirmText:'查看',
  957. success: function(resTK) {
  958. if (resTK.confirm) {
  959. uni.navigateTo({
  960. url:'discountCard'
  961. })
  962. }
  963. }
  964. });
  965. },
  966. getCouponList(){
  967. if(this.discount!=2){
  968. var params={
  969. discount:this.discount
  970. }
  971. }else{
  972. var params={
  973. discount:this.discount,
  974. bizId:this.bizUserId
  975. }
  976. }
  977. var that=this;
  978. this.$http('opencoupon/getCouponList', params, 'GET').then(res => {
  979. var list = res.data;
  980. if(list.length>0){
  981. uni.showModal({
  982. title: '提示',
  983. content: '您有优惠券待领取',
  984. cancelText:'回到首页',
  985. confirmText:'查看',
  986. success: function(resTK) {
  987. if (resTK.confirm) {
  988. uni.navigateTo({
  989. url:'discountDlq?bizUserId='+that.bizUserId+'&discount='+that.discount
  990. })
  991. }
  992. }
  993. });
  994. }
  995. })
  996. },
  997. getCarList(){
  998. this.$http('opencarOwnerHome/queryCarInfoList', {
  999. },'GET').then(res => {
  1000. if(res.code==401){
  1001. // this.uniLogin()
  1002. this.carInfo=''
  1003. this.$store.commit('mutationscarInfo', '')
  1004. }else{
  1005. this.carInfo=res.data[0]
  1006. //this.carInfo=[]
  1007. this.$store.commit('mutationscarInfo', this.carInfo)
  1008. /* this.carInfo.insuranceExpireDate='2022-11-11';
  1009. this.carInfo.nextAuditDate='2022-08-13'; */
  1010. //this.carInfo.nextCareDate='2022-08-11';
  1011. //this.carInfo.nextCareMilage=11
  1012. this.jsTime()
  1013. }
  1014. })
  1015. },
  1016. jsTime(){
  1017. if(this.carInfo.insuranceExpireDate){
  1018. if (Number(new Date().getTime()) > (Number(new Date(this.carInfo.insuranceExpireDate.replace(/-/g, '/')).getTime()) || 0)) {
  1019. console.log("现在时间大于开始时间")
  1020. this.InsuranceExpireDate = 0
  1021. } else {
  1022. this.clock()
  1023. }
  1024. }else{
  1025. this.InsuranceExpireDate=''
  1026. }
  1027. if(this.carInfo.nextCareDate){
  1028. if (Number(new Date().getTime()) > (Number(new Date(this.carInfo.nextCareDate.replace(/-/g, '/')).getTime()) || 0)) {
  1029. this.NextCareDate = 0
  1030. } else {
  1031. this.clock2()
  1032. }
  1033. }else{
  1034. this.NextCareDate = ''
  1035. }
  1036. if(this.carInfo.nextAuditDate){
  1037. if (Number(new Date().getTime()) > (Number(new Date(this.carInfo.nextAuditDate.replace(/-/g, '/')).getTime()) || 0)) {
  1038. this.NextAuditDate = 0
  1039. } else {
  1040. this.clock3()
  1041. }
  1042. }else{
  1043. this.NextAuditDate=''
  1044. }
  1045. },
  1046. clock () {
  1047. let _this = this
  1048. let today = new Date() // 当前时间
  1049. let h = today.getHours()
  1050. let m = today.getMinutes()
  1051. let s = today.getSeconds()
  1052. let stopTime = new Date(_this.carInfo.insuranceExpireDate.replace(/-/g, '/')) // 结束时间
  1053. let stopH = stopTime.getHours()
  1054. let stopM = stopTime.getMinutes()
  1055. let stopS = stopTime.getSeconds()
  1056. let shenyu = stopTime.getTime() - today.getTime() // 倒计时毫秒数
  1057. let shengyuD = parseInt(shenyu / (60 * 60 * 24 * 1000)) // 转换为天
  1058. this.InsuranceExpireDate=shengyuD+1;
  1059. // setTimeout(_this.clock, 500)
  1060. },
  1061. clock2 () {
  1062. let _this = this
  1063. let today = new Date() // 当前时间
  1064. let stopTime = new Date(_this.carInfo.nextCareDate.replace(/-/g, '/')) // 结束时间
  1065. let stopH = stopTime.getHours()
  1066. let stopM = stopTime.getMinutes()
  1067. let stopS = stopTime.getSeconds()
  1068. let shenyu = stopTime.getTime() - today.getTime() // 倒计时毫秒数
  1069. let shengyuD = parseInt(shenyu / (60 * 60 * 24 * 1000)) // 转换为天
  1070. this.NextCareDate=shengyuD+1;
  1071. // setTimeout(_this.clock, 500)
  1072. },
  1073. clock3 () {
  1074. let _this = this
  1075. let today = new Date() // 当前时间
  1076. let stopTime = new Date(_this.carInfo.nextAuditDate.replace(/-/g, '/')) // 结束时间
  1077. let shenyu = stopTime.getTime() - today.getTime() // 倒计时毫秒数
  1078. let shengyuD = parseInt(shenyu / (60 * 60 * 24 * 1000)) // 转换为天
  1079. this.NextAuditDate=shengyuD+1;
  1080. // setTimeout(_this.clock, 500)
  1081. },
  1082. queryManagerInfo(){
  1083. console.log("11")
  1084. this.$http('openHome/queryManagerInfo', {
  1085. },'GET').then(res => {
  1086. this.managerInfo=res.data
  1087. })
  1088. },
  1089. queryHomeCardList(){
  1090. //console.log(this.wxOpenData)
  1091. var that=this;
  1092. uni.showLoading({
  1093. title: '加载中'
  1094. })
  1095. this.$http('openHome/queryHomeCardList', {
  1096. unionId:this.unionId
  1097. },'GET').then(res => {
  1098. uni.hideLoading();
  1099. this.homeCardList=res.data;
  1100. uni.setStorage({
  1101. key: 'openMCar',
  1102. data: res.data.openMCar,
  1103. success: function () {
  1104. that.getCarList()
  1105. }
  1106. });
  1107. })
  1108. },
  1109. getShopinfo(num,shopId){
  1110. var that=this;
  1111. uni.showLoading({
  1112. title: '加载中'
  1113. })
  1114. if(!shopId){
  1115. shopId=''
  1116. }
  1117. this.$http('openmy/getShopinfo', {
  1118. shopId:shopId
  1119. },'GET').then(res => {
  1120. uni.hideLoading();
  1121. var res=res.data
  1122. if(num==5){
  1123. uni.openLocation({
  1124. latitude:Number(res.lat),
  1125. longitude:Number(res.lng),
  1126. name: res.shopName,
  1127. address: res.address,
  1128. success: function() {
  1129. console.log('success');
  1130. },
  1131. fail(err) {
  1132. console.log(err)
  1133. }
  1134. });
  1135. }else{
  1136. uni.makePhoneCall({
  1137. phoneNumber: res.mobilePhone
  1138. });
  1139. }
  1140. })
  1141. }
  1142. },
  1143. onShareAppMessage(){
  1144. }
  1145. }
  1146. </script>
  1147. <style scoped>
  1148. .qrBox{
  1149. position: fixed;
  1150. width: 100vw;
  1151. height: 100vh;
  1152. background: rgba(0,0,0,0.5);
  1153. left: 0;
  1154. top: 0;
  1155. z-index: 11;
  1156. display: flex;
  1157. justify-content: center;
  1158. align-items: center;
  1159. flex-direction: column;
  1160. }
  1161. .qrimgBox{
  1162. width: 562rpx;
  1163. height: 704rpx;
  1164. background: #FFFFFF;
  1165. border-radius: 24rpx;
  1166. }
  1167. .qrTitle{
  1168. font-size: 30rpx;
  1169. font-family: PingFangSC-Medium, PingFang SC;
  1170. font-weight: 500;
  1171. color: #333333;
  1172. border-bottom: 1px solid #EEEEEE;
  1173. text-align: center;
  1174. line-height: 90rpx;
  1175. position: relative;
  1176. }
  1177. .qrimgchahao{
  1178. width: 38rpx;
  1179. height: 38rpx;
  1180. position: absolute;
  1181. top: 26rpx;
  1182. right: 20rpx;
  1183. }
  1184. .qrms{
  1185. font-weight: 400;
  1186. color: #999999;
  1187. line-height: 37rpx;
  1188. font-size: 26rpx;
  1189. padding-top: 23rpx;
  1190. text-align: center;
  1191. }
  1192. .qrms2{
  1193. font-weight: 400;
  1194. color: #999999;
  1195. line-height: 37rpx;
  1196. font-size: 26rpx;
  1197. text-align: center;
  1198. }
  1199. .qrimg{
  1200. width: 328rpx;
  1201. height: 328rpx;
  1202. }
  1203. .qrBtn{
  1204. width: 292rpx;
  1205. height: 64rpx;
  1206. background: #D53533;
  1207. border-radius: 32rpx;
  1208. color: #FFFFFF;
  1209. line-height: 64rpx;
  1210. text-align: center;
  1211. margin: 0 auto;
  1212. margin-top:40rpx;
  1213. }
  1214. .goodsTwo{
  1215. display: flex;
  1216. justify-content: space-between;
  1217. flex-wrap: wrap;
  1218. }
  1219. .goodsTwoLine{
  1220. background: #FFFFFF;width: 341rpx;
  1221. margin-top: 20rpx;
  1222. padding-bottom: 20rpx;
  1223. border-radius: 16rpx;
  1224. overflow: hidden;
  1225. }
  1226. .goodsTwoImg .hotGoodsLineImg{
  1227. margin: 0 auto;
  1228. width: 100%;
  1229. height: 340rpx;
  1230. border-radius: 0;
  1231. border: none;
  1232. }
  1233. .goodsTwoLine .Sold{
  1234. padding-left: 20rpx;
  1235. }
  1236. .goodsTwoLine .goodsPrice{
  1237. padding-left: 20rpx;
  1238. }
  1239. .goodsTwoImg{
  1240. padding-bottom: 30rpx;
  1241. }
  1242. .goodsTwoName{
  1243. font-weight: 400;
  1244. color: #333333;
  1245. font-size: 26rpx;
  1246. line-height: 38rpx;
  1247. padding: 0 20rpx;
  1248. text-overflow: -o-ellipsis-lastline;
  1249. overflow: hidden;
  1250. text-overflow: ellipsis;
  1251. display: -webkit-box;
  1252. -webkit-line-clamp: 2;
  1253. line-clamp: 2;
  1254. -webkit-box-orient: vertical;
  1255. }
  1256. .bxBox{
  1257. display: flex;
  1258. flex-wrap: wrap;
  1259. }
  1260. .bxline{
  1261. display: flex;
  1262. padding-top: 22rpx;
  1263. }
  1264. .bxline1{
  1265. width: 40%;
  1266. }
  1267. .bxline2{
  1268. width: 60%;
  1269. }
  1270. .bxlineTitle{
  1271. color: #333333;
  1272. font-size: 26rpx;
  1273. line-height: 37rpx;
  1274. padding-left: 10rpx;
  1275. }
  1276. .bxlineMs1{
  1277. line-height: 37rpx;
  1278. color: #D53533;
  1279. font-size: 26rpx;
  1280. padding-left: 12rpx;
  1281. }
  1282. .bxlineMs2{
  1283. line-height: 37rpx;
  1284. color: #999999;
  1285. font-size: 24rpx;
  1286. padding-left: 12rpx;
  1287. }
  1288. .bxlineIcon{
  1289. width: 34rpx;
  1290. height: 34rpx;
  1291. margin-left: 24rpx;
  1292. }
  1293. .indexTop{
  1294. /* background: #D53533; */
  1295. width: 750rpx;
  1296. position: fixed;
  1297. top: 0;
  1298. left: 0;
  1299. z-index: 11;
  1300. }
  1301. .indexnav{
  1302. height: 44px;
  1303. line-height: 44px;
  1304. text-align: center;
  1305. font-size: 36rpx;
  1306. color: #FFFFFF;
  1307. }
  1308. .authorizBox{
  1309. width: 100vw;
  1310. height: 100vh;
  1311. background: rgba(0, 0, 0, 0.5);
  1312. position: fixed;
  1313. top: 0;
  1314. left: 0;
  1315. }
  1316. .authorizCont{
  1317. margin-top: 30vh;
  1318. width: 564rpx;
  1319. height: 408rpx;
  1320. background: #FFFFFF;
  1321. border-radius: 24rpx;
  1322. margin-left: 93rpx;
  1323. position: relative;
  1324. }
  1325. .authorizCloseImg{
  1326. width: 62rpx;
  1327. height: 62rpx;
  1328. }
  1329. .sqLogoBox{
  1330. width: 180rpx;
  1331. height: 180rpx;
  1332. background: #FFFFFF;
  1333. border-radius: 90rpx;
  1334. text-align: center;
  1335. position: absolute;
  1336. top: -50rpx;
  1337. left: 192rpx;
  1338. }
  1339. .authorizName{
  1340. color: #333333;
  1341. line-height: 42rpx;
  1342. font-size: 30rpx;
  1343. text-align: center;
  1344. padding-top: 58rpx;
  1345. }
  1346. .authorizMs{
  1347. color: #999999;
  1348. line-height: 36rpx;
  1349. font-size: 26rpx;
  1350. width: 452rpx;
  1351. padding-top: 24rpx;
  1352. text-align: center;
  1353. margin-left: 56rpx;
  1354. }
  1355. .authorizContbutton{
  1356. width: 422rpx;
  1357. height: 88rpx;
  1358. background: #D53533;
  1359. border-radius: 44rpx;
  1360. line-height: 88rpx;
  1361. text-align: center;
  1362. font-size:30rpx;
  1363. color: #FFFFFF;
  1364. margin-top: 62rpx;
  1365. margin-left:71rpx;
  1366. }
  1367. .content{
  1368. min-height: 100vh;
  1369. background: #F4F5F7;
  1370. }
  1371. .topBox{
  1372. width: 750rpx;
  1373. height: 150rpx;
  1374. /* background: #D53533; */
  1375. }
  1376. .yuanhu{
  1377. width: 750rpx;
  1378. height: 50rpx;
  1379. /* background: #D53533; */
  1380. border-radius: 0 0 100% 100%;
  1381. }
  1382. .carinfoBox{
  1383. width: 702rpx;
  1384. /* height: 250rpx; */
  1385. background: #FFFFFF;
  1386. border-radius: 10rpx;
  1387. margin-left: 24rpx;
  1388. overflow: hidden;
  1389. height: 270rpx;
  1390. }
  1391. .carinfoBox2{
  1392. width: 702rpx;
  1393. height: 180rpx;
  1394. background: #FFFFFF;
  1395. border-radius: 10rpx;
  1396. margin-left: 24rpx;
  1397. overflow: hidden;
  1398. }
  1399. .carinfoBox2{
  1400. }
  1401. .carinfoBox .carLogo{
  1402. width: 60rpx;height: 60rpx;
  1403. margin-top: 6rpx;
  1404. }
  1405. .carinfoBoxTop{
  1406. display: flex;
  1407. justify-content: space-between;
  1408. padding-top: 29rpx;
  1409. padding-left: 24rpx;
  1410. padding-right: 20rpx;
  1411. padding-bottom: 24rpx;
  1412. border: 1px solid #EEEEEE;
  1413. }
  1414. .carinfoBoxTopCont{
  1415. width: 454rpx;
  1416. }
  1417. .carinfoBoxTopContTop{
  1418. display: flex;
  1419. }
  1420. .carInfoplateNumber{
  1421. font-weight: 500;
  1422. color: #3C3C3C;
  1423. font-size: 30rpx;
  1424. line-height: 42rpx;
  1425. padding-right: 16rpx;
  1426. }
  1427. .carTnfomilage{
  1428. color: #F19D01;
  1429. font-size: 22rpx;
  1430. padding: 0rpx 10rpx;
  1431. border-radius: 4rpx;
  1432. border: 1px solid #F19D01;
  1433. height: 32rpx;
  1434. line-height: 34rpx;
  1435. margin-top: 2rpx;
  1436. margin-left: 2rpx;
  1437. }
  1438. .carInfocarModel{
  1439. width: 454rpx;
  1440. color: #666666;
  1441. font-size: 26rpx;
  1442. white-space: nowrap;
  1443. overflow: hidden;
  1444. text-overflow: ellipsis;
  1445. }
  1446. .carinfoBoxTopRight{
  1447. display: flex;padding-top: 25rpx;
  1448. }
  1449. .carinfoBoxTopRightIcon{
  1450. width: 29rpx;
  1451. height: 31rpx;
  1452. }
  1453. .huancheBtn{
  1454. color: #666666; font-size: 26rpx;line-height: 31rpx;
  1455. padding-left: 10rpx;
  1456. }
  1457. .carInfoBottom{
  1458. display: flex;
  1459. justify-content: space-around;
  1460. }
  1461. .carInfoBottomLineTitle{
  1462. color: #999999;font-size: 24rpx;
  1463. text-align: center;
  1464. padding-top: 24rpx;
  1465. }
  1466. .carInfoBottomLineTxt{
  1467. color: #3C3C3C;
  1468. font-size: 26rpx;
  1469. padding-top: 5rpx;
  1470. text-align: center;
  1471. }
  1472. .carinfonocarIcon{
  1473. width: 72rpx;
  1474. height: 72rpx;
  1475. }
  1476. .carinfoBoxNocar{
  1477. display: flex;
  1478. padding-top: 50rpx;
  1479. padding-left: 20rpx;
  1480. }
  1481. .carinfoBoxNocarRightTitle{
  1482. font-weight: 500;
  1483. color: #3C3C3C;
  1484. font-size: 30rpx;
  1485. }
  1486. .loginTitle{
  1487. font-weight: 600;
  1488. color: #3C3C3C;
  1489. font-size: 30rpx;
  1490. padding-left: 20rpx;
  1491. line-height: 72rpx;
  1492. }
  1493. .carinfoBoxNocarRightMS{
  1494. color: #666666;
  1495. font-size: 26rpx;
  1496. }
  1497. .carinfoBoxNocarRight{
  1498. padding-left: 24rpx;
  1499. }
  1500. .shoptopbox{
  1501. margin-top: -170rpx;
  1502. }
  1503. .shoptopbox2{
  1504. margin-top: -170rpx;
  1505. }
  1506. .adviser{
  1507. width: 662rpx;
  1508. margin-left: 24rpx;
  1509. background: #FFFFFF;
  1510. border-radius: 10px;
  1511. display: flex;
  1512. justify-content: space-between;
  1513. padding: 18rpx 20rpx;
  1514. margin-top: 20rpx;
  1515. }
  1516. .adviserLeft{
  1517. display: flex;
  1518. }
  1519. .advisertx{
  1520. width: 62rpx;height: 62rpx;
  1521. }
  1522. .adviserNema{
  1523. color: #333333;font-size: 30rpx;
  1524. line-height: 62rpx;padding-left: 24rpx;
  1525. }
  1526. .adviserms{
  1527. width: 118rpx;
  1528. height: 36rpx;
  1529. border-radius: 4rpx;
  1530. border: 1px solid #D53533;
  1531. line-height: 36rpx;
  1532. text-align: center;
  1533. margin-top: 12rpx;
  1534. margin-left: 20rpx;
  1535. color: #D53533;
  1536. font-size: 24rpx;
  1537. }
  1538. .adviserJt{
  1539. width: 12rpx;
  1540. height: 20rpx;
  1541. margin-top: 20rpx;
  1542. }
  1543. .modular{
  1544. width: 702rpx;
  1545. /* height: 313rpx; */
  1546. background: #FFFFFF;
  1547. border-radius: 10px;
  1548. margin-top: 20rpx;
  1549. margin-left: 24rpx;
  1550. padding-bottom: 40rpx;
  1551. }
  1552. .swiper-item{
  1553. display: flex;
  1554. flex-wrap: wrap;
  1555. }
  1556. .itemImg{
  1557. width: 46rpx;
  1558. height: 46rpx;
  1559. }
  1560. .Menusline{
  1561. font-size: 24rpx;
  1562. color: #333333;
  1563. }
  1564. .itemLine{
  1565. width: 20%;
  1566. text-align: center;
  1567. padding-top: 40rpx;
  1568. }
  1569. .advertisement{
  1570. width: 702rpx;
  1571. height: 280rpx;
  1572. margin-top: 20rpx;
  1573. margin-left: 24rpx;
  1574. border-radius: 20rpx;
  1575. }
  1576. .swiper-item2{
  1577. width: 702rpx;
  1578. height: 280px;
  1579. }
  1580. .swiper-item2Img{
  1581. width: 702rpx;
  1582. height: 280rpx;
  1583. }
  1584. .hotMoreJt{
  1585. width: 12rpx;
  1586. height: 20rpx;
  1587. margin-top: 6rpx;
  1588. }
  1589. .Hot{
  1590. width: 702rpx;
  1591. margin-top: 20rpx;
  1592. margin-left: 24rpx;
  1593. }
  1594. .hotTop{
  1595. display: flex;
  1596. justify-content: space-between;
  1597. padding: 6rpx 0;
  1598. }
  1599. .hotSx{
  1600. width: 8rpx;
  1601. height: 30rpx;
  1602. background: #FF0000;
  1603. border-radius: 5rpx;
  1604. }
  1605. .hotLeft{
  1606. display: flex;
  1607. }
  1608. .hottitle{
  1609. font-weight: 500;
  1610. color: #333333;
  1611. font-size: 30rpx;
  1612. line-height: 30rpx;
  1613. margin-left: 16rpx;
  1614. }
  1615. .hotRight{
  1616. display: flex;
  1617. }
  1618. .hotMore{
  1619. line-height: 30rpx;color: #666666;font-size: 24rpx;
  1620. margin-right: 16rpx;
  1621. }
  1622. .hotLineTopImg{
  1623. width: 702rpx;
  1624. height: 280rpx;
  1625. display: block;
  1626. }
  1627. .hotLineTop{
  1628. position: relative;
  1629. height: 280rpx;
  1630. }
  1631. .hotLine{
  1632. margin-top: 20rpx;
  1633. border-radius: 10rpx;
  1634. background: #FFFFFF;
  1635. overflow: hidden;
  1636. position: relative;
  1637. }
  1638. .groupType{
  1639. width: 76rpx;color: #FFFFFF;
  1640. height: 36rpx;line-height: 36rpx;text-align: center;
  1641. background: linear-gradient(109deg, #FD5A04 0%, #FD0900 100%);
  1642. border-radius: 0rpx 10rpx 0rpx 10rpx;
  1643. position: absolute;font-weight: 500;
  1644. top: 0;right: 0;font-size: 24rpx;
  1645. }
  1646. .hotlinestate1{
  1647. width: 102rpx;
  1648. height: 44rpx;
  1649. background:#FBBF00 ;
  1650. line-height: 44rpx;
  1651. font-weight: 500;
  1652. color: #333333;
  1653. font-size: 24rpx;
  1654. text-align: center;
  1655. }
  1656. .hotlinestate2{
  1657. width: 102rpx;
  1658. height: 44rpx;
  1659. background:#FF0000 ;
  1660. line-height: 44rpx;
  1661. font-weight: 500;
  1662. color: #FFFFFF;
  1663. font-size: 24rpx;
  1664. text-align: center;
  1665. }
  1666. .hotlineTimebox{
  1667. position: absolute;
  1668. left: 0;
  1669. bottom: 0;
  1670. display: flex;
  1671. align-items: flex-end;
  1672. }
  1673. .hotTime{
  1674. background: rgba(0, 0, 0, 0.5);
  1675. font-weight: 400;
  1676. color: #FFFFFF;
  1677. font-size: 24rpx;
  1678. /* line-height: 44rpx; */
  1679. padding: 5rpx 20rpx;
  1680. margin-top: 9rpx;
  1681. margin-left: -8rpx;
  1682. border-radius: 0px 10rpx 0px 0px;
  1683. }
  1684. .hotName{
  1685. padding: 24rpx 20rpx;
  1686. color: #333333;
  1687. line-height: 40rpx;
  1688. font-size: 28rpx;
  1689. }
  1690. .hotGoodsLine{
  1691. margin-top: 30rpx;
  1692. padding: 20rpx;
  1693. background: #FFFFFF;
  1694. border-radius: 16rpx;
  1695. display: flex;
  1696. }
  1697. .hotGoodsLineImg{
  1698. width: 208rpx;
  1699. height: 194rpx;
  1700. border-radius: 16rpx;
  1701. border: 1px solid #EEEEEE;
  1702. display: block;
  1703. }
  1704. .goodsName{
  1705. font-size: 28rpx;
  1706. font-family: PingFangSC-Regular, PingFang SC;
  1707. font-weight: 400;
  1708. color: #333333;
  1709. line-height: 40rpx;
  1710. text-overflow: -o-ellipsis-lastline;
  1711. overflow: hidden;
  1712. text-overflow: ellipsis;
  1713. display: -webkit-box;
  1714. -webkit-line-clamp: 2;
  1715. line-clamp: 2;
  1716. -webkit-box-orient: vertical;
  1717. }
  1718. .hotGoodsLineRIght{
  1719. padding-left: 24rpx;
  1720. }
  1721. .goodsPrice{
  1722. display: flex;
  1723. padding-top: 10rpx;
  1724. }
  1725. .goodsPrice1{
  1726. font-size: 24rpx;
  1727. font-weight: 400;
  1728. color: #FF0000;
  1729. padding-top: 8rpx;
  1730. }
  1731. .goodsPrice2{
  1732. font-size: 22rpx;
  1733. font-weight: 400;
  1734. color: #FF0000;
  1735. padding-top: 10rpx;
  1736. }
  1737. .goodsPrice3{
  1738. font-size: 32rpx;
  1739. font-weight: 500;
  1740. color: #FF0000;
  1741. }
  1742. .goodsPrice4{
  1743. font-size: 24rpx;
  1744. font-weight: 400;
  1745. color: #999999;
  1746. padding-top: 8rpx;
  1747. padding-left: 10rpx;
  1748. text-decoration:line-through;
  1749. }
  1750. .Sold{
  1751. font-weight: 400;
  1752. color: #999999;
  1753. font-size: 24rpx;
  1754. padding-top: 8rpx;
  1755. }
  1756. .jkStateImg{
  1757. width: 102rpx;
  1758. height: 53rpx;
  1759. position: relative;
  1760. }
  1761. </style>