diff --git a/order/addCourse/addCourse.vue b/order/addCourse/addCourse.vue index 9aeccc6..3fb5ba2 100644 --- a/order/addCourse/addCourse.vue +++ b/order/addCourse/addCourse.vue @@ -321,7 +321,6 @@ this.handleRenew(4, customerId, list4, result, resolve, reject) })) Promise.all(promises).then(_ => { - this.submiting = false uni.setStorageSync('courses', result) // 把选中的产品添加至缓存 uni.redirectTo({ url: `../editCourse/editCourse?customerId=${customerId}&orderType=${this.orderType}` diff --git a/order/editCourse/editCourse.vue b/order/editCourse/editCourse.vue index ffcac03..4a13e0a 100644 --- a/order/editCourse/editCourse.vue +++ b/order/editCourse/editCourse.vue @@ -103,7 +103,8 @@ orderRepeat: [], repeatMsg: '', err: '', - rate: '' + rate: '', + submiting: false, } }, onShow() { @@ -336,6 +337,7 @@ }, // 确定 submit() { + if (this.submiting) return false const { courses } = this const list = [] let msg = '' @@ -343,7 +345,6 @@ for (const i in courses) { list.push(...courses[i].list) } - console.log(11, list) // 必填校验 for (const i in list) { const e = list[i] @@ -371,6 +372,7 @@ } if (msg) return this.$util.errMsg(msg) if (this.orderRepeat.length) return this.$util.errMsg(this.repeatMsg) // 有重复订单不能提交 + this.submiting = true list.forEach(e => { e.edited = 1 // 未编辑过的标识,编辑过了的产品在编辑产品页不再显示 })