Commit 0cf3b2be authored by qipeng's avatar qipeng

1.订单详情排号刷新时间修改

2.订单列表加载LOAD显示,查询刷新列表
parent ceef740d
......@@ -554,6 +554,7 @@ export default {
imgUrlListType:false,
imagePath:'',//图片接受地址
imgTypeShow:true,//是否展示图片
sortRefreshNew:null,//当前时间
}
},
onShow() {
......@@ -727,9 +728,16 @@ export default {
}
if(this.orderInfo.isFetch==1){//isFetch==1需要排队
this.getSortInfo()
var sortRefresh = new Date().getTime()
this.sortRefreshNew = JSON.parse(JSON.stringify(sortRefresh))
this.timer2=setInterval(()=>{
var sortRefresh2 = new Date().getTime()
var sorNum = sortRefresh2-this.sortRefreshNew
if(sorNum>=120000){
this.sortRefreshNew = JSON.parse(JSON.stringify(sortRefresh2))
this.getSortInfo()
},1000*120)
}
},1000)
// this.$once('hook:beforeDestroy',()=>{
// clearInterval(timer)
// })
......
......@@ -498,9 +498,10 @@ export default {
this.queryLoad=false
if(res.code=='00'){
this.phoneQuery=false
uni.navigateTo({
url: '/pages/my/order/productList/productList'
})
// uni.navigateTo({
// url: '/pages/my/order/productList/productList'
// })
this.getData(1)
}else{
this.$refs.uToast.show({
title: res.message,
......@@ -512,6 +513,10 @@ export default {
},
getData(flag){//获取订单列表
this.nodataShow = false
//显示加载框
uni.showLoading({
title: '加载中'
})
if(this.isTrue){
this.isTrue = false
if(this.orderStatus=='2'){//点击的待使用
......@@ -586,6 +591,9 @@ export default {
}
}
})
//隐藏加载框
uni.hideLoading()
}else{
this.$refs.uToast.show({
title: '暂无订单信息',
......
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