index.vue 47 KB

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