Commit d1b39fed by 高淑倩

getDetailLimitCount&&status

parent c8f142b3
...@@ -114,8 +114,17 @@ wxService.page({ ...@@ -114,8 +114,17 @@ wxService.page({
if (result.min < 10) result.min = '0' + result.min; if (result.min < 10) result.min = '0' + result.min;
if (result.hour < 10) result.hour = '0' + result.hour; if (result.hour < 10) result.hour = '0' + result.hour;
} else { } else {
const {id} = this.data const {detail, id} = this.data
this.getOrderDetail(id) console.log('status', detail.status)
if (!this.getDetailLimitCount) {
this.getDetailLimitCount = 1
} else {
this.getDetailLimitCount++
}
console.log('detail-request', this.getDetailLimitCount)
if (this.getDetailLimitCount <= 1 && detail.status == 'N') {
this.getOrderDetail(id)
}
} }
return result; return result;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment