index.vue 46 KB

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