index.vue 38 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504
  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">
  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. }else if(item.bizType==17){ //公司介绍
  522. uni.navigateTo({
  523. url:'aboutUS?unionID='+this.userInfo.unionId
  524. })
  525. }
  526. // uni.navigateTo({
  527. // url:url
  528. // })
  529. }
  530. },
  531. decryptPhoneNumber: function(e) {
  532. console.log(e);
  533. this.code=e.detail.code
  534. this.wxPhoneLogin()
  535. this.authorizShow=false;
  536. },
  537. wxgologin(){
  538. var that=this;
  539. uni.getUserProfile({
  540. lang:'zh_CN',
  541. desc:'登录',
  542. success:(res)=>{
  543. console.log(res);
  544. that.wxdata=res;
  545. uni.setStorage({
  546. key: 'wxdata',
  547. data: res,
  548. success: function () {
  549. that.uniLogin()
  550. }
  551. });
  552. },
  553. fail:(res)=>{
  554. console.log(res)
  555. }
  556. });
  557. },
  558. uniLogin(){
  559. var that=this;
  560. uni.login({
  561. provider: 'weixin',
  562. success: function (loginRes) {
  563. console.log(loginRes);
  564. that.getWxOpenID(loginRes)
  565. }
  566. });
  567. },
  568. getWxOpenID(e){
  569. var that=this;
  570. // uni.showLoading({
  571. // title: '加载中'
  572. // })
  573. this.$http('miniApp2/sys/getWxOpenID', {
  574. code:e.code,
  575. unionId:this.unionId,
  576. shareId:this.shareID
  577. },'GET').then(res => {
  578. console.log(res.code);
  579. console.log("授权信息")
  580. console.log(res)
  581. //uni.hideLoading();
  582. if(res.code!=0){
  583. //uni.hideLoading();
  584. var msg=res.msg
  585. if(!msg){
  586. msg='授权失败'
  587. }
  588. console.log(msg);
  589. // uni.showModal({
  590. // title: '提示',
  591. // content: msg,
  592. // success: function(resTK) {
  593. // if (resTK.confirm) {
  594. // }
  595. // }
  596. // });
  597. // uni.showToast({
  598. // title:msg,
  599. // icon: 'none',
  600. // duration: 3000
  601. // });
  602. //return false
  603. }
  604. this.wxOpenData=res.data;
  605. this.themeColor=res.data.themeColor
  606. //this.themeColor='FFFFFF'
  607. this.getwxLoing=true;
  608. uni.setNavigationBarTitle({
  609. title:this.wxOpenData.miniAppName
  610. })
  611. if(this.themeColor=='6F2BE8'){
  612. var backgroundImage='/static/tabimg/index6F2BE8.png'
  613. }
  614. if(this.themeColor=='1677FF'){
  615. var backgroundImage='/static/tabimg/index1677FF.png'
  616. }
  617. if(this.themeColor=='FF4F00'){
  618. var backgroundImage='/static/tabimg/indexFF4F00.png'
  619. }
  620. if(this.themeColor=='D53533'){
  621. var backgroundImage='/static/tabimg/index1.png'
  622. }
  623. uni.setTabBarStyle({
  624. // color: '#FF0000',
  625. selectedColor: '#'+this.themeColor,
  626. })
  627. uni.setTabBarItem({
  628. index: 0,
  629. text: '首页',
  630. selectedIconPath: backgroundImage
  631. })
  632. if(res.code==0){
  633. that.queryHomeCardList()
  634. }
  635. //that.wxPhoneLogin()
  636. this.$store.commit('mutationswxOpenData', that.wxOpenData)
  637. uni.setStorage({
  638. key: 'wxOpenData',
  639. data: that.wxOpenData,
  640. success: function () {
  641. // that.uniLogin()
  642. }
  643. });
  644. uni.setStorage({
  645. key: 'themeColor',
  646. data: that.themeColor,
  647. success: function () {
  648. // that.uniLogin()
  649. }
  650. });
  651. if(this.wxOpenData.loginInfo){
  652. this.$store.commit('mutationsuserInfo', that.wxOpenData.loginInfo.openUser)
  653. this.userInfo=that.wxOpenData.loginInfo.openUser
  654. that.queryManagerInfo()
  655. uni.setStorage({
  656. key: 'userInfo',
  657. data: that.wxOpenData.loginInfo.openUser,
  658. success: function () {
  659. that.getCarList()
  660. }
  661. });
  662. }else{
  663. //this.authorizShow=true;
  664. }
  665. if(res.data.loginInfo.discount){
  666. that.discount=res.data.loginInfo.discount;
  667. if(that.discount==2){
  668. that.bizUserId=res.data.loginInfo.bizUserId;
  669. }
  670. if(that.shareID){
  671. that.getCouponList()
  672. }
  673. }
  674. if(res.data.loginInfo.coNoNewCustMsg){ //车主合伙人二维码提示
  675. uni.showModal({
  676. title: '提示',
  677. content:res.data.loginInfo.coNoNewCustMsg,
  678. success: function(resTKk) {
  679. }
  680. });
  681. }
  682. //console.log("优惠券")
  683. })
  684. },
  685. wxPhoneLogin(){
  686. var that=this;
  687. this.$http('miniApp2/sys/wxPhoneLogin', {
  688. appId:this.ext.appId,
  689. unionId:this.unionId,
  690. code:this.code,
  691. openId:this.wxOpenData.openid,
  692. shareId:this.shareID
  693. },'POST').then(res => {
  694. var data = res.data;
  695. if(data.loginInfo){
  696. this.userInfo=data.loginInfo.openUser;
  697. this.$store.commit('mutationsuserInfo', this.userInfo);
  698. this.$store.commit('mutationswxOpenData', data);
  699. uni.setStorage({
  700. key: 'userInfo',
  701. data: data.loginInfo.openUser,
  702. success: function () {
  703. that.getCarList()
  704. that.queryHomeCardList()
  705. that.queryManagerInfo();
  706. if(data.loginInfo.coCouponsMsg){
  707. uni.hideLoading()
  708. that.coCouponsMsg =data.loginInfo.coCouponsMsg;
  709. that.ownerCoupon()
  710. }
  711. if(data.loginInfo.coNoNewCustMsg){
  712. //console.log(data.loginInfo.coNoNewCustMsg)
  713. uni.hideLoading()
  714. that.coNoNewCustMsg =data.loginInfo.coNoNewCustMsg;
  715. that.coNoNewCust()
  716. }
  717. if(data.loginInfo.discount){
  718. that.discount=data.loginInfo.discount;
  719. if(that.discount==2){
  720. that.bizUserId=data.loginInfo.bizUserId;
  721. }
  722. if(that.shareID&&that.discount==2){
  723. that.getCouponList()
  724. }
  725. }
  726. }
  727. });
  728. }
  729. })
  730. },
  731. coNoNewCust(){
  732. console.log(111111)
  733. var that=this;
  734. uni.showModal({
  735. title: '提示',
  736. content: that.coNoNewCustMsg,
  737. success: function(resTK) {
  738. }
  739. });
  740. },
  741. ownerCoupon(){
  742. console.log(22222)
  743. var that=this;
  744. uni.showModal({
  745. title: '提示',
  746. content: that.coCouponsMsg,
  747. cancelText:'回到首页',
  748. confirmText:'查看',
  749. success: function(resTK) {
  750. if (resTK.confirm) {
  751. uni.navigateTo({
  752. url:'discountCard'
  753. })
  754. }
  755. }
  756. });
  757. },
  758. getCouponList(){
  759. if(this.discount!=2){
  760. var params={
  761. discount:this.discount
  762. }
  763. }else{
  764. var params={
  765. discount:this.discount,
  766. bizId:this.bizUserId
  767. }
  768. }
  769. var that=this;
  770. this.$http('opencoupon/getCouponList', params, 'GET').then(res => {
  771. var list = res.data;
  772. if(list.length>0){
  773. uni.showModal({
  774. title: '提示',
  775. content: '您有优惠券待领取',
  776. cancelText:'回到首页',
  777. confirmText:'查看',
  778. success: function(resTK) {
  779. if (resTK.confirm) {
  780. uni.navigateTo({
  781. url:'discountDlq?bizUserId='+that.bizUserId+'&discount='+that.discount
  782. })
  783. }
  784. }
  785. });
  786. }
  787. })
  788. },
  789. getCarList(){
  790. this.$http('opencarOwnerHome/queryCarInfoList', {
  791. },'GET').then(res => {
  792. if(res.code==401){
  793. this.uniLogin()
  794. }else{
  795. this.carInfo=res.data[0]
  796. //this.carInfo=[]
  797. this.$store.commit('mutationscarInfo', this.carInfo)
  798. /* this.carInfo.insuranceExpireDate='2022-11-11';
  799. this.carInfo.nextAuditDate='2022-08-13'; */
  800. //this.carInfo.nextCareDate='2022-08-11';
  801. //this.carInfo.nextCareMilage=11
  802. this.jsTime()
  803. }
  804. })
  805. },
  806. jsTime(){
  807. if(this.carInfo.insuranceExpireDate){
  808. if (Number(new Date().getTime()) > (Number(new Date(this.carInfo.insuranceExpireDate.replace(/-/g, '/')).getTime()) || 0)) {
  809. console.log("现在时间大于开始时间")
  810. this.InsuranceExpireDate = 0
  811. } else {
  812. this.clock()
  813. }
  814. }else{
  815. this.InsuranceExpireDate=''
  816. }
  817. if(this.carInfo.nextCareDate){
  818. if (Number(new Date().getTime()) > (Number(new Date(this.carInfo.nextCareDate.replace(/-/g, '/')).getTime()) || 0)) {
  819. this.NextCareDate = 0
  820. } else {
  821. this.clock2()
  822. }
  823. }else{
  824. this.NextCareDate = ''
  825. }
  826. if(this.carInfo.nextAuditDate){
  827. if (Number(new Date().getTime()) > (Number(new Date(this.carInfo.nextAuditDate.replace(/-/g, '/')).getTime()) || 0)) {
  828. this.NextAuditDate = 0
  829. } else {
  830. this.clock3()
  831. }
  832. }else{
  833. this.NextAuditDate=''
  834. }
  835. },
  836. clock () {
  837. let _this = this
  838. let today = new Date() // 当前时间
  839. let h = today.getHours()
  840. let m = today.getMinutes()
  841. let s = today.getSeconds()
  842. let stopTime = new Date(_this.carInfo.insuranceExpireDate.replace(/-/g, '/')) // 结束时间
  843. let stopH = stopTime.getHours()
  844. let stopM = stopTime.getMinutes()
  845. let stopS = stopTime.getSeconds()
  846. let shenyu = stopTime.getTime() - today.getTime() // 倒计时毫秒数
  847. let shengyuD = parseInt(shenyu / (60 * 60 * 24 * 1000)) // 转换为天
  848. this.InsuranceExpireDate=shengyuD+1;
  849. // setTimeout(_this.clock, 500)
  850. },
  851. clock2 () {
  852. let _this = this
  853. let today = new Date() // 当前时间
  854. let stopTime = new Date(_this.carInfo.nextCareDate.replace(/-/g, '/')) // 结束时间
  855. let stopH = stopTime.getHours()
  856. let stopM = stopTime.getMinutes()
  857. let stopS = stopTime.getSeconds()
  858. let shenyu = stopTime.getTime() - today.getTime() // 倒计时毫秒数
  859. let shengyuD = parseInt(shenyu / (60 * 60 * 24 * 1000)) // 转换为天
  860. this.NextCareDate=shengyuD+1;
  861. // setTimeout(_this.clock, 500)
  862. },
  863. clock3 () {
  864. let _this = this
  865. let today = new Date() // 当前时间
  866. let stopTime = new Date(_this.carInfo.nextAuditDate.replace(/-/g, '/')) // 结束时间
  867. let shenyu = stopTime.getTime() - today.getTime() // 倒计时毫秒数
  868. let shengyuD = parseInt(shenyu / (60 * 60 * 24 * 1000)) // 转换为天
  869. this.NextAuditDate=shengyuD+1;
  870. // setTimeout(_this.clock, 500)
  871. },
  872. queryManagerInfo(){
  873. console.log("11")
  874. this.$http('openHome/queryManagerInfo', {
  875. },'GET').then(res => {
  876. this.managerInfo=res.data
  877. })
  878. },
  879. queryHomeCardList(){
  880. //console.log(this.wxOpenData)
  881. uni.showLoading({
  882. title: '加载中'
  883. })
  884. this.$http('openHome/queryHomeCardList', {
  885. unionId:this.unionId
  886. },'GET').then(res => {
  887. uni.hideLoading();
  888. this.homeCardList=res.data;
  889. uni.setStorage({
  890. key: 'openMCar',
  891. data: res.data.openMCar,
  892. success: function () {
  893. that.getCarList()
  894. }
  895. });
  896. })
  897. },
  898. getShopinfo(num,shopId){
  899. var that=this;
  900. uni.showLoading({
  901. title: '加载中'
  902. })
  903. if(!shopId){
  904. shopId=''
  905. }
  906. this.$http('openmy/getShopinfo', {
  907. shopId:shopId
  908. },'GET').then(res => {
  909. uni.hideLoading();
  910. var res=res.data
  911. if(num==5){
  912. uni.openLocation({
  913. latitude:Number(res.lat),
  914. longitude:Number(res.lng),
  915. name: res.shopName,
  916. address: res.address,
  917. success: function() {
  918. console.log('success');
  919. },
  920. fail(err) {
  921. console.log(err)
  922. }
  923. });
  924. }else{
  925. uni.makePhoneCall({
  926. phoneNumber: res.mobilePhone
  927. });
  928. }
  929. })
  930. }
  931. }
  932. }
  933. </script>
  934. <style scoped>
  935. .bxBox{
  936. display: flex;
  937. flex-wrap: wrap;
  938. }
  939. .bxline{
  940. display: flex;
  941. padding-top: 22rpx;
  942. }
  943. .bxline1{
  944. width: 40%;
  945. }
  946. .bxline2{
  947. width: 60%;
  948. }
  949. .bxlineTitle{
  950. color: #333333;
  951. font-size: 26rpx;
  952. line-height: 37rpx;
  953. padding-left: 10rpx;
  954. }
  955. .bxlineMs1{
  956. line-height: 37rpx;
  957. color: #D53533;
  958. font-size: 26rpx;
  959. padding-left: 12rpx;
  960. }
  961. .bxlineMs2{
  962. line-height: 37rpx;
  963. color: #999999;
  964. font-size: 24rpx;
  965. padding-left: 12rpx;
  966. }
  967. .bxlineIcon{
  968. width: 34rpx;
  969. height: 34rpx;
  970. margin-left: 24rpx;
  971. }
  972. .indexTop{
  973. background: #D53533;
  974. width: 750rpx;
  975. position: fixed;
  976. top: 0;
  977. left: 0;
  978. z-index: 11;
  979. }
  980. .indexnav{
  981. height: 44px;
  982. line-height: 44px;
  983. text-align: center;
  984. font-size: 36rpx;
  985. color: #FFFFFF;
  986. }
  987. .authorizBox{
  988. width: 100vw;
  989. height: 100vh;
  990. background: rgba(0, 0, 0, 0.5);
  991. position: fixed;
  992. top: 0;
  993. left: 0;
  994. }
  995. .authorizCont{
  996. margin-top: 30vh;
  997. width: 564rpx;
  998. height: 408rpx;
  999. background: #FFFFFF;
  1000. border-radius: 24rpx;
  1001. margin-left: 93rpx;
  1002. position: relative;
  1003. }
  1004. .authorizCloseImg{
  1005. width: 62rpx;
  1006. height: 62rpx;
  1007. }
  1008. .sqLogoBox{
  1009. width: 180rpx;
  1010. height: 180rpx;
  1011. background: #FFFFFF;
  1012. border-radius: 90rpx;
  1013. text-align: center;
  1014. position: absolute;
  1015. top: -50rpx;
  1016. left: 192rpx;
  1017. }
  1018. .authorizName{
  1019. color: #333333;
  1020. line-height: 42rpx;
  1021. font-size: 30rpx;
  1022. text-align: center;
  1023. padding-top: 58rpx;
  1024. }
  1025. .authorizMs{
  1026. color: #999999;
  1027. line-height: 36rpx;
  1028. font-size: 26rpx;
  1029. width: 452rpx;
  1030. padding-top: 24rpx;
  1031. text-align: center;
  1032. margin-left: 56rpx;
  1033. }
  1034. .authorizContbutton{
  1035. width: 422rpx;
  1036. height: 88rpx;
  1037. background: #D53533;
  1038. border-radius: 44rpx;
  1039. line-height: 88rpx;
  1040. text-align: center;
  1041. font-size:30rpx;
  1042. color: #FFFFFF;
  1043. margin-top: 62rpx;
  1044. margin-left:71rpx;
  1045. }
  1046. .content{
  1047. min-height: 100vh;
  1048. background: #F4F5F7;
  1049. }
  1050. .topBox{
  1051. width: 750rpx;
  1052. height: 150rpx;
  1053. background: #D53533;
  1054. }
  1055. .yuanhu{
  1056. width: 750rpx;
  1057. height: 50rpx;
  1058. background: #D53533;
  1059. border-radius: 0 0 100% 100%;
  1060. }
  1061. .carinfoBox{
  1062. width: 702rpx;
  1063. /* height: 250rpx; */
  1064. background: #FFFFFF;
  1065. border-radius: 10rpx;
  1066. margin-left: 24rpx;
  1067. overflow: hidden;
  1068. height: 270rpx;
  1069. }
  1070. .carinfoBox2{
  1071. width: 702rpx;
  1072. height: 180rpx;
  1073. background: #FFFFFF;
  1074. border-radius: 10rpx;
  1075. margin-left: 24rpx;
  1076. overflow: hidden;
  1077. }
  1078. .carinfoBox2{
  1079. }
  1080. .carinfoBox .carLogo{
  1081. width: 60rpx;height: 60rpx;
  1082. margin-top: 6rpx;
  1083. }
  1084. .carinfoBoxTop{
  1085. display: flex;
  1086. justify-content: space-between;
  1087. padding-top: 29rpx;
  1088. padding-left: 24rpx;
  1089. padding-right: 20rpx;
  1090. padding-bottom: 24rpx;
  1091. border: 1px solid #EEEEEE;
  1092. }
  1093. .carinfoBoxTopCont{
  1094. width: 454rpx;
  1095. }
  1096. .carinfoBoxTopContTop{
  1097. display: flex;
  1098. }
  1099. .carInfoplateNumber{
  1100. font-weight: 500;
  1101. color: #3C3C3C;
  1102. font-size: 30rpx;
  1103. line-height: 42rpx;
  1104. padding-right: 16rpx;
  1105. }
  1106. .carTnfomilage{
  1107. color: #F19D01;
  1108. font-size: 22rpx;
  1109. padding: 0rpx 10rpx;
  1110. border-radius: 4rpx;
  1111. border: 1px solid #F19D01;
  1112. height: 32rpx;
  1113. line-height: 34rpx;
  1114. margin-top: 2rpx;
  1115. margin-left: 2rpx;
  1116. }
  1117. .carInfocarModel{
  1118. width: 454rpx;
  1119. color: #666666;
  1120. font-size: 26rpx;
  1121. white-space: nowrap;
  1122. overflow: hidden;
  1123. text-overflow: ellipsis;
  1124. }
  1125. .carinfoBoxTopRight{
  1126. display: flex;padding-top: 25rpx;
  1127. }
  1128. .carinfoBoxTopRightIcon{
  1129. width: 29rpx;
  1130. height: 31rpx;
  1131. }
  1132. .huancheBtn{
  1133. color: #666666; font-size: 26rpx;line-height: 31rpx;
  1134. padding-left: 10rpx;
  1135. }
  1136. .carInfoBottom{
  1137. display: flex;
  1138. justify-content: space-around;
  1139. }
  1140. .carInfoBottomLineTitle{
  1141. color: #999999;font-size: 24rpx;
  1142. text-align: center;
  1143. padding-top: 24rpx;
  1144. }
  1145. .carInfoBottomLineTxt{
  1146. color: #3C3C3C;
  1147. font-size: 26rpx;
  1148. padding-top: 5rpx;
  1149. text-align: center;
  1150. }
  1151. .carinfonocarIcon{
  1152. width: 72rpx;
  1153. height: 72rpx;
  1154. }
  1155. .carinfoBoxNocar{
  1156. display: flex;
  1157. padding-top: 50rpx;
  1158. padding-left: 20rpx;
  1159. }
  1160. .carinfoBoxNocarRightTitle{
  1161. font-weight: 500;
  1162. color: #3C3C3C;
  1163. font-size: 30rpx;
  1164. }
  1165. .carinfoBoxNocarRightMS{
  1166. color: #666666;
  1167. font-size: 26rpx;
  1168. }
  1169. .carinfoBoxNocarRight{
  1170. padding-left: 24rpx;
  1171. }
  1172. .shoptopbox{
  1173. margin-top: -170rpx;
  1174. }
  1175. .shoptopbox2{
  1176. margin-top: -170rpx;
  1177. }
  1178. .adviser{
  1179. width: 662rpx;
  1180. margin-left: 24rpx;
  1181. background: #FFFFFF;
  1182. border-radius: 10px;
  1183. display: flex;
  1184. justify-content: space-between;
  1185. padding: 18rpx 20rpx;
  1186. margin-top: 20rpx;
  1187. }
  1188. .adviserLeft{
  1189. display: flex;
  1190. }
  1191. .advisertx{
  1192. width: 62rpx;height: 62rpx;
  1193. }
  1194. .adviserNema{
  1195. color: #333333;font-size: 30rpx;
  1196. line-height: 62rpx;padding-left: 24rpx;
  1197. }
  1198. .adviserms{
  1199. width: 118rpx;
  1200. height: 36rpx;
  1201. border-radius: 4rpx;
  1202. border: 1px solid #D53533;
  1203. line-height: 36rpx;
  1204. text-align: center;
  1205. margin-top: 12rpx;
  1206. margin-left: 20rpx;
  1207. color: #D53533;
  1208. font-size: 24rpx;
  1209. }
  1210. .adviserJt{
  1211. width: 12rpx;
  1212. height: 20rpx;
  1213. margin-top: 20rpx;
  1214. }
  1215. .modular{
  1216. width: 702rpx;
  1217. /* height: 313rpx; */
  1218. background: #FFFFFF;
  1219. border-radius: 10px;
  1220. margin-top: 20rpx;
  1221. margin-left: 24rpx;
  1222. padding-bottom: 40rpx;
  1223. }
  1224. .swiper-item{
  1225. display: flex;
  1226. flex-wrap: wrap;
  1227. }
  1228. .itemImg{
  1229. width: 46rpx;
  1230. height: 46rpx;
  1231. }
  1232. .Menusline{
  1233. font-size: 24rpx;
  1234. color: #333333;
  1235. }
  1236. .itemLine{
  1237. width: 20%;
  1238. text-align: center;
  1239. padding-top: 40rpx;
  1240. }
  1241. .advertisement{
  1242. width: 702rpx;
  1243. height: 280rpx;
  1244. margin-top: 20rpx;
  1245. margin-left: 24rpx;
  1246. border-radius: 20rpx;
  1247. }
  1248. .swiper-item2{
  1249. width: 702rpx;
  1250. height: 280px;
  1251. }
  1252. .swiper-item2Img{
  1253. width: 702rpx;
  1254. height: 280rpx;
  1255. }
  1256. .hotMoreJt{
  1257. width: 12rpx;
  1258. height: 20rpx;
  1259. margin-top: 6rpx;
  1260. }
  1261. .Hot{
  1262. width: 702rpx;
  1263. margin-top: 20rpx;
  1264. margin-left: 24rpx;
  1265. }
  1266. .hotTop{
  1267. display: flex;
  1268. justify-content: space-between;
  1269. padding: 6rpx 0;
  1270. }
  1271. .hotSx{
  1272. width: 8rpx;
  1273. height: 30rpx;
  1274. background: #FF0000;
  1275. border-radius: 5rpx;
  1276. }
  1277. .hotLeft{
  1278. display: flex;
  1279. }
  1280. .hottitle{
  1281. font-weight: 500;
  1282. color: #333333;
  1283. font-size: 30rpx;
  1284. line-height: 30rpx;
  1285. margin-left: 16rpx;
  1286. }
  1287. .hotRight{
  1288. display: flex;
  1289. }
  1290. .hotMore{
  1291. line-height: 30rpx;color: #666666;font-size: 24rpx;
  1292. margin-right: 16rpx;
  1293. }
  1294. .hotLineTopImg{
  1295. width: 702rpx;
  1296. height: 280rpx;
  1297. display: block;
  1298. }
  1299. .hotLineTop{
  1300. position: relative;
  1301. height: 280rpx;
  1302. }
  1303. .hotLine{
  1304. margin-top: 20rpx;
  1305. border-radius: 10rpx;
  1306. background: #FFFFFF;
  1307. overflow: hidden;
  1308. }
  1309. .hotlinestate1{
  1310. width: 102rpx;
  1311. height: 44rpx;
  1312. background:#FBBF00 ;
  1313. line-height: 44rpx;
  1314. font-weight: 500;
  1315. color: #333333;
  1316. font-size: 24rpx;
  1317. text-align: center;
  1318. }
  1319. .hotlinestate2{
  1320. width: 102rpx;
  1321. height: 44rpx;
  1322. background:#FF0000 ;
  1323. line-height: 44rpx;
  1324. font-weight: 500;
  1325. color: #FFFFFF;
  1326. font-size: 24rpx;
  1327. text-align: center;
  1328. }
  1329. .hotlineTimebox{
  1330. position: absolute;
  1331. left: 0;
  1332. bottom: 0;
  1333. display: flex;
  1334. align-items: flex-end;
  1335. }
  1336. .hotTime{
  1337. background: rgba(0, 0, 0, 0.5);
  1338. font-weight: 400;
  1339. color: #FFFFFF;
  1340. font-size: 24rpx;
  1341. /* line-height: 44rpx; */
  1342. padding: 5rpx 20rpx;
  1343. margin-top: 9rpx;
  1344. margin-left: -8rpx;
  1345. border-radius: 0px 10rpx 0px 0px;
  1346. }
  1347. .hotName{
  1348. padding: 24rpx 20rpx;
  1349. color: #333333;
  1350. line-height: 40rpx;
  1351. font-size: 28rpx;
  1352. }
  1353. .hotGoodsLine{
  1354. margin-top: 30rpx;
  1355. padding: 20rpx;
  1356. background: #FFFFFF;
  1357. border-radius: 16rpx;
  1358. display: flex;
  1359. }
  1360. .hotGoodsLineImg{
  1361. width: 208rpx;
  1362. height: 194rpx;
  1363. border-radius: 16rpx;
  1364. border: 1px solid #EEEEEE;
  1365. display: block;
  1366. }
  1367. .goodsName{
  1368. font-size: 28rpx;
  1369. font-family: PingFangSC-Regular, PingFang SC;
  1370. font-weight: 400;
  1371. color: #333333;
  1372. line-height: 40rpx;
  1373. text-overflow: -o-ellipsis-lastline;
  1374. overflow: hidden;
  1375. text-overflow: ellipsis;
  1376. display: -webkit-box;
  1377. -webkit-line-clamp: 2;
  1378. line-clamp: 2;
  1379. -webkit-box-orient: vertical;
  1380. }
  1381. .hotGoodsLineRIght{
  1382. padding-left: 24rpx;
  1383. }
  1384. .goodsPrice{
  1385. display: flex;
  1386. padding-top: 10rpx;
  1387. }
  1388. .goodsPrice1{
  1389. font-size: 24rpx;
  1390. font-weight: 400;
  1391. color: #FF0000;
  1392. padding-top: 8rpx;
  1393. }
  1394. .goodsPrice2{
  1395. font-size: 22rpx;
  1396. font-weight: 400;
  1397. color: #FF0000;
  1398. padding-top: 10rpx;
  1399. }
  1400. .goodsPrice3{
  1401. font-size: 32rpx;
  1402. font-weight: 500;
  1403. color: #FF0000;
  1404. }
  1405. .goodsPrice4{
  1406. font-size: 24rpx;
  1407. font-weight: 400;
  1408. color: #999999;
  1409. padding-top: 8rpx;
  1410. padding-left: 10rpx;
  1411. text-decoration:line-through;
  1412. }
  1413. .Sold{
  1414. font-weight: 400;
  1415. color: #999999;
  1416. font-size: 24rpx;
  1417. padding-top: 8rpx;
  1418. }
  1419. .jkStateImg{
  1420. width: 102rpx;
  1421. height: 53rpx;
  1422. position: relative;
  1423. }
  1424. </style>