From 8a97e4347e5d1ba1f8913edbdb34a92581588b26 Mon Sep 17 00:00:00 2001
From: cshenfu <men883234@gmail.com>
Date: 星期五, 26 五月 2023 10:11:49 +0800
Subject: [PATCH] add log out
---
pages/mine/mine.vue | 14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/pages/mine/mine.vue b/pages/mine/mine.vue
index 3c73d44..7f7762c 100755
--- a/pages/mine/mine.vue
+++ b/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)
--
Gitblit v1.9.1