From 552238172036acf08ccf36134282a06b5e21b936 Mon Sep 17 00:00:00 2001
From: rk <94314517@qq.com>
Date: 星期五, 22 五月 2026 18:07:49 +0800
Subject: [PATCH] 代码生成
---
app/pages/mine/mine.vue | 57 +++++++++++++++++++++++++++++++++++++++++++++++----------
1 files changed, 47 insertions(+), 10 deletions(-)
diff --git a/app/pages/mine/mine.vue b/app/pages/mine/mine.vue
index 291295b..000c9e7 100644
--- a/app/pages/mine/mine.vue
+++ b/app/pages/mine/mine.vue
@@ -40,7 +40,7 @@
</view>
<view class="menu-panel">
- <view v-for="item in menuList" :key="item.title" class="menu-panel__item" @click="jump(item)">
+ <view v-for="item in menuList" :key="item.title" class="menu-panel__item" @click="jump(item)" v-show="item.key !== 'reward' || userInfo.auditStatus === 3">
<text class="menu-panel__title">{{ item.title }}</text>
<view class="menu-panel__right">
<template v-if="item.key === 'wallet'">
@@ -48,12 +48,14 @@
</template>
<template v-if="item.key === 'driver'">
<text v-if="userInfo.auditStatus === 99" class="menu-panel__sub menu-panel__sub--danger">瀹屾垚璁よ瘉鍚庡嵆鍙帴鍗�</text>
- <text v-else-if="userInfo.auditStatus === 0" class="menu-panel__sub menu-panel__sub--danger">瀹℃牳涓�</text>
- <text v-if="userInfo.auditStatus === 2" class="menu-panel__sub menu-panel__sub--danger">宸查┏鍥�</text>
+ <text v-else-if="!userInfo.hasApprovedOfficial && userInfo.auditStatus === 0" class="menu-panel__sub menu-panel__sub--danger">瀹℃牳涓�</text>
+ <text v-else-if="userInfo.hasApprovedOfficial && userInfo.auditStatus === 0" class="menu-panel__sub menu-panel__sub--danger">鍙樻洿涓�</text>
+ <text v-if="!userInfo.hasApprovedOfficial && userInfo.auditStatus === 2" class="menu-panel__sub menu-panel__sub--danger">宸查┏鍥�</text>
+ <text v-if="userInfo.hasApprovedOfficial && userInfo.auditStatus === 2" class="menu-panel__sub menu-panel__sub--danger">鍙樻洿宸查┏鍥�</text>
<text v-else-if="userInfo.auditStatus === 3" class="menu-panel__sub menu-panel__sub--primary">宸茶璇�</text>
</template>
<template v-else-if="item.key === 'setting'">
- <text class="menu-panel__sub menu-panel__sub--muted">褰撳墠鐗堟湰V1.0.0</text>
+ <text class="menu-panel__sub menu-panel__sub--muted">褰撳墠鐗堟湰{{ appVersion }}</text>
</template>
<view class="menu-panel__arrow">
<image src="/static/image/mine_ar2@2x.png" mode="widthFix"></image>
@@ -79,9 +81,13 @@
statusBarHeight: 0,
navHeight: 0,
useVerifiedState: true,
+ serverPhone: '',
+ appVersion: 'V1.0.0',
menuList: [
{ key: 'wallet', title: '鎴戠殑閽卞寘' },
{ key: 'driver', title: '鍙告満璁よ瘉' },
+ { key: 'reward', title: '濂栧姳澶у巺' },
+ { key: 'revenue', title: '钀ユ敹鍒嗘瀽' },
{ key: 'agreementPrivacy', title: '鍙告満闅愮鏀跨瓥', type: 'driverPrivacyPolicy' },
{ key: 'agreementErrandLuggage', title: '璺戣吙杞︿富琛屾潕瀵勫瓨椤荤煡', type: 'errandLuggageStorageNotice' },
{ key: 'agreementErrandService', title: '璺戣吙杈句汉鏈嶅姟鍗忚', type: 'errandServiceAgreement' },
@@ -89,7 +95,7 @@
{ key: 'agreementOwnerLuggage', title: '骞冲彴杞︿富琛屾潕瀵勫瓨椤荤煡', type: 'ownerLuggageStorageNotice' },
{ key: 'agreementOwnerService', title: '骞冲彴杞︿富鏈嶅姟鍗忚', type: 'ownerServiceAgreement' },
{ key: 'agreementOwnerRisk', title: '骞冲彴杞︿富椋庨櫓鎵胯', type: 'ownerRiskCommitment' },
- { key: 'help', title: '甯姪涓庡鏈�' },
+ { key: 'help', title: '鑱旂郴瀹㈡湇' },
{ key: 'setting', title: '璁剧疆' }
],
profileStates: {
@@ -131,12 +137,23 @@
const systemInfo = uni.getSystemInfoSync()
this.statusBarHeight = systemInfo.statusBarHeight || 0
this.navHeight = this.statusBarHeight + uni.upx2px(88)
+ if (plus.runtime && plus.runtime.version) {
+ this.appVersion = 'V' + plus.runtime.version
+ }
},
onShow() {
this.getStats()
this.getUserInfo()
+ this.getServerPhone()
},
methods: {
+ getServerPhone() {
+ this.$u.api.getPlatformAboutUs().then(res => {
+ if (res.code === 200 && res.data) {
+ this.serverPhone = res.data.serverPhone || ''
+ }
+ })
+ },
getUserInfo() {
this.$u.api.verifyDetail().then(user => {
if (user.code === 200) {
@@ -164,6 +181,21 @@
uni.navigateTo({
url: '/pages/settings/settings'
})
+ } else if (item.key === 'reward') {
+ if (this.userInfo.auditStatus === 3) {
+ uni.navigateTo({
+ url: '/pages/reward-hall/reward-hall'
+ })
+ } else {
+ uni.showToast({
+ title: '璁よ瘉閫氳繃鍚庢墠鍙繘鍏ュ鍔卞ぇ鍘�',
+ icon: 'none'
+ })
+ }
+ } else if (item.key === 'revenue') {
+ uni.navigateTo({
+ url: '/pages/revenue-analysis/revenue-analysis'
+ })
} else if (item.key === 'driver') {
if (this.userInfo.auditStatus === 99) {
uni.navigateTo({
@@ -182,6 +214,14 @@
uni.navigateTo({
url: `/pages/agreement/agreement?type=${item.type}&title=${encodeURIComponent(item.title)}`
})
+ } else if (item.key === 'help') {
+ if (this.serverPhone) {
+ uni.makePhoneCall({
+ phoneNumber: this.serverPhone
+ })
+ } else {
+ uni.showToast({ title: '瀹㈡湇鐢佃瘽鑾峰彇澶辫触', icon: 'none' })
+ }
}
},
handleLogout() {
@@ -297,11 +337,8 @@
}
&__footer {
- position: fixed;
- left: 0;
- right: 0;
- bottom: 60rpx;
// padding: 16rpx 0 calc(env(safe-area-inset-bottom) + 20rpx);
+ padding-bottom: 30rpx;
display: flex;
justify-content: center;
}
@@ -384,7 +421,7 @@
.menu-panel {
margin-top: 20rpx;
- margin-bottom: 200rpx;
+ margin-bottom: 30rpx;
border-radius: 22rpx;
background: #ffffff;
overflow: hidden;
--
Gitblit v1.9.3