From e9af167156ca9d1b404a76ab0fc8c82c26fe6a11 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期二, 31 十月 2023 11:37:07 +0800
Subject: [PATCH] MrShi

---
 bicycle/pages/problemReporting/problemReporting.vue |   60 +++++++++++++++++++++++++++++++++---------------------------
 1 files changed, 33 insertions(+), 27 deletions(-)

diff --git a/bicycle/pages/problemReporting/problemReporting.vue b/bicycle/pages/problemReporting/problemReporting.vue
index 5436ca4..225ea9e 100644
--- a/bicycle/pages/problemReporting/problemReporting.vue
+++ b/bicycle/pages/problemReporting/problemReporting.vue
@@ -98,7 +98,8 @@
 					phone: '',
 					typeId: ''
 				},
-				problemList: []
+				problemList: [],
+				isEnd: true
 			};
 		},
 		computed: {
@@ -127,31 +128,35 @@
 			},
 			// 鎻愪氦
 			submit() {
-				if (this.from.problemId == '') {
-					uni.showToast({ title: '杞﹁締闂涓嶈兘涓虹┖', icon: 'none', duration: 2000 });
-					return
-				}
-				this.$u.api.saveRepair({
-					addr: this.from.address,
-					bikeCode: this.from.code,
-					binkeId: this.binkeId,
-					content: this.from.info,
-					fileUrlList: this.from.files.map(item => item.imgaddr),
-					latitude: this.from.latitude,
-					linkname: this.from.contacts,
-					linkphone: this.from.phone,
-					longitude: this.from.longitude,
-					param: this.from.problemName,
-					paramId: this.from.problemId,
-					typeId: this.from.typeId
-				}).then(res => {
-					if (res.code === 200) {
-						uni.showToast({ title: '涓婃姤鎴愬姛', icon: 'success', duration: 2000 });
-						setTimeout(() => {
-							uni.navigateBack({ delta: 1 });
-						}, 2000)
+				if (this.isEnd) {
+					if (this.from.problemId == '') {
+						uni.showToast({ title: '杞﹁締闂涓嶈兘涓虹┖', icon: 'none', duration: 2000 });
+						return
 					}
-				})
+					this.isEnd = false
+					this.$u.api.saveRepair({
+						addr: this.from.address,
+						bikeCode: this.from.code,
+						binkeId: this.binkeId,
+						content: this.from.info,
+						fileUrlList: this.from.files.map(item => item.imgaddr),
+						latitude: this.from.latitude,
+						linkname: this.from.contacts,
+						linkphone: this.from.phone,
+						longitude: this.from.longitude,
+						param: this.from.problemName,
+						paramId: this.from.problemId,
+						typeId: this.from.typeId
+					}).then(res => {
+						if (res.code === 200) {
+							uni.showToast({ title: '涓婃姤鎴愬姛', icon: 'success', duration: 2000 });
+							this.isEnd = true
+							setTimeout(() => {
+								uni.navigateBack({ delta: 1 });
+							}, 2000)
+						}
+					})
+				}
 			},
 			// 鎷ㄦ墦鐢佃瘽
 			calling(mobile) {
@@ -536,13 +541,12 @@
 						.form_item_uplaod_list_item {
 							width: 150rpx;
 							height: 150rpx;
-							border-radius: 16rpx;
 							display: flex;
 							align-items: center;
 							justify-content: center;
 							position: relative;
 							margin-right: 16rpx;
-
+							
 							&:last-child {
 								margin-right: 0 !important;
 							}
@@ -550,6 +554,8 @@
 							.images {
 								width: 150rpx;
 								height: 150rpx;
+								border-radius: 16rpx;
+								overflow: hidden;
 								display: flex;
 								align-items: center;
 								justify-content: center;

--
Gitblit v1.9.3