chenxiong hace 3 años
padre
commit
77fa8580f7
Se han modificado 2 ficheros con 12 adiciones y 1 borrados
  1. 11 0
      pages2/verify/input.vue
  2. 1 1
      pages2/wd/class.vue

+ 11 - 0
pages2/verify/input.vue

@@ -306,6 +306,7 @@ export default {
 				borderRadius: '24rpx',
 				padding: '0rpx 20rpx'
 			},
+			isUploading:false,
 			form: {
 				name: '',
 				sex: '',
@@ -606,7 +607,12 @@ export default {
 					goodsId: this.goodsId,
 					keyValue: JSON.stringify(arsty)
 				};
+				if(this.isUploading) {
+					return;
+				}
+				this.isUploading = true;
 				this.$api.editbaseprofiletp(datas).then(res => {
+					this.isUploading = false;
 					if (res.data.code === 200) {
 						this.$method.showToast('提交成功');
 						uni.navigateBack();
@@ -633,7 +639,12 @@ export default {
 					profileTpId: this.goodsId,
 					keyValue: JSON.stringify(objs)
 				};
+				if(this.isUploading) {
+					return;
+				}
+				this.isUploading = true;
 				this.$api.addbaseprofiletp(datas).then(res => {
+					this.isUploading = false;
 					if (res.data.code === 200) {
 						this.$method.showToast('提交成功');
 						uni.navigateBack();

+ 1 - 1
pages2/wd/class.vue

@@ -80,7 +80,7 @@
 													学习状态:
 													<text v-if="item.stuAllNum == 0">未学习</text>
 													<text v-else-if="item.stuAllNum > 0 && item.stuAllNum < item.secAllNum">学习中</text>
-													<text v-else-if="item.stuAllNum == item.secAllNum">已学完</text>
+													<text v-else-if="item.stuAllNum >= item.secAllNum">已学完</text>
 												</template>
 												<template v-else>
 													已过学习有效期,不可以学习了哦!