From cb4fd10ca1a71b908c8b52eba962b3aa39008d1f Mon Sep 17 00:00:00 2001
From: linwe <872216996@qq.com>
Date: Thu, 16 May 2024 15:28:01 +0800
Subject: [PATCH] 校园安全优化
---
subPackage/school/trouble.vue | 36 +++++++++++++++++++-----------------
1 files changed, 19 insertions(+), 17 deletions(-)
diff --git a/subPackage/school/trouble.vue b/subPackage/school/trouble.vue
index 344face..e216492 100644
--- a/subPackage/school/trouble.vue
+++ b/subPackage/school/trouble.vue
@@ -85,30 +85,32 @@
},
onLoad(option) {
if (option.type) {
+ uni.setStorageSync("troubleType", option.type)
this.info.type = option.type
- if (option.type == 1) {
- uni.setNavigationBarTitle({
- title: '安全隐患' // 设置为你想要显示的标题
- });
+ }
+ if (uni.getStorageSync('troubleType')) {
+ this.info.type = uni.getStorageSync('troubleType')
+ }
+ if (this.info.type == 1) {
+ uni.setNavigationBarTitle({
+ title: '安全隐患' // 设置为你想要显示的标题
+ });
- } else {
- uni.setNavigationBarTitle({
- title: '纠纷矛盾排查' // 设置为你想要显示的标题
- });
- }
-
+ } else {
+ uni.setNavigationBarTitle({
+ title: '纠纷矛盾排查' // 设置为你想要显示的标题
+ });
}
this.getAllBizDict()
},
- // onShow() {
- // this.curSelectSite = uni.getStorageSync('siteInfo')
- // this.info.addressCode = this.curSelectSite.houseCode
- // },
+ onShow() {
+ if (uni.getStorageSync('troubleType')) {
+ this.info.type = uni.getStorageSync('troubleType')
+ }
+ // this.info.addressCode = this.curSelectSite.houseCode
+ },
methods: {
-
async getAllBizDict() {
-
-
await this.getBizDict('hiddenDangerType', this.troubleTypeList);
},
--
Gitblit v1.9.3