_this.timer = setInterval(() => {
const now_time = (new Date()).valueOf();
const second = parseInt((now_time - parseInt(_this.start_t)) / 1000);
if (second < _this.INTERVAL) {
count = _this.LOW_BASE * second + second % this.LOW_REAMIN;
} else {
count = _this.UPPER_BASE + (second - _this.INTERVAL) * _this.UPPER_REAMIN + second % _this.UPPER_REAMIN;
}
if (count < _this.HALF_LIMIT) {
showText = `${count}`;
} else if (count >= _this.HALF_LIMIT && count <= _this.UPPER_LIMIT) {
showText = `${(count / 10000).toFixed(1)}万`;
} else {
showText = '100万+';
}
_this.setData({
countText: showText,
});
}, 1000);
请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。