index.vue 37 KB

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