问题反馈修改

This commit is contained in:
仲么了
2023-08-29 16:14:09 +08:00
parent 7c79eddc05
commit 38b827af46
23 changed files with 330 additions and 144 deletions

View File

@@ -16,7 +16,7 @@
</template>
<template slot="right">
<text class="hide-txt mr5" style="font-size: 28rpx">{{
select.engineeringName || '创建工程'
select.engineeringName || emptyEngineeringName
}}
</text>
<uni-icons type="bottom" size="16" color="#111" v-if="select.engineeringName"></uni-icons>
@@ -74,7 +74,17 @@ export default {
navTabHeight: 0
}
},
computed: {
emptyEngineeringName() {
if (this.userInfo.authorities === 'tourist') {
return '创建工程'
} else if (this.userInfo.authorities === 'market_user') {
return '请联系管理员配置工程'
} else {
return '创建工程'
}
}
},
methods: {
selectEngineering() {
if (this.select.engineeringName) {
@@ -82,6 +92,17 @@ export default {
url: '/pages/home/selectEngineering',
})
} else {
if(this.userInfo.authorities === 'tourist'){
return uni.showToast({
title: '此功能仅对VIP用户开放',
icon: 'none',
})
}else if(this.userInfo.authorities === 'market_user'){
return uni.showToast({
title: '请联系管理员配置工程',
icon: 'none',
})
}
uni.navigateTo({
url: '/pages/engineering/new',
})
@@ -95,6 +116,8 @@ export default {
if (this.engineeringList.length === 0) {
console.log('没有工程')
uni.removeStorageSync(this.$cacheKey.engineering)
this.select.engineeringName = ''
this.select.engineeringId = ''
this.projectList = []
} else {
if (!engineering) {