From 33caf2bb79bb3c561916c91ae386ec772411e2e8 Mon Sep 17 00:00:00 2001
From: rk <94314517@qq.com>
Date: 星期一, 11 五月 2026 18:21:50 +0800
Subject: [PATCH] 代码生成
---
small-program/pages/mine/mine.vue | 31 +++++++++++++++++++++++++++++++
1 files changed, 31 insertions(+), 0 deletions(-)
diff --git a/small-program/pages/mine/mine.vue b/small-program/pages/mine/mine.vue
index 2ece09a..816cd39 100644
--- a/small-program/pages/mine/mine.vue
+++ b/small-program/pages/mine/mine.vue
@@ -62,6 +62,7 @@
<auth-login
:show="showAuthLogin"
:checked.sync="agreeChecked"
+ @success="getOrderNum"
@close="showAuthLogin = false" />
<custom-tabbar></custom-tabbar>
</view>
@@ -83,6 +84,7 @@
showAuthLogin: false,
agreeChecked: true,
userName: '',
+ serverPhone: '',
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 },
@@ -94,9 +96,20 @@
{ label: '鐢ㄦ埛鏈嶅姟鍗忚' },
{ label: '鐢ㄦ埛闅愮鏀跨瓥' },
{ label: '鍦ㄧ嚎瀹㈡湇' },
+ { label: '鑱旂郴骞冲彴' },
{ label: '鍏充簬鎴戜滑' }
]
}
+ },
+ onLoad() {
+ this.getPlatformInfo()
+ 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;
@@ -116,6 +129,12 @@
}
},
methods: {
+ async getPlatformInfo() {
+ const res = await this.$u.api.getPlatformAboutUs({})
+ if (res.code === 200 && res.data) {
+ this.serverPhone = res.data.serverPhone || ''
+ }
+ },
handleProfileClick() {
if (this.token) {
return
@@ -134,6 +153,14 @@
'鐢ㄦ埛鏈嶅姟鍗忚': '/pages/rich-text/rich-text?type=0',
'鐢ㄦ埛闅愮鏀跨瓥': '/pages/rich-text/rich-text?type=1',
'鍏充簬鎴戜滑': '/pages/rich-text/rich-text?type=5'
+ }
+ if (item.label === '鑱旂郴骞冲彴') {
+ if (this.serverPhone) {
+ uni.makePhoneCall({
+ phoneNumber: this.serverPhone
+ })
+ }
+ return
}
if (['闂ㄥ簵鍏ラ┗', '鎴戠殑闂ㄥ簵'].includes(item.label)) {
if (!this.token) {
@@ -154,6 +181,10 @@
}
},
toOrderDetail(label) {
+ if (!this.token) {
+ this.showAuthLogin = true
+ return
+ }
uni.setStorageSync("orderStatus",label===0?-2:label)
uni.switchTab({
url: '/pages/itinerary/itinerary'
--
Gitblit v1.9.3