From 34543971457e9e00346afeec14c5aa857f7d4387 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期三, 29 四月 2026 12:04:29 +0800
Subject: [PATCH] 小程序改bug

---
 small-program/pages/mine/mine.vue |   52 ++++++++++++++++++++++++++++++++++++++++++++--------
 1 files changed, 44 insertions(+), 8 deletions(-)

diff --git a/small-program/pages/mine/mine.vue b/small-program/pages/mine/mine.vue
index c27aff3..6d5b895 100644
--- a/small-program/pages/mine/mine.vue
+++ b/small-program/pages/mine/mine.vue
@@ -16,10 +16,10 @@
 						<view class="tool-item" @click="toSetting">
 							<image class="tool-icon" src="/static/icon/ic_option@2x.png" mode="aspectFit"></image>
 						</view>
-						<view class="tool-item has-badge">
+						<!-- <view class="tool-item has-badge">
 							<image class="tool-icon" src="/static/icon/ic_notice@2x.png" mode="aspectFit"></image>
 							<view class="tool-badge" v-if="userInfo.hasMessage"></view>
-						</view>
+						</view> -->
 					</view>
 				</view>
 
@@ -49,9 +49,10 @@
 						<text class="menu-label">{{ item.label }}</text>
 						<view class="right-icon">
 							<text v-if="['闂ㄥ簵鍏ラ┗','闂ㄥ簵淇℃伅'].includes(item.label)" :class="{ 'status-red': userInfo.shopAuditStatus === 1 || userInfo.shopAuditStatus === 2 }">
-								{{ userInfo.shopAuditStatus === 0 ? '瀹℃牳涓�' : userInfo.shopAuditStatus === 1 ? '瀹℃牳閫氳繃锛岃鏀粯鎶奸噾' : userInfo.shopAuditStatus === 2 ? '瀹℃牳鏈�氳繃' : userInfo.shopAuditStatus === 3 ? '闂ㄥ簵宸插叆椹�' : '' }}
+								{{userInfo.shopAuditStatus === 0 ? '瀹℃牳涓�' : userInfo.shopAuditStatus === 1 ? '瀹℃牳閫氳繃锛岃鏀粯鎶奸噾' : userInfo.shopAuditStatus === 2 ? '瀹℃牳鏈�氳繃' : userInfo.shopAuditStatus === 3 ? '闂ㄥ簵宸插叆椹�' : '' }}
 							</text>
-							<u-icon name="arrow-right" size="18" color="#B5BBC5"></u-icon>
+							<button  v-if="item.label === '鍦ㄧ嚎瀹㈡湇'" open-type="contact" type="default">    </button>
+							<u-icon   name="arrow-right" size="18" color="#B5BBC5"></u-icon>
 						</view>
 					</view>
 				</view>
@@ -90,11 +91,21 @@
 			menuList: [
 				{ label: '闂ㄥ簵鍏ラ┗' },
 				{ label: '鎴戠殑闂ㄥ簵' },
-				{ label: '瑙勮寖椤荤煡' },
+				{ label: '鐢ㄦ埛鏈嶅姟鍗忚' },
+				{ label: '鐢ㄦ埛闅愮鏀跨瓥' },
 				{ label: '鍦ㄧ嚎瀹㈡湇' },
 				{ label: '鍏充簬鎴戜滑' }
 			]
 		}
+	},
+	onLoad() {
+		uni.$on('loginOut', () => {
+			this.orderMenus = [
+				{ label: '寰呮敮浠�', url: '/static/icon/mine_ic_daifukuan@2x.png', badge: 0,status:0 },
+				{ label: '寰呮敹璐�', url: '/static/icon/mine_ic_daishouhuo@2x.png', badge: 0,status:3 },
+				{ label: '閫�娆�/鍞悗', url: '/static/icon/mine_ic_tuikuan@2x.png', badge: 0 ,status:5}
+			]
+		})
 	},
 	async onShow() {
 		await this.$onLaunched;
@@ -129,8 +140,15 @@
 			const urlMap = {
 				'闂ㄥ簵鍏ラ┗': '/pages/store-apply/store-apply',
 				'鎴戠殑闂ㄥ簵': '/shop/pages/login/login',
-				'瑙勮寖椤荤煡': '/pages/rich-text/rich-text?type=serverIntroduce',
-				'鍏充簬鎴戜滑': '/pages/rich-text/rich-text?type=about'
+				'鐢ㄦ埛鏈嶅姟鍗忚': '/pages/rich-text/rich-text?type=0',
+				'鐢ㄦ埛闅愮鏀跨瓥': '/pages/rich-text/rich-text?type=1',
+				'鍏充簬鎴戜滑': '/pages/rich-text/rich-text?type=5' 
+			}
+			if (['闂ㄥ簵鍏ラ┗', '鎴戠殑闂ㄥ簵'].includes(item.label)) {
+				if (!this.token) {
+					this.showAuthLogin = true
+					return
+				}
 			}
 			if (['闂ㄥ簵鍏ラ┗','闂ㄥ簵淇℃伅'].includes(item.label) && [0,1,2,3].includes(this.userInfo.shopAuditStatus)) {
 				uni.navigateTo({
@@ -138,19 +156,27 @@
 				})
 				return
 			}
-			if (urlMap[item.label]) {
+			if (item.label!=='鍦ㄧ嚎瀹㈡湇' && urlMap[item.label]) {
 				uni.navigateTo({
 					url: urlMap[item.label]
 				})
 			}
 		},
 		toOrderDetail(label) {
+			if (!this.token) {
+				this.showAuthLogin = true
+				return
+			}
 			uni.setStorageSync("orderStatus",label===0?-2:label)
 			uni.switchTab({
 				url: '/pages/itinerary/itinerary'
 			})
 		},
 		toSetting() {
+			if (!this.token) {
+				this.showAuthLogin = true
+				return
+			}
 			uni.navigateTo({
 				url: '/pages/settings/settings'
 			})
@@ -409,5 +435,15 @@
 		.status-red {
 			color: #FF0000;
 		}
+		button {
+			position: relative;
+			top: 0;
+			float:right;
+			right:  0;
+			width: 200rpx;
+			height: 48rpx;
+			opacity: 0;
+			z-index: 9999;
+		}
 	}
 </style>

--
Gitblit v1.9.3