浏览代码

修复bug

chenxiong 3 年之前
父节点
当前提交
9a8604a9e5
共有 1 个文件被更改,包括 11 次插入0 次删除
  1. 11 0
      pages2/verify/input2.vue

+ 11 - 0
pages2/verify/input2.vue

@@ -59,6 +59,7 @@ export default {
 				// 	text: '上传文件'
 				// }
 			],
+			isUploading:false,
 			itemStyle: {
 				marginTop: '20px',
 				backgroundColor: '#fff',
@@ -231,14 +232,24 @@ export default {
 			};
 			if (self.remarkStatus) {
 				datas.id = self.id;
+				if(this.isUploading) {
+					return;
+				}
+				this.isUploading = true;
 				self.$api.editbaseprofileStamp(datas).then(res => {
+					this.isUploading = false;
 					if (res.data.code === 200) {
 						self.$method.showToast('提交成功');
 						uni.navigateBack();
 					}
 				});
 			} else {
+				if(this.isUploading) {
+					return;
+				}
+				this.isUploading = true;
 				self.$api.addbaseprofileStamp(datas).then(res => {
+					this.isUploading = false;
 					if (res.data.code === 200) {
 						self.$method.showToast('提交成功');
 						uni.navigateBack();