From 00a7a61df86db969f2ba61c508d02ba4709ce3d4 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期五, 05 六月 2026 10:09:06 +0800
Subject: [PATCH] 改bug

---
 app/pages/mine/mine.vue |   99 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 98 insertions(+), 1 deletions(-)

diff --git a/app/pages/mine/mine.vue b/app/pages/mine/mine.vue
index 000c9e7..37f55de 100644
--- a/app/pages/mine/mine.vue
+++ b/app/pages/mine/mine.vue
@@ -70,6 +70,22 @@
 		<view class="mine-page__footer">
 			<button class="mine-page__logout" hover-class="mine-page__logout--hover" @click.stop="handleLogout">閫�鍑虹櫥褰�</button>
 		</view>
+
+		<u-popup :show="showPlatformPopup" mode="bottom" round="24" :closeable="true" @close="showPlatformPopup = false">
+			<view class="platform-popup">
+				<view class="platform-popup__title">鑱旂郴骞冲彴</view>
+				<view
+					v-for="(phone, index) in serverPhoneList"
+					:key="index"
+					class="platform-popup__item"
+					@click="handlePlatformCall(phone)"
+				>
+					<image class="platform-popup__icon" src="/static/image/ic_call@2x.png" mode="aspectFit"></image>
+					<text class="platform-popup__text">{{ phone }}</text>
+				</view>
+				<view v-if="!platformPhoneList.length" class="platform-popup__empty">鏆傛棤骞冲彴鑱旂郴鐢佃瘽</view>
+			</view>
+		</u-popup>
 	</view>
 </template>
 
@@ -82,6 +98,9 @@
 				navHeight: 0,
 				useVerifiedState: true,
 				serverPhone: '',
+				serverPhone1: '',
+				showPlatformPopup: false,
+				platformPhoneList: [],
 				appVersion: 'V1.0.0',
 				menuList: [
 					{ key: 'wallet', title: '鎴戠殑閽卞寘' },
@@ -89,12 +108,13 @@
 					{ key: 'reward', title: '濂栧姳澶у巺' },
 					{ key: 'revenue', title: '钀ユ敹鍒嗘瀽' },
 					{ key: 'agreementPrivacy', title: '鍙告満闅愮鏀跨瓥', type: 'driverPrivacyPolicy' },
-					{ key: 'agreementErrandLuggage', title: '璺戣吙杞︿富琛屾潕瀵勫瓨椤荤煡', type: 'errandLuggageStorageNotice' },
+					{ key: 'agreementErrandLuggage', title: '璺戣吙杈句汉琛屾潕瀵勫瓨椤荤煡', type: 'errandLuggageStorageNotice' },
 					{ key: 'agreementErrandService', title: '璺戣吙杈句汉鏈嶅姟鍗忚', type: 'errandServiceAgreement' },
 					{ key: 'agreementErrandRisk', title: '璺戣吙杈句汉椋庨櫓鎵胯', type: 'errandRiskCommitment' },
 					{ key: 'agreementOwnerLuggage', title: '骞冲彴杞︿富琛屾潕瀵勫瓨椤荤煡', type: 'ownerLuggageStorageNotice' },
 					{ key: 'agreementOwnerService', title: '骞冲彴杞︿富鏈嶅姟鍗忚', type: 'ownerServiceAgreement' },
 					{ key: 'agreementOwnerRisk', title: '骞冲彴杞︿富椋庨櫓鎵胯', type: 'ownerRiskCommitment' },
+					{ key: 'platform', title: '鑱旂郴骞冲彴' },
 					{ key: 'help', title: '鑱旂郴瀹㈡湇' },
 					{ key: 'setting', title: '璁剧疆' }
 				],
@@ -131,6 +151,10 @@
 				return {
 					marginTop: this.navHeight + 'px'
 				}
+			},
+			serverPhoneList() {
+				if (!this.serverPhone) return []
+				return this.serverPhone.split(',')
 			}
 		},
 		onLoad() {
@@ -140,6 +164,7 @@
 			if (plus.runtime && plus.runtime.version) {
 				this.appVersion = 'V' + plus.runtime.version
 			}
+			this.getContactInfo()
 		},
 		onShow() {
 			this.getStats()
@@ -147,10 +172,29 @@
 			this.getServerPhone()
 		},
 		methods: {
+			async getContactInfo() {
+				const res = await this.$u.api.getPlatformAboutUs({})
+				console.log(res,"====================")
+				if (res.code === 200) {
+					this.serverPhone1 = res.data.serverPhone || ''
+				}
+			},
+			formatPhoneList(phoneText) {
+				if (!phoneText) {
+					return []
+				}
+				return Array.from(new Set(
+					String(phoneText)
+						.split(/[\n,锛屻��;锛沑s]+/)
+						.map(item => item.trim())
+						.filter(item => item && /\d/.test(item))
+				))
+			},
 			getServerPhone() {
 				this.$u.api.getPlatformAboutUs().then(res => {
 					if (res.code === 200 && res.data) {
 						this.serverPhone = res.data.serverPhone || ''
+						this.platformPhoneList = this.formatPhoneList(this.serverPhone)
 					}
 				})
 			},
@@ -214,6 +258,12 @@
 					uni.navigateTo({
 						url: `/pages/agreement/agreement?type=${item.type}&title=${encodeURIComponent(item.title)}`
 					})
+				} else if (item.key === 'platform') {
+					if (this.platformPhoneList.length) {
+						this.showPlatformPopup = true
+					} else {
+						uni.showToast({ title: '骞冲彴鑱旂郴鐢佃瘽鑾峰彇澶辫触', icon: 'none' })
+					}
 				} else if (item.key === 'help') {
 					if (this.serverPhone) {
 						uni.makePhoneCall({
@@ -223,6 +273,14 @@
 						uni.showToast({ title: '瀹㈡湇鐢佃瘽鑾峰彇澶辫触', icon: 'none' })
 					}
 				}
+			},
+			handlePlatformCall(phone) {
+				if (!phone) {
+					return
+				}
+				uni.makePhoneCall({
+					phoneNumber: phone
+				})
 			},
 			handleLogout() {
 				uni.showToast({ title: '閫�鍑轰腑...', icon: 'loading' })
@@ -481,4 +539,43 @@
 			}
 		}
 	}
+
+	.platform-popup {
+		padding: 44rpx 32rpx calc(env(safe-area-inset-bottom) + 36rpx);
+
+		&__title {
+			font-size: 34rpx;
+			font-weight: 700;
+			color: #2b3139;
+			text-align: center;
+			margin-bottom: 32rpx;
+		}
+
+		&__item {
+			display: flex;
+			align-items: center;
+			padding: 24rpx 0;
+			border-bottom: 1rpx solid #eef1f5;
+		}
+
+		&__icon {
+			width: 36rpx;
+			height: 36rpx;
+			margin-right: 20rpx;
+			flex-shrink: 0;
+		}
+
+		&__text {
+			font-size: 30rpx;
+			color: #2b3139;
+			line-height: 42rpx;
+		}
+
+		&__empty {
+			padding: 24rpx 0;
+			font-size: 28rpx;
+			color: #8f96a3;
+			text-align: center;
+		}
+	}
 </style>

--
Gitblit v1.9.3