接口节流优化
This commit is contained in:
@@ -46,6 +46,7 @@ export default {
|
||||
onLoad(options) {
|
||||
this.options = options
|
||||
this.engineeringList = uni.getStorageSync('engineeringList')
|
||||
this.userInfo = uni.getStorageSync(this.$cacheKey.userInfo)
|
||||
},
|
||||
onShow() {
|
||||
queryEngineering().then(res => {
|
||||
@@ -53,9 +54,16 @@ export default {
|
||||
})
|
||||
},
|
||||
onNavigationBarButtonTap(e) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/engineering/new',
|
||||
})
|
||||
if (this.userInfo.authorities === 'app_vip_user' || this.userInfo.authorities === 'engineering_user') {
|
||||
uni.navigateTo({
|
||||
url: `/pages/engineering/new`,
|
||||
})
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: '暂无权限',
|
||||
icon: 'none',
|
||||
})
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
confirm(e) {
|
||||
|
||||
Reference in New Issue
Block a user