From a987eccb27891bbfaae334b7fa0e892ee2640271 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期一, 20 四月 2026 17:20:13 +0800
Subject: [PATCH] 调接口加页面

---
 small-program/pages/mine/mine.vue |   49 +++++++++++++++++++++++++++++++++++++++++++++----
 1 files changed, 45 insertions(+), 4 deletions(-)

diff --git a/small-program/pages/mine/mine.vue b/small-program/pages/mine/mine.vue
index 6f7a3ea..61e3d55 100644
--- a/small-program/pages/mine/mine.vue
+++ b/small-program/pages/mine/mine.vue
@@ -46,9 +46,14 @@
 				</view>
 
 				<view class="menu-card section-card">
-					<view v-for="item in menuList" :key="item.label" class="menu-row">
+					<view v-for="item in menuList" :key="item.label" class="menu-row" @click="handleMenuClick(item)">
 						<text class="menu-label">{{ item.label }}</text>
-						<u-icon name="arrow-right" size="18" color="#B5BBC5"></u-icon>
+						<view class="right-icon">
+							<text v-if="item.label === '闂ㄥ簵鍏ラ┗'" :class="{ 'status-red': userInfo.shopAuditStatus === 1 || userInfo.shopAuditStatus === 2 }">
+								{{ userInfo.shopAuditStatus === 0 ? '瀹℃牳涓�' : userInfo.shopAuditStatus === 1 ? '瀹℃牳閫氳繃锛岃鏀粯鎶奸噾' : userInfo.shopAuditStatus === 2 ? '瀹℃牳鏈�氳繃' : '鐢宠鍏ラ┗' }}
+							</text>
+							<u-icon name="arrow-right" size="18" color="#B5BBC5"></u-icon>
+						</view>
 					</view>
 				</view>
 			</view>
@@ -82,13 +87,34 @@
 	},
 	async onShow() {
 		await this.$onLaunched
-		this.getOrderNum()
+		if (this.userInfo) {
+			this.getOrderNum()
+		}
 	},
 	methods: {
 		toAllOrders() {
 			uni.navigateTo({
 				url: '/pages/orders/orders'
 			})
+		},
+		handleMenuClick(item) {
+			const urlMap = {
+				'闂ㄥ簵鍏ラ┗': '/pages/store-apply/store-apply',
+				'鎴戠殑闂ㄥ簵': '/pages/store-home/store-home',
+				'瑙勮寖椤荤煡': '/pages/rich-text/rich-text?type=serverIntroduce',
+				'鍏充簬鎴戜滑': '/pages/rich-text/rich-text?type=about'
+			}
+			if (item.label === '闂ㄥ簵鍏ラ┗' && [0,1,2].includes(this.userInfo.shopAuditStatus)) {
+				uni.navigateTo({
+					url: '/pages/details-entry/details-entry'
+				})
+				return
+			}
+			if (urlMap[item.label]) {
+				uni.navigateTo({
+					url: urlMap[item.label]
+				})
+			}
 		},
 		toOrderDetail(label) {
 			uni.navigateTo({
@@ -128,7 +154,7 @@
 						if (res.code === 200) {
 							that.$u.api.wxAuthPhone({
 								code: e.detail.code,
-								openid: 'oKKHU5IFKpss_DIbFX1lqghFJOEg'
+								openid: res.data.openid
 							}).then(res => {
 								if (res.code === 200) {
 									that.$store.commit('setUserInfo', res.data.member)
@@ -354,4 +380,19 @@
 		font-size: 30rpx;
 		color: #222222;
 	}
+
+	.right-icon {
+		display: flex;
+		align-items: center;
+		gap: 4rpx;
+		text {
+			font-weight: 400;
+			font-size: 24rpx;
+			color: #10B2FA;
+			margin-right: 20rpx;
+		}
+		.status-red {
+			color: #FF0000;
+		}
+	}
 </style>

--
Gitblit v1.9.3