|
@@ -196,7 +196,7 @@
|
|
|
<view class="left-image">
|
|
|
<p>充电免服务费包月卡</p>
|
|
|
<view class="time-activities">
|
|
|
- 限时活动 <text class="time">127:59:59</text>
|
|
|
+ 限时活动 <text class="time">{{description}}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="right-image" v-if="activityList.length > 0">
|
|
@@ -298,6 +298,7 @@
|
|
|
value: '长辈模式',
|
|
|
elderStatus: false,
|
|
|
fontMode: '',
|
|
|
+ description: ''
|
|
|
}
|
|
|
},
|
|
|
onLoad(op) {
|
|
@@ -365,8 +366,19 @@
|
|
|
this.getPointTimeOut();
|
|
|
this.getNewsList();
|
|
|
this.getActivityInfoList();
|
|
|
+ this.getDescriptionTime();
|
|
|
},
|
|
|
methods: {
|
|
|
+ getDescriptionTime() {
|
|
|
+ var data = new Date().getMonth();
|
|
|
+ console.log(data)
|
|
|
+ var dataTime2=new Date('2022-07-25 16:20:00').getTime()
|
|
|
+ var c=hourDistanceArr(new Date(),new Date(dataTime2+2*60*60*1000))
|
|
|
+ this.description= c[0]+':'+c[1]+':'+c[2];
|
|
|
+ // setTimeout(()=>{
|
|
|
+ // this.getDescriptionTime();
|
|
|
+ // },1000)
|
|
|
+ },
|
|
|
getUserInfo() {
|
|
|
uni.showLoading({
|
|
|
title: "加载中",
|