index.vue 37 KB

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