From f5d67b69142c78be1ee996f53b6bb8e4c954761c Mon Sep 17 00:00:00 2001
From: zhouwenxuan <1175765986@qq.com>
Date: Wed, 15 Nov 2023 10:06:38 +0800
Subject: [PATCH] 页面跳转修改
---
pages/tabBar/notice/detail.vue | 34 +++++++++++++++++++++++++++++-----
1 files changed, 29 insertions(+), 5 deletions(-)
diff --git a/pages/tabBar/notice/detail.vue b/pages/tabBar/notice/detail.vue
index 45b62ed..83bc644 100644
--- a/pages/tabBar/notice/detail.vue
+++ b/pages/tabBar/notice/detail.vue
@@ -159,7 +159,8 @@
directViewUrl: '',
cityMessage: '响应措施反馈',
measureData: {},
- urls: []
+ urls: [],
+ backFlag: ''
}
},
onLoad:function(options){
@@ -231,13 +232,33 @@
if(this.unitType == 4 && this.role == '工作人员'){
this.getMeasures();
}
-
+ // this.backFlag = uni.getStorageSync('backFlag')
+ // console.log(this.backFlag,'1111')
},
methods: {
goBack() {
- uni.navigateBack({
- url:'./notice/notice'
- });
+ console.log(uni.getStorageSync('backFlag'),'1111')
+ if(uni.getStorageSync('backFlag') == 'notice'){
+ uni.switchTab({
+ url: '/pages/tabBar/notice/notice'
+ })
+ }else if (uni.getStorageSync('backFlag') == 'info') {
+ uni.switchTab({
+ url: '/pages/tabBar/information/information'
+ })
+ }else if (uni.getStorageSync('backFlag') == 'examine') {
+ uni.switchTab({
+ url: '/pages/tabBar/examine/examine'
+ })
+ }else if (uni.getStorageSync('backFlag') == 'current') {
+ uni.switchTab({
+ url: '/pages/tabBar/current/current'
+ })
+ }else if ( uni.getStorageSync('backFlag') == 'response'){
+ uni.switchTab({
+ url: '/pages/tabBar/response/response'
+ })
+ }
},
loginOut() {
uni.clearStorageSync();
@@ -262,6 +283,8 @@
},
goMeasures() {
if(this.cityMessage == '查看措施反馈' ){
+ uni.setStorageSync('backMeasures','detail')
+ this.measureData.id = this.detailData.id
uni.navigateTo({
url: `/pages/tabBar/responsivity/showMeasures?data=` + encodeURIComponent(JSON.stringify(this.measureData))
})
@@ -374,6 +397,7 @@
box-shadow: 0 3px 12px rgba(0,0,0,0.05);
}
.barText{
+ margin-left: -20px;
flex: 1;
/* margin-left: 20px; */
text-align: center;
--
Gitblit v1.9.2