测试bug反馈修复

This commit is contained in:
仲么了
2023-08-24 15:35:45 +08:00
parent 79d6771aad
commit 7c79eddc05
24 changed files with 149 additions and 112 deletions

View File

@@ -15,8 +15,11 @@
<text style="font-size: 32rpx; font-weight: 500">灿能物联</text>
</template>
<template slot="right">
<text class="hide-txt mr5" style="font-size: 28rpx">{{ select.engineeringName }}</text>
<uni-icons type="bottom" size="16" color="#111"></uni-icons>
<text class="hide-txt mr5" style="font-size: 28rpx">{{
select.engineeringName || '创建工程'
}}
</text>
<uni-icons type="bottom" size="16" color="#111" v-if="select.engineeringName"></uni-icons>
</template>
</uni-nav-bar>
<view class="index">
@@ -71,11 +74,18 @@ export default {
navTabHeight: 0
}
},
methods: {
selectEngineering() {
uni.navigateTo({
url: '/pages/home/selectEngineering',
})
if (this.select.engineeringName) {
uni.navigateTo({
url: '/pages/home/selectEngineering',
})
} else {
uni.navigateTo({
url: '/pages/engineering/new',
})
}
},
async init() {
let engineering = uni.getStorageSync('engineering')