From c2efd87e150d0ab5d92d398c3b367345def3cc35 Mon Sep 17 00:00:00 2001
From: 付延余 <f-yanyu@outlook.com>
Date: 星期一, 20 三月 2023 11:18:59 +0800
Subject: [PATCH] 转发按钮

---
 pages/register/register.vue |   22 ++++++++++------------
 1 files changed, 10 insertions(+), 12 deletions(-)

diff --git a/pages/register/register.vue b/pages/register/register.vue
index 1b90898..f15f3bf 100644
--- a/pages/register/register.vue
+++ b/pages/register/register.vue
@@ -36,13 +36,13 @@
 					<u--input v-model="registerFormModel.carNo" placeholder="璇疯緭鍏ュ唴瀹�" clearable></u--input>
 				</u-form-item>
 				<u-form-item prop="carImg" label="杞﹁締鐓х墖" labelWidth="20%" borderBottom v-if="radiovalue1 == '鍙告満'" required>
-					<u-upload :fileList="fileList1" @afterRead="afterRead" @delete="deletePic" name="1" multiple :maxCount="1" width="250" height="150">
+					<u-upload :fileList="fileList1" deletable @afterRead="afterRead" @delete="deletePic" name="1" multiple :maxCount="1" width="250" height="150">
 						<!-- <image src="https://cdn.uviewui.com/uview/demo/upload/positive.png"
 						mode="widthFix" style="width: 250px;height: 150px;"></image> -->
 					</u-upload>
 				</u-form-item>
 				<u-form-item prop="drivingImg" label="琛岄┒璇�" labelWidth="20%" borderBottom v-if="radiovalue1 == '鍙告満'" required>
-					<u-upload :fileList="fileList2" @afterRead="afterRead" @delete="deletePic" name="2" multiple :maxCount="1" width="250" height="150">
+					<u-upload :fileList="fileList2" deletable @afterRead="afterRead" @delete="deletePic" name="2" multiple :maxCount="1" width="250" height="150">
 						<!-- <image src="https://cdn.uviewui.com/uview/demo/upload/positive.png"
 						mode="widthFix" style="width: 250px;height: 150px;"></image> -->
 					</u-upload>
@@ -107,7 +107,7 @@
 				carImg: '',
 				drivingImg: '',
 				tuiJianMa: '',
-				confirmPassword:''
+				confirmPassword: ''
 			},
 			fileList1: [],
 			fileList2: [],
@@ -149,7 +149,7 @@
 						message: '闀垮害鍦�6-12涓瓧绗︿箣闂�'
 					}
 				],
-				confirmPassword:[
+				confirmPassword: [
 					{
 						required: true,
 						message: '璇疯缃垵濮嬪瘑鐮�',
@@ -182,7 +182,6 @@
 					trigger: ['blur', 'change']
 				}
 			},
-			confirmPassword:'',
 			// 鍩烘湰妗堝垪鏁版嵁
 			radiolist1: [
 				{
@@ -229,7 +228,7 @@
 	},
 	methods: {
 		registerClick() {
-			if(this.registerFormModel.password == this.registerFormModel.confirmPassword){
+			if (this.registerFormModel.password == this.registerFormModel.confirmPassword) {
 				this.$refs.regesterFormRef
 					.validate()
 					.then(res => {
@@ -260,7 +259,7 @@
 						uni.$u.toast('璇疯鑼冭緭鍏ュ唴瀹�');
 					});
 			} else {
-				this.$u.toast('涓ゆ瀵嗙爜涓嶄竴鑷�')
+				this.$u.toast('涓ゆ瀵嗙爜涓嶄竴鑷�');
 			}
 		},
 		// 闊宠棰戦�氳瘽
@@ -287,11 +286,10 @@
 				this.beforeChangeValue = e;
 			}
 		},
-		jiaoYanPassword(){
-			console.log('瀵嗙爜锛�',this.registerFormModel.password ,'纭瀵嗙爜锛�',this.confirmPassword);
-			// if(this.registerFormModel.password != this.confirmPassword){
-			// 	this.$u.toast('涓ゆ瀵嗙爜涓嶄竴鑷�')
-			// }
+		jiaoYanPassword() {
+			if (this.registerFormModel.password != this.registerFormModel.confirmPassword) {
+				this.$u.toast('涓ゆ瀵嗙爜涓嶄竴鑷�');
+			}
 		},
 		// 涓婁紶鍥剧墖鏂规硶
 		// 鍒犻櫎鍥剧墖

--
Gitblit v1.9.1