MrShi
2026-05-20 b806c4ad52a661a1e5f0695650ec1a7e42f01633
app/pages/mine/mine.vue
@@ -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,14 @@
               uni.navigateTo({
                  url: '/pages/settings/settings'
               })
            } else if (item.key === 'reward') {
               uni.navigateTo({
                  url: '/pages/reward-hall/reward-hall'
               })
            } 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 +207,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 +330,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 +414,7 @@
   .menu-panel {
      margin-top: 20rpx;
      margin-bottom: 200rpx;
      margin-bottom: 30rpx;
      border-radius: 22rpx;
      background: #ffffff;
      overflow: hidden;