...
|
...
|
@@ -303,7 +303,6 @@ Page( |
|
|
let product = r1.data;
|
|
|
|
|
|
this._getMineCode(product.id);
|
|
|
|
|
|
this._formatCountdownTime(product.remaining);
|
|
|
|
|
|
this.setData({
|
...
|
...
|
@@ -341,10 +340,11 @@ Page( |
|
|
}
|
|
|
remaining--;
|
|
|
const formatTimeList = fomartCountdownTime(remaining);
|
|
|
const isCountdownEnd = formatTimeList.join('') === '000000';
|
|
|
this.setData({
|
|
|
formatTimeList,
|
|
|
timeId,
|
|
|
isCountdownEnd: formatTimeList.join('') === '000000',
|
|
|
timeId: isCountdownEnd ? null: timeId,
|
|
|
isCountdownEnd,
|
|
|
});
|
|
|
}, 1000);
|
|
|
},
|
...
|
...
|
|