Browse Source

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

优化用户体验,缩短成功操作后的等待时间,使页面导航响应更快
master
前端-胡立永 16 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({ uni.switchTab({
url:"/pages/home/index" url:"/pages/home/index"
}) })
},1500)
},800)
}).catch(error=>{ }).catch(error=>{
// uni.$u.toast("") // uni.$u.toast("")
setTimeout(()=>{ setTimeout(()=>{
uni.switchTab({ uni.switchTab({
url:"/pages/home/index" url:"/pages/home/index"
}) })
},1500)
},800)
}) })
}, },


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


Loading…
Cancel
Save