From 7281600f12dc879ef86d7d35bfb02fecd9beb072 Mon Sep 17 00:00:00 2001
From: cshenfu <men883234@gmail.com>
Date: 星期四, 08 六月 2023 16:39:14 +0800
Subject: [PATCH] change icon bug

---
 pages/index/chat.vue    |    4 ++--
 pages/tab/assistant.vue |   30 +++---------------------------
 App.vue                 |    3 ++-
 pages/vip/vip.vue       |    6 ++++--
 4 files changed, 11 insertions(+), 32 deletions(-)

diff --git a/App.vue b/App.vue
index 52cc7b7..a138967 100755
--- a/App.vue
+++ b/App.vue
@@ -71,7 +71,8 @@
 				if (userInfo) {
 					await this.login(userInfo);
 					this.$request('/api/Member/checkNum', 'POST').then(res => {
-						userInfo.num = res.data.num // 鏇存柊鏁伴噺
+						console.log(res,"checkNumres")
+						userInfo.num = res.data.num+res.data.pay_num // 鏇存柊鏁伴噺
 						this.syncUserInfo(userInfo)
 					})
 				}
diff --git a/pages/index/chat.vue b/pages/index/chat.vue
index b0ec8ae..6664540 100755
--- a/pages/index/chat.vue
+++ b/pages/index/chat.vue
@@ -12,7 +12,7 @@
 			<view v-for="(item,index) in arr" :key="index" :id="'message' + item.message_id">
 				<view class="body_l" v-if="item.role == 'assistant'">
 					<view class="body_lpic a">
-						<image :src="`${now_model.icon}`" mode=""></image>
+						<u--image :src="`${setting_data.base_url+now_model.icon}`" mode=""></u--image>
 					</view>
 					<view class="body_box">
 						<view class="body_jt"></view>
@@ -43,7 +43,7 @@
 			
 			<view class="body_l" v-if="loading" id="loading">
 				<view class="body_lpic a">
-					<image :src="`${now_model.icon}`" mode=""></image>
+					<u--image :src="`${setting_data.base_url+now_model.icon}`" mode=""></u--image>
 				</view>
 				<view class="body_box">
 					<view class="body_lcon pdg border_radius_l" style="display:flex; overflow-x: hidden;">
diff --git a/pages/tab/assistant.vue b/pages/tab/assistant.vue
index 03d8430..1e5fe06 100755
--- a/pages/tab/assistant.vue
+++ b/pages/tab/assistant.vue
@@ -7,7 +7,7 @@
 			<view class="tool_list">
 				<view class="group_tool_wrap" v-for="item in models" :key="item.assistant_id" @click="handleJump(item)">
 					<view class="tool_wrap">
-						<u--image :showLoading="true" :src="`${item.icon}`" width="112rpx" height="112rpx" class="tool_icon"></u--image>
+						<u--image :showLoading="true" :src="`${setting_data.base_url+item.icon}`" width="112rpx" height="112rpx" class="tool_icon"></u--image>
 						<view class="tool_info">
 							<view class="tool_name">
 								<view class="tool_name_l">
@@ -55,34 +55,10 @@
 			...mapState(['models','tabbar','userInfo'])
 		},
 		async onLoad() {
+			console.log(this.models,"assisstent")
 			this.setting_data = setting
 			this.getTabIndex()
-			// await recognition()
-			// const flag = await handleTime()
-			// const value = uni.getStorageSync('config');
-			// const that = this
-			// if (value && flag) {
-			// 	const {
-			// 		admin
-			// 	} = value
-			// 	that.admin = admin
-			// 	const data = {
-			// 		pageIndex: 1,
-			// 		pageSize: 12
-			// 	}
-			// 	await this.handlegetAppla(data)
-			// 	return
-			// }
-			// uni.login({
-			// 	provider: "weixin",
-			// 	success(res) {
-			// 		uni.showLoading({
-			// 			title: '鍔犺浇涓�',
-			// 			mask: true
-			// 		})
-			// 		that.handlefig(res.code)
-			// 	}
-			// })
+			
 		},
 		onShareAppMessage: function() {
 			return {
diff --git a/pages/vip/vip.vue b/pages/vip/vip.vue
index c6b2bb1..c020b13 100755
--- a/pages/vip/vip.vue
+++ b/pages/vip/vip.vue
@@ -146,9 +146,10 @@
 								this.$request('/api/Member/checkNum', 'POST',{
 									comb_id: this.rechargeOptions[this.current].comb_id
 								}).then(re => {
+									console.log(re,"checkNumre")
 									this.data_content3 = re
 									 // 鏇存柊鏁伴噺
-									this.$store.commit('syncUserNum',re.data.num)
+									this.$store.commit('syncUserNum',re.data.num+re.data.pay_num)
 								})
 							}
 						}, (er) => {
@@ -182,8 +183,9 @@
 						this.$request('/api/Member/checkNum', 'POST',{
 									comb_id: this.rechargeOptions[this.current].comb_id
 								}).then(re => {
+									console.log(re,"checkNumre22222")
 							 // 鏇存柊鏁伴噺
-							this.$store.commit('syncUserNum',re.data.num)
+							this.$store.commit('syncUserNum',re.data.num+re.data.pay_num)
 						})
 					}
 					// #endif

--
Gitblit v1.9.1