|
@@ -251,6 +251,9 @@ export default {
|
251
|
251
|
'carts'
|
252
|
252
|
])
|
253
|
253
|
},
|
|
254
|
+ onShow() {
|
|
255
|
+ this.disableBtn = false
|
|
256
|
+ },
|
254
|
257
|
onLoad(option) {
|
255
|
258
|
this.attend_id = Number(decodeURIComponent(option.attend_id))
|
256
|
259
|
if (this.attend_id === 0) {
|
|
@@ -278,7 +281,7 @@ export default {
|
278
|
281
|
if (this.carts.includes(this.attend_id)) {
|
279
|
282
|
uni.showToast({ title: '课程已存在,请勿重复添加!', icon: 'none' })
|
280
|
283
|
setTimeout(() => {
|
281
|
|
- this.disableBtn = false
|
|
284
|
+ // this.disableBtn = false
|
282
|
285
|
this.globalNavigateTo('classCart')
|
283
|
286
|
}, 1000)
|
284
|
287
|
return false
|
|
@@ -290,7 +293,7 @@ export default {
|
290
|
293
|
}
|
291
|
294
|
const props = this.goods.props.join(',')
|
292
|
295
|
_joinShop({ class_attend_id: this.attend_id, prop: props }).then(res => {
|
293
|
|
- this.disableBtn = false
|
|
296
|
+ // this.disableBtn = false
|
294
|
297
|
this.globalNavigateTo('classCart')
|
295
|
298
|
})
|
296
|
299
|
},
|