rk
2026-05-22 552238172036acf08ccf36134282a06b5e21b936
small-program/pages/mine/mine.vue
@@ -59,6 +59,20 @@
         </view>
      </view>
      <u-popup :show="showPhone" round="15" mode="bottom" :safeAreaInsetBottom="true" @close="showPhone = false" :closeable="true" :closeOnClickOverlay="true">
         <view class="phone">
            <view class="phone-head">
               <view></view>
               <text>联系平台</text>
            </view>
             <view style="flex-direction: row;margin-bottom: 30rpx;" class="phone-item" v-for="(phone, index) in serverPhoneList" :key="index" @click="contactPhoneDo(phone)">
                  <image src="/static/icon/ic_call@2x.png" mode="widthFix"></image>
                  <text>{{ phone }}</text>
             </view>
             <view style="width: 100%; height: 30rpx;"></view>
         </view>
      </u-popup>
      <auth-login
         :show="showAuthLogin"
         :checked.sync="agreeChecked"
@@ -77,12 +91,17 @@
         CustomTabbar
      },
      computed: {
      ...mapState(['navHeight', 'statusbarHeight', 'openid', 'userInfo', 'token'])
      ...mapState(['navHeight', 'statusbarHeight', 'openid', 'userInfo', 'token']),
      serverPhoneList() {
         if (!this.serverPhone) return []
         return this.serverPhone.split(',')
      }
   },
   data() {
      return {
         showAuthLogin: false,
         agreeChecked: true,
         showPhone: false,
         userName: '',
         serverPhone: '',
         orderMenus: [
@@ -93,6 +112,8 @@
         menuList: [
            { label: '门店入驻' },
            { label: '我的门店' },
            { label: '领券中心' },
            { label: '开票申请' },
            { label: '用户服务协议' },
            { label: '用户隐私政策' },
            { label: '在线客服' },
@@ -129,6 +150,13 @@
      }
   },
   methods: {
      contactPhoneDo(phone) {
         if (phone) {
            uni.makePhoneCall({
               phoneNumber: phone
            })
         }
      },
      async getPlatformInfo() {
         const res = await this.$u.api.getPlatformAboutUs({})
         if (res.code === 200 && res.data) {
@@ -150,16 +178,14 @@
         const urlMap = {
            '门店入驻': '/pages/store-apply/store-apply',
            '我的门店': '/shop/pages/login/login',
            '领券中心': '/shop/pages/coupon-center/coupon-center',
            '开票申请': '/shop/pages/Invoice-application/Invoice-application',
            '用户服务协议': '/pages/rich-text/rich-text?type=0',
            '用户隐私政策': '/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
               })
            }
            this.showPhone = true
            return
         }
         if (['门店入驻', '我的门店'].includes(item.label)) {
@@ -185,7 +211,7 @@
            this.showAuthLogin = true
            return
         }
         uni.setStorageSync("orderStatus",label===0?-2:label)
         uni.$emit('shuaxin',label===0?-2:label)
         uni.switchTab({
            url: '/pages/itinerary/itinerary'
         })