From 0c9b00f333f9baaffa9140fd1808a26e0af8416b Mon Sep 17 00:00:00 2001
From: zhangwei <1504152376@qq.com>
Date: 星期四, 05 九月 2024 17:19:07 +0800
Subject: [PATCH] 一些错误更改

---
 src/pages/checkin/checkin.vue |   21 ++++++++++++---------
 1 files changed, 12 insertions(+), 9 deletions(-)

diff --git a/src/pages/checkin/checkin.vue b/src/pages/checkin/checkin.vue
index 6dde1c9..e204362 100644
--- a/src/pages/checkin/checkin.vue
+++ b/src/pages/checkin/checkin.vue
@@ -2,7 +2,8 @@
 	<view>
 		<view class='chuany-flex camera-fill chuany-justify-center chuany-align-center'>
 			<fui-upload immediate :url="`${apiBaseUrl}/api/UpFile/UpdateFile`" ref="uploadE" max='1' @success="success"
-				:sourceType='sourceType' @error="error" @complete="complete" width="280" height="280">
+				:sizeType='sizeType' :sourceType='sourceType' @error="error" @complete="complete" width="280"
+				height="280">
 				<view class="" v-if="checkPhoto">
 					<image :src="checkPhoto" mode="widthFix" style="width: 280rpx;height: 280rpx;">
 					</image>
@@ -13,7 +14,7 @@
 				</view>
 			</fui-upload>
 			<fui-upload ref="uploadP" max='1' @error="error" @complete="completePerson" width="280" height="280"
-				:sourceType='sourceType'>
+				:sizeType='sizeType' :sourceType='sourceType'>
 				<view class="" v-if="faceImg">
 					<image :src="faceImg" mode="widthFix" style="width: 280rpx;height: 280rpx;"></image>
 				</view>
@@ -26,7 +27,7 @@
 		<view class="c-m-20 chuany-font24">
 			涓轰簡淇濊瘉鎵撳崱鐨勬纭�э紝鈥屽缓璁湪鍏徃闂ㄥ彛鎴栬繘鍏ュ姙鍏鐨勯棬鍙e啀鎵撳崱銆傗�屽悓鏃讹紝鈥岀‘淇濈収鐗囩殑娓呮櫚銆佲�屾槑浜紝鈥岄潰閮ㄥ彲瑙併��
 		</view>
-		<view>
+		<view v-if='dakaList&&dakaList.length>0'>
 			<view class="chuany-flex chuany-justify-evenly chuany-flex-wrap c-p-t-20">
 				<view
 					class="chuany-flex chuany-flex-direction chuany-align-center chuany-justify-around textclo chuany-font24 c-p-b-30 daka"
@@ -47,7 +48,8 @@
 			</view>
 		</view>
 		<view class="tabbtns">
-			<up-button color='#fece01' class="text-69" text="纭鎵撳崱" @click="enroll"></up-button>
+			<up-button color='#fece01' class="text-69" text="纭鎵撳崱" :loading='isLoading' loadingText="鎵撳崱涓�"
+				@click="enroll"></up-button>
 		</view>
 	</view>
 </template>
@@ -64,8 +66,10 @@
 				orderBiddingId: '', //鎷涘伐鏄庣粏OrderBiddingId
 				checkPhoto: '', //鎵撳崱鐓х墖
 				faceImg: '', //浜鸿劯鍥剧墖
-				dakaList: null,
-				sourceType: ["camera"]
+				dakaList: [],
+				sourceType: ["camera"],
+				sizeType: ['compressed'],
+				isLoading: false
 			}
 		},
 		onLoad(option) {
@@ -81,9 +85,6 @@
 				}).then(res => {
 					if (res.code == 1) {
 						this.dakaList = res.data ? res.data.orderBiddingDetailCheck : []
-						if (this.dakaList.length == 0) {
-							this.dakaList.length = 2
-						}
 						if (this.dakaList.length > 6) {
 							this.dakaList.length = 6
 						}
@@ -166,6 +167,7 @@
 					})
 					return
 				}
+				this.isLoading = true
 				let obj = {
 					OrderId: this.orderBiddingId, //鎷涘伐鏄庣粏OrderBiddingId
 					checkPhoto: this.checkPhoto, //鎵撳崱鐓х墖
@@ -187,6 +189,7 @@
 							title: res.error,
 						})
 					}
+					this.isLoading = false
 				})
 			}
 		}

--
Gitblit v1.9.1