index.vue 37 KB

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