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)
}))
Promise.all(promises).then(_ => {
this.submiting = false
uni.setStorageSync('courses', result) //
uni.redirectTo({
url: `../editCourse/editCourse?customerId=${customerId}&orderType=${this.orderType}`

@ -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 //
})

Loading…
Cancel
Save