From e680ee8cc2c34ec2d21c238e8110e4f1501eb8bc Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期五, 24 十一月 2023 11:06:37 +0800
Subject: [PATCH] #

---
 pages/business/goBusiness/reimburseOnline.vue |   12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/pages/business/goBusiness/reimburseOnline.vue b/pages/business/goBusiness/reimburseOnline.vue
index 32e3cfc..2a51a73 100644
--- a/pages/business/goBusiness/reimburseOnline.vue
+++ b/pages/business/goBusiness/reimburseOnline.vue
@@ -3,7 +3,6 @@
 		<view class="status_bar">
 			<!-- 杩欓噷鏄姸鎬佹爮 -->
 		</view>
-		
 		<uni-nav-bar left-icon="left" title="鎶ラ攢鐢宠" @clickLeft="back" @clickRight="scan"  :fixed="true"
 			:border="false" rightWidth="160rpx" leftWidth="160rpx"
 			>
@@ -52,7 +51,7 @@
 				user: {
 					username: '',
 					id: 0,
-					type: ''
+					type: 'user_id'
 				},
 				falg: true,
 				list: []
@@ -61,23 +60,21 @@
 		onShow() {
 			let that = this
 			uni.$on('isRefresh',function(data){
-				console.log(data);
 				that.user.username = data.title
 				that.user.id = data.id
 				that.user.type = data.key
 				that.falg = false
 			})
-			setTimeout(()=> {
-				this.getReimburseOnline()
-			},50)
 			if (this.falg) {
 				this.getDetail()
 			}
+			setTimeout(()=> {
+				this.getReimburseOnline()
+			},50)
 		},
 		methods: {
 			async getDetail() {
 				let res = await user.getDetail()
-				console.log(res);
 				if (res.code === 200) {
 					this.user.username = res.data.username
 					this.user.id = res.data.id
@@ -121,6 +118,7 @@
 					header: { 'token': uni.getStorageSync('token') },
 					data: param,
 					success(res) {
+						console.log(res);
 						res = res.data
 						if (res.code === 200) {
 							for (let k of res.data.records) {

--
Gitblit v1.9.1