MrShi
2026-04-20 a987eccb27891bbfaae334b7fa0e892ee2640271
small-program/pages/mine/mine.vue
@@ -46,9 +46,14 @@
            </view>
            <view class="menu-card section-card">
               <view v-for="item in menuList" :key="item.label" class="menu-row">
               <view v-for="item in menuList" :key="item.label" class="menu-row" @click="handleMenuClick(item)">
                  <text class="menu-label">{{ item.label }}</text>
                  <u-icon name="arrow-right" size="18" color="#B5BBC5"></u-icon>
                  <view class="right-icon">
                     <text v-if="item.label === '门店入驻'" :class="{ 'status-red': userInfo.shopAuditStatus === 1 || userInfo.shopAuditStatus === 2 }">
                        {{ userInfo.shopAuditStatus === 0 ? '审核中' : userInfo.shopAuditStatus === 1 ? '审核通过,请支付押金' : userInfo.shopAuditStatus === 2 ? '审核未通过' : '申请入驻' }}
                     </text>
                     <u-icon name="arrow-right" size="18" color="#B5BBC5"></u-icon>
                  </view>
               </view>
            </view>
         </view>
@@ -82,13 +87,34 @@
   },
   async onShow() {
      await this.$onLaunched
      this.getOrderNum()
      if (this.userInfo) {
         this.getOrderNum()
      }
   },
   methods: {
      toAllOrders() {
         uni.navigateTo({
            url: '/pages/orders/orders'
         })
      },
      handleMenuClick(item) {
         const urlMap = {
            '门店入驻': '/pages/store-apply/store-apply',
            '我的门店': '/pages/store-home/store-home',
            '规范须知': '/pages/rich-text/rich-text?type=serverIntroduce',
            '关于我们': '/pages/rich-text/rich-text?type=about'
         }
         if (item.label === '门店入驻' && [0,1,2].includes(this.userInfo.shopAuditStatus)) {
            uni.navigateTo({
               url: '/pages/details-entry/details-entry'
            })
            return
         }
         if (urlMap[item.label]) {
            uni.navigateTo({
               url: urlMap[item.label]
            })
         }
      },
      toOrderDetail(label) {
         uni.navigateTo({
@@ -128,7 +154,7 @@
                  if (res.code === 200) {
                     that.$u.api.wxAuthPhone({
                        code: e.detail.code,
                        openid: 'oKKHU5IFKpss_DIbFX1lqghFJOEg'
                        openid: res.data.openid
                     }).then(res => {
                        if (res.code === 200) {
                           that.$store.commit('setUserInfo', res.data.member)
@@ -354,4 +380,19 @@
      font-size: 30rpx;
      color: #222222;
   }
   .right-icon {
      display: flex;
      align-items: center;
      gap: 4rpx;
      text {
         font-weight: 400;
         font-size: 24rpx;
         color: #10B2FA;
         margin-right: 20rpx;
      }
      .status-red {
         color: #FF0000;
      }
   }
</style>