doum
2026-04-30 7a0b33a5f2e0ba589bf35a1b8d896700a21f94a4
small-program/pages/mine/mine.vue
@@ -16,10 +16,10 @@
                  <view class="tool-item" @click="toSetting">
                     <image class="tool-icon" src="/static/icon/ic_option@2x.png" mode="aspectFit"></image>
                  </view>
                  <view class="tool-item has-badge">
                  <!-- <view class="tool-item has-badge">
                     <image class="tool-icon" src="/static/icon/ic_notice@2x.png" mode="aspectFit"></image>
                     <view class="tool-badge" v-if="userInfo.hasMessage"></view>
                  </view>
                  </view> -->
               </view>
            </view>
@@ -49,9 +49,10 @@
                  <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 ? '门店已入驻' : '' }}
                        {{userInfo.shopAuditStatus === 0 ? '审核中' : userInfo.shopAuditStatus === 1 ? '审核通过,请支付押金' : userInfo.shopAuditStatus === 2 ? '审核未通过' : userInfo.shopAuditStatus === 3 ? '门店已入驻' : '' }}
                     </text>
                     <u-icon name="arrow-right" size="18" color="#B5BBC5"></u-icon>
                     <button  v-if="item.label === '在线客服'" open-type="contact" type="default">    </button>
                     <u-icon   name="arrow-right" size="18" color="#B5BBC5"></u-icon>
                  </view>
               </view>
            </view>
@@ -90,11 +91,21 @@
         menuList: [
            { label: '门店入驻' },
            { label: '我的门店' },
            { label: '规范须知' },
            { label: '用户服务协议' },
            { label: '用户隐私政策' },
            { label: '在线客服' },
            { label: '关于我们' }
         ]
      }
   },
   onLoad() {
      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;
@@ -129,8 +140,15 @@
         const urlMap = {
            '门店入驻': '/pages/store-apply/store-apply',
            '我的门店': '/shop/pages/login/login',
            '规范须知': '/pages/rich-text/rich-text?type=serverIntroduce',
            '关于我们': '/pages/rich-text/rich-text?type=about'
            '用户服务协议': '/pages/rich-text/rich-text?type=0',
            '用户隐私政策': '/pages/rich-text/rich-text?type=1',
            '关于我们': '/pages/rich-text/rich-text?type=5'
         }
         if (['门店入驻', '我的门店'].includes(item.label)) {
            if (!this.token) {
               this.showAuthLogin = true
               return
            }
         }
         if (['门店入驻','门店信息'].includes(item.label) && [0,1,2,3].includes(this.userInfo.shopAuditStatus)) {
            uni.navigateTo({
@@ -138,19 +156,27 @@
            })
            return
         }
         if (urlMap[item.label]) {
         if (item.label!=='在线客服' && urlMap[item.label]) {
            uni.navigateTo({
               url: urlMap[item.label]
            })
         }
      },
      toOrderDetail(label) {
         if (!this.token) {
            this.showAuthLogin = true
            return
         }
         uni.setStorageSync("orderStatus",label===0?-2:label)
         uni.switchTab({
            url: '/pages/itinerary/itinerary'
         })
      },
      toSetting() {
         if (!this.token) {
            this.showAuthLogin = true
            return
         }
         uni.navigateTo({
            url: '/pages/settings/settings'
         })
@@ -409,5 +435,15 @@
      .status-red {
         color: #FF0000;
      }
      button {
         position: relative;
         top: 0;
         float:right;
         right:  0;
         width: 200rpx;
         height: 48rpx;
         opacity: 0;
         z-index: 9999;
      }
   }
</style>