gdpaoup
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<view class="status" v-if="orderstate">
|
||||
<view class="text">
|
||||
<view class="status-text">{{ s_object[orderstate].text }}</view>
|
||||
<view class="time" v-if="orderInfo.view_type == 1">距离结束:{{ countdown }}</view>
|
||||
<view class="time" v-if="orderInfo.view_type == 1 || orderInfo.view_type == 9">距离结束:{{ countdown }}</view>
|
||||
</view>
|
||||
<image :src="s_object[orderstate].image"></image>
|
||||
</view>
|
||||
@@ -175,7 +175,7 @@ export default {
|
||||
// console.log(spikeTime);
|
||||
if(spikeTime <= 0) {
|
||||
this.isSpike = true;
|
||||
this.spikeTime = '00:00:00'
|
||||
this.countdown = '00:00:00'
|
||||
clearInterval(this.timer);
|
||||
return false;
|
||||
};
|
||||
@@ -204,9 +204,10 @@ export default {
|
||||
}).then(res => {
|
||||
if(res.errCode == 0) {
|
||||
this.orderInfo = res.data;
|
||||
this.setSpikeTime(res.data.end_time);
|
||||
this.viewState(this.orderInfo.view_type);
|
||||
this.setTitle(this.orderInfo.view_type);
|
||||
if(res.data.view_type == 1) this.setSpikeTime(res.data.end_time);
|
||||
else if(res.data.view_type == 9) this.setSpikeTime(res.data.pintuangroup_endtime);
|
||||
}
|
||||
uni.stopPullDownRefresh(); // 结束刷新
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user