From 5d3b2ffa8e1dc1e1cce3e05b2131516bcde0f6bd Mon Sep 17 00:00:00 2001
From: cshenfu <men883234@gmail.com>
Date: 星期五, 26 五月 2023 13:24:04 +0800
Subject: [PATCH] change vip page

---
 pages/mine/mine.vue |    6 ++++--
 pages/vip/vip.vue   |    5 +++++
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/pages/mine/mine.vue b/pages/mine/mine.vue
index 7f7762c..eef04b0 100755
--- a/pages/mine/mine.vue
+++ b/pages/mine/mine.vue
@@ -161,7 +161,8 @@
 				if (/MicroMessenger/i.test(navigator.userAgent)) {
 					platform = 'gzh';
 				}else{
-					if (!this.userInfo.token) {
+					// 濡傛灉涓嶆槸寰俊娴忚鍣ㄧ幆澧冿紝鍒欐樉绀洪��鍑虹櫥闄嗙殑鎸夐挳
+					if (!this.userInfo.token) { //鍒ゆ柇鏄惁鏈夌敤鎴风櫥闄嗘潵杩涜閫�鍑虹櫥闄嗙殑鏄剧ず涓庨殣钘�
 						this.isPC = false
 					}else{
 						this.isPC = true
@@ -169,7 +170,8 @@
 					
 				}
 				// #endif
-				return (platform == 'gzh' && this.$store.state.config.wxGzhPay == 1) || (platform == 'wxmp' && this.$store.state.config.mpPay == 1)
+				return (!!this.userInfo.token)
+				// return (platform == 'gzh' && this.$store.state.config.wxGzhPay == 1) || (platform == 'wxmp' && this.$store.state.config.mpPay == 1)
 			},
 			...mapState(['userInfo', 'num', 'config','tabbar'])
 		},
diff --git a/pages/vip/vip.vue b/pages/vip/vip.vue
index 329b965..1a93efd 100755
--- a/pages/vip/vip.vue
+++ b/pages/vip/vip.vue
@@ -173,6 +173,11 @@
 							})
 							console.log('pay rr')
 						})
+					}else{
+						uni.showToast({
+							title: 'PC绔敤鎴锋敮浠橈紒',
+							icon: "error"
+						})
 					}
 					// #endif
 					// #ifdef MP-WEIXIN

--
Gitblit v1.9.1