|
@@ -37,6 +37,8 @@
|
|
|
:hour="ls.stopTimeH"
|
|
:hour="ls.stopTimeH"
|
|
|
:minute="ls.stopTimeM"
|
|
:minute="ls.stopTimeM"
|
|
|
:second="ls.stopTimeS"
|
|
:second="ls.stopTimeS"
|
|
|
|
|
+ :index="index"
|
|
|
|
|
+ @timeover="isTime"
|
|
|
></uni-countdown></view>
|
|
></uni-countdown></view>
|
|
|
</view>
|
|
</view>
|
|
|
<!-- <view class="cell-info flex">
|
|
<!-- <view class="cell-info flex">
|
|
@@ -89,8 +91,11 @@ export default {
|
|
|
if (ar.status === 0) {
|
|
if (ar.status === 0) {
|
|
|
// 计算倒计时时间
|
|
// 计算倒计时时间
|
|
|
obj.timeComputed(ar.mining_start_time * 1000, ar);
|
|
obj.timeComputed(ar.mining_start_time * 1000, ar);
|
|
|
|
|
+ console.log(ar.stopTimeD)
|
|
|
} else {
|
|
} else {
|
|
|
|
|
+ console.log('++++++++++')
|
|
|
// 获取距离开始还需要多少时间
|
|
// 获取距离开始还需要多少时间
|
|
|
|
|
+ if( ar.time){
|
|
|
let arTime = ar.time.split(':');
|
|
let arTime = ar.time.split(':');
|
|
|
let h = arTime[0];
|
|
let h = arTime[0];
|
|
|
let m = arTime[1];
|
|
let m = arTime[1];
|
|
@@ -98,7 +103,7 @@ export default {
|
|
|
// 设置时间
|
|
// 设置时间
|
|
|
time.setHours(h, m, 0);
|
|
time.setHours(h, m, 0);
|
|
|
// 计算倒计时时间
|
|
// 计算倒计时时间
|
|
|
- obj.timeComputed(time.getTime(), ar);
|
|
|
|
|
|
|
+ obj.timeComputed(time.getTime(), ar);}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
return e;
|
|
return e;
|
|
@@ -115,6 +120,9 @@ export default {
|
|
|
ar.stopTimeH = stopTime.hours;
|
|
ar.stopTimeH = stopTime.hours;
|
|
|
ar.stopTimeM = stopTime.minutes;
|
|
ar.stopTimeM = stopTime.minutes;
|
|
|
ar.stopTimeS = stopTime.seconds;
|
|
ar.stopTimeS = stopTime.seconds;
|
|
|
|
|
+ },
|
|
|
|
|
+ isTime(index) {
|
|
|
|
|
+ this.list[index].status = 1
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|