zs %!s(int64=2) %!d(string=hai) anos
pai
achega
28592b6f63
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      pages/stuAdmin/open/sign.js

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

@@ -24,8 +24,8 @@ Page({
                 if (res.confirm) {
                 if (res.confirm) {
                     var student = { id: user.info.id, name: user.info.name }
                     var student = { id: user.info.id, name: user.info.name }
                     form.student.push(student);
                     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 wx.showToast({ title: `${arr.errmsg}`, icon: 'error', duration: 2000 })
                 } else if (res.cancel) { }
                 } else if (res.cancel) { }
             }
             }