cshenfu
2023-05-26 8a97e4347e5d1ba1f8913edbdb34a92581588b26
pages/mine/mine.vue
@@ -76,7 +76,7 @@
         </view>
         
         <!-- #ifndef MP-WEIXIN -->
         <!-- <view @click="logout" class="flex item align-center">
         <view v-show="isPC" @click="logout" class="flex item align-center">
            <u-icon name="/static/icon/quit.png" size="18"></u-icon>
            <view class="flex align-center justify-between solid-bottom margin-left-sm">
               <view class="title">退出登录</view>
@@ -85,7 +85,7 @@
                  <u-icon name="error" color="#848B9E" size="16"></u-icon>
               </view>
            </view>
         </view> -->
         </view>
         <!-- #endif -->
         <!-- #ifdef MP-WEIXIN -->
         <button open-type="share" class="flex item align-center">
@@ -144,7 +144,8 @@
            loginCode: "",
            showTab: false,
            tabIndex: 0,
            res_data:'123'
            res_data:'123',
            isPC:false
         };
      },
      computed: {
@@ -159,6 +160,13 @@
            // #ifdef H5
            if (/MicroMessenger/i.test(navigator.userAgent)) {
               platform = 'gzh';
            }else{
               if (!this.userInfo.token) {
                  this.isPC = false
               }else{
                  this.isPC = true
               }
            }
            // #endif
            return (platform == 'gzh' && this.$store.state.config.wxGzhPay == 1) || (platform == 'wxmp' && this.$store.state.config.mpPay == 1)