From 8a899e63502939dbf034b90ba46741e0faa9023c Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期五, 08 五月 2026 18:49:32 +0800
Subject: [PATCH] 管理端bug修改
---
small-program/pages/mine/mine.vue | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/small-program/pages/mine/mine.vue b/small-program/pages/mine/mine.vue
index 6d5b895..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,11 +96,13 @@
{ 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 },
@@ -125,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
@@ -144,6 +154,14 @@
'鐢ㄦ埛闅愮鏀跨瓥': '/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) {
this.showAuthLogin = true
--
Gitblit v1.9.3