index.vue 38 KB

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