yujialong 5 months ago
parent 26d4d20643
commit 95dfc84958
  1. 1
      order/addCourse/addCourse.vue
  2. 6
      order/editCourse/editCourse.vue

@ -321,7 +321,6 @@
this.handleRenew(4, customerId, list4, result, resolve, reject) this.handleRenew(4, customerId, list4, result, resolve, reject)
})) }))
Promise.all(promises).then(_ => { Promise.all(promises).then(_ => {
this.submiting = false
uni.setStorageSync('courses', result) // uni.setStorageSync('courses', result) //
uni.redirectTo({ uni.redirectTo({
url: `../editCourse/editCourse?customerId=${customerId}&orderType=${this.orderType}` url: `../editCourse/editCourse?customerId=${customerId}&orderType=${this.orderType}`

@ -103,7 +103,8 @@
orderRepeat: [], orderRepeat: [],
repeatMsg: '', repeatMsg: '',
err: '', err: '',
rate: '' rate: '',
submiting: false,
} }
}, },
onShow() { onShow() {
@ -336,6 +337,7 @@
}, },
// //
submit() { submit() {
if (this.submiting) return false
const { courses } = this const { courses } = this
const list = [] const list = []
let msg = '' let msg = ''
@ -343,7 +345,6 @@
for (const i in courses) { for (const i in courses) {
list.push(...courses[i].list) list.push(...courses[i].list)
} }
console.log(11, list)
// //
for (const i in list) { for (const i in list) {
const e = list[i] const e = list[i]
@ -371,6 +372,7 @@
} }
if (msg) return this.$util.errMsg(msg) if (msg) return this.$util.errMsg(msg)
if (this.orderRepeat.length) return this.$util.errMsg(this.repeatMsg) // if (this.orderRepeat.length) return this.$util.errMsg(this.repeatMsg) //
this.submiting = true
list.forEach(e => { list.forEach(e => {
e.edited = 1 // e.edited = 1 //
}) })

Loading…
Cancel
Save