|
@@ -24,8 +24,8 @@ Page({
|
|
|
if (res.confirm) {
|
|
|
var student = { id: user.info.id, name: user.info.name }
|
|
|
form.student.push(student);
|
|
|
- let arr = await app.$post(`/student/${form._id}`, form);
|
|
|
- if (arr.errcode == '0') { wx.showToast({ title: `报名完成`, icon: 'success', duration: 2000 }); that.back(); }
|
|
|
+ let arr = await app.$post(`/lessonPublic/${form._id}`, form);
|
|
|
+ if (arr.errcode == '0') { wx.showToast({ title: `报名完成`, icon: 'success', duration: 2000 }); that.watchLogin(); }
|
|
|
else wx.showToast({ title: `${arr.errmsg}`, icon: 'error', duration: 2000 })
|
|
|
} else if (res.cancel) { }
|
|
|
}
|