Browse Source

perf: 减少成功操作后的导航延迟时间从1500ms到800ms

优化用户体验,缩短成功操作后的等待时间,使页面导航响应更快
master
前端-胡立永 4 hours ago
parent
commit
af52f75fe4
9 changed files with 17 additions and 17 deletions
  1. +2
    -2
      pages_subpack/business-settled/component/enterprise.vue
  2. +2
    -2
      pages_subpack/business-settled/component/person.vue
  3. +2
    -2
      pages_subpack/enterprise/index.vue
  4. +1
    -1
      pages_subpack/feedback/index.vue
  5. +1
    -1
      pages_subpack/hire/order-list.vue
  6. +4
    -4
      pages_subpack/person/index.vue
  7. +1
    -1
      pages_subpack/release/component/enterprise.vue
  8. +1
    -1
      pages_subpack/release/component/master.vue
  9. +3
    -3
      pages_subpack/resume/index.vue

+ 2
- 2
pages_subpack/business-settled/component/enterprise.vue View File

@ -195,14 +195,14 @@
uni.switchTab({
url:"/pages/home/index"
})
},1500)
},800)
}).catch(error=>{
// uni.$u.toast("")
setTimeout(()=>{
uni.switchTab({
url:"/pages/home/index"
})
},1500)
},800)
})
},


+ 2
- 2
pages_subpack/business-settled/component/person.vue View File

@ -188,13 +188,13 @@
uni.switchTab({
url:"/pages/home/index"
})
},1500)
},800)
}).catch(error=>{
setTimeout(()=>{
uni.switchTab({
url:"/pages/home/index"
})
},1500)
},800)
})
},


+ 2
- 2
pages_subpack/enterprise/index.vue View File

@ -284,7 +284,7 @@
// uni.navigateBack({
// delta:1
// })
// },1500)
// },800)
// }).catch(error=>{
// })
@ -304,7 +304,7 @@
url:"/pages/home/index"
})
}
},1500)
},800)
}).catch(error=>{
})


+ 1
- 1
pages_subpack/feedback/index.vue View File

@ -116,7 +116,7 @@
uni.$u.toast("提交成功!")
setTimeout(()=>{
uni.navigateBack(-1)
},1500)
},800)
}).catch(error=>{
})


+ 1
- 1
pages_subpack/hire/order-list.vue View File

@ -202,7 +202,7 @@
//
setTimeout(() => {
uni.navigateBack();
}, 1500);
}, 800);
} else {
uni.showToast({
title: response.message || '操作失败',


+ 4
- 4
pages_subpack/person/index.vue View File

@ -302,7 +302,7 @@
// uni.navigateBack({
// delta:1
// })
// },1500)
// },800)
// }).catch(error=>{
// })
@ -326,7 +326,7 @@
})
}
}, 1000)
}, 1500)
}, 800)
} else {
setTimeout(()=>{
//
@ -341,7 +341,7 @@
url:"/pages/home/index"
})
}
},1500)
},800)
}
}).catch(error => {
//
@ -349,7 +349,7 @@
uni.switchTab({
url:"/pages/home/index"
})
},1500)
},800)
})
}).catch(error=>{


+ 1
- 1
pages_subpack/release/component/enterprise.vue View File

@ -486,7 +486,7 @@
uni.navigateBack({
delta:1
})
},1500)
},800)
}).catch(error=>{
})


+ 1
- 1
pages_subpack/release/component/master.vue View File

@ -435,7 +435,7 @@
uni.navigateBack({
delta:1
})
},1500)
},800)
}).catch(error=>{
})


+ 3
- 3
pages_subpack/resume/index.vue View File

@ -335,7 +335,7 @@
delta:1
})
}
},1500)
},800)
}).catch(error=>{
})
@ -369,13 +369,13 @@
url:"/pages/home/index"
})
}
},1500)
},800)
}).catch(error => {
setTimeout(()=>{
uni.switchTab({
url:"/pages/home/index"
})
},1500)
},800)
})
}
},


Loading…
Cancel
Save