From de93aa62c83d6afb9f70cd5a22838375db0a8cbc Mon Sep 17 00:00:00 2001
From: cshenfu <men883234@gmail.com>
Date: 星期三, 14 六月 2023 16:33:43 +0800
Subject: [PATCH] change num bug

---
 pages/index/home.vue |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/pages/index/home.vue b/pages/index/home.vue
index c62f486..5acd2ad 100755
--- a/pages/index/home.vue
+++ b/pages/index/home.vue
@@ -13,7 +13,7 @@
 		</view>
 		<view class="flex justify-center align-center flex-direction">
 			<button @click="toChat" style="width: calc(100vw - 60rpx); height: 100rpx;" class="cu-btn text-bold chat-button">
-				寮�濮嬪挩璇� (浣檣{sum_num}}娆�) </button>
+				寮�濮嬪挩璇� (浣檣{num}}娆�) </button>
 		</view>
 		<view class="tool padding-top-xl">
 			<view class="header">
@@ -117,11 +117,7 @@
 			uni.hideHomeButton()
 			// #endif
 			
-			if(this.$store.state.userInfo.num&&this.$store.state.userInfo.pay_num){
-			this.setting_data = setting
-			this.userinfo_data = this.$store.state.userInfo
-				this.sum_num = this.userinfo_data.num+this.userinfo_data.pay_num
-			}
+			
 			
 			
 			
@@ -130,6 +126,11 @@
 			
 		},
 		created() {
+			if(this.$store.state.userInfo.num&&this.$store.state.userInfo.pay_num){
+			this.setting_data = setting
+			this.userinfo_data = this.$store.state.userInfo
+				this.sum_num = this.userinfo_data.num+this.userinfo_data.pay_num
+			}
 			let st_open = uni.getStorageSync('openid')
 			this.shar_openid = st_open
 			var url_local = location.href.split("#")[0]

--
Gitblit v1.9.1