From e9a7cddce776382916e975402986144a88899ac5 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期四, 14 五月 2026 18:29:14 +0800
Subject: [PATCH] Merge branch 'master' of http://139.186.142.91:10010/r/productDev/gtzxinglijicun
---
small-program/pages/mine/mine.vue | 40 +++++++++++++++++++++++++++++++++++++---
1 files changed, 37 insertions(+), 3 deletions(-)
diff --git a/small-program/pages/mine/mine.vue b/small-program/pages/mine/mine.vue
index 2ece09a..5ac88c6 100644
--- a/small-program/pages/mine/mine.vue
+++ b/small-program/pages/mine/mine.vue
@@ -48,8 +48,8 @@
<view v-for="item in menuList" :key="item.label" class="menu-row" @click="handleMenuClick(item)">
<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 ? '闂ㄥ簵宸插叆椹�' : '' }}
+ <text v-if="['闂ㄥ簵鍏ラ┗','闂ㄥ簵淇℃伅'].includes(item.label)" :class="{ 'status-red': [1,2,5].includes(userInfo.shopAuditStatus), 'status-yellow': [4].includes(userInfo.shopAuditStatus) }">
+ {{userInfo.shopAuditStatus === 0 ? '瀹℃牳涓�' : userInfo.shopAuditStatus === 1 ? '瀹℃牳閫氳繃锛岃鏀粯鎶奸噾' : userInfo.shopAuditStatus === 2 ? '瀹℃牳鏈�氳繃' : userInfo.shopAuditStatus === 3 ? '闂ㄥ簵宸插叆椹�' : userInfo.shopAuditStatus === 4 ? '鍙樻洿涓�' : userInfo.shopAuditStatus === 5 ? '鍙樻洿鏈�氳繃' : '' }}
</text>
<button v-if="item.label === '鍦ㄧ嚎瀹㈡湇'" open-type="contact" type="default"> </button>
<u-icon name="arrow-right" size="18" color="#B5BBC5"></u-icon>
@@ -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
@@ -135,13 +154,21 @@
'鐢ㄦ埛闅愮鏀跨瓥': '/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
return
}
}
- if (['闂ㄥ簵鍏ラ┗','闂ㄥ簵淇℃伅'].includes(item.label) && [0,1,2,3].includes(this.userInfo.shopAuditStatus)) {
+ if (['闂ㄥ簵鍏ラ┗','闂ㄥ簵淇℃伅'].includes(item.label) && [0,1,2,3,4].includes(this.userInfo.shopAuditStatus)) {
uni.navigateTo({
url: '/pages/details-entry/details-entry'
})
@@ -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'
@@ -422,6 +453,9 @@
.status-red {
color: #FF0000;
}
+ .status-yellow {
+ color: #FFD700;
+ }
button {
position: relative;
top: 0;
--
Gitblit v1.9.3