From e97cbd81486e8737d66855faa8be109bd114c022 Mon Sep 17 00:00:00 2001
From: 马宇豪 <978517621@qq.com>
Date: 星期三, 24 七月 2024 17:30:46 +0800
Subject: [PATCH] 提交
---
pages/tabBar/examine/examine.vue | 17 +++++++++++++++--
1 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/pages/tabBar/examine/examine.vue b/pages/tabBar/examine/examine.vue
index 203062d..840758d 100644
--- a/pages/tabBar/examine/examine.vue
+++ b/pages/tabBar/examine/examine.vue
@@ -7,8 +7,11 @@
<!-- 真正的导航栏内容 -->
<view style="display: flex; flex-direction: column;" >
<view class="navBar">
- <u-icon style=" margin-left: -25px;" name="arrow-left" color="black" size="17" @click="goBack" />
+ <u-icon style=" margin-left: 13px;" name="arrow-left" color="black" size="17" @click="goBack" />
<view class="barText">工作通知审核</view>
+ <view >
+ <u-button type="text" @click="loginOut" style="color: #1890ff;margin-right: 5px;width: 65px;">退出</u-button>
+ </view>
</view>
</view>
</view>
@@ -134,6 +137,13 @@
this.getExanineList();
},
methods: {
+ loginOut() {
+ uni.clearStorageSync();
+ uni.clearStorage();
+ uni.navigateTo({
+ url: '/pages/index/index'
+ })
+ },
goBack() {
console.log("1111")
uni.switchTab({
@@ -186,6 +196,8 @@
},
toDetail(item) {
console.log("item",item)
+ uni.setStorageSync('backFlag','examine');
+ console.log("uunget",uni.getStorageSync('backFlag'))
uni.navigateTo({
url: `/pages/tabBar/notice/detail?data=` + encodeURIComponent(JSON.stringify(item))
})
@@ -196,7 +208,7 @@
setTimeout(() => {
uni.stopPullDownRefresh();
this.getExanineList();
- }, 1000);
+ }, 2000);
},
clickSwitch(e) {
this.getExanineList();
@@ -249,6 +261,7 @@
box-shadow: 0 3px 12px rgba(0,0,0,0.05);
}
.barText{
+ margin-left: 20px;
text-align: center;
width: 85%;
font-size: 16px;
--
Gitblit v1.9.2