index.vue 44 KB

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