index.vue 42 KB

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