From 174350e855349919ee287a52d3198c7c7558b858 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期二, 02 四月 2024 14:21:22 +0800
Subject: [PATCH] mrshi

---
 wx/pages/index/index.vue |   15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/wx/pages/index/index.vue b/wx/pages/index/index.vue
index 8a88ec7..d2c43b9 100644
--- a/wx/pages/index/index.vue
+++ b/wx/pages/index/index.vue
@@ -2,7 +2,7 @@
 	<view class="content">
 		<view class="content_head" :style="{backgroundImage: 'url(' + backgroundImg + ')'}">
 			<text>{{userInfo.company.name}}</text>
-			<text>褰撳墠鍦ㄤ繚锛�20浜�</text>
+			<text>褰撳墠鍦ㄤ繚锛歿{num}}浜�</text>
 		</view>
 		<view class="content_box">
 			<view class="content_box_list">
@@ -58,6 +58,7 @@
 		},
 		data() {
 			return {
+				num: 0,
 				backgroundImg: require('@/static/background/home_bg@2x.png'),
 				backgroundImg1: require('@/static/background/home_ic_toubao@2x.png'),
 				backgroundImg2: require('@/static/background/home_ic_baodan@2x.png'),
@@ -69,10 +70,18 @@
 				backgroundImg8: require('@/static/background/home_ic_yuangong@2x.png'),
 			}
 		},
-		onLoad() {
-
+		onShow() {
+			this.getNum()
 		},
 		methods: {
+			getNum() {
+				this.$u.api.guaranteeNum()
+					.then(res => {
+						if (res.code === 200) {
+							this.num = res.data
+						}
+					})
+			},
 			loginOut() {
 				this.$u.api.logout()
 					.then(res => {

--
Gitblit v1.9.3