zs 2 年之前
父節點
當前提交
28592b6f63
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      pages/stuAdmin/open/sign.js

+ 2 - 2
pages/stuAdmin/open/sign.js

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