|
@@ -58,8 +58,8 @@ Page({
|
|
const form = that.data.form;
|
|
const form = that.data.form;
|
|
const user = that.data.user;
|
|
const user = that.data.user;
|
|
var money = '';
|
|
var money = '';
|
|
- if (form.type == '0') money = form.real_money;
|
|
|
|
- else if (form.type == '1') money = form.money;
|
|
|
|
|
|
+ if (form.type == '0') money = form.money;
|
|
|
|
+ else if (form.type == '1') money = form.real_money;
|
|
wx.showModal({
|
|
wx.showModal({
|
|
title: '提示',
|
|
title: '提示',
|
|
content: '您是否确定报名?',
|
|
content: '您是否确定报名?',
|
|
@@ -82,7 +82,7 @@ Page({
|
|
let lessonStudent = await app.$post(`/lessonStudent`, params);
|
|
let lessonStudent = await app.$post(`/lessonStudent`, params);
|
|
if (lessonStudent.errcode == '0') {
|
|
if (lessonStudent.errcode == '0') {
|
|
wx.showToast({ title: `报名申请完成`, icon: 'success', duration: 2000 });
|
|
wx.showToast({ title: `报名申请完成`, icon: 'success', duration: 2000 });
|
|
- const pay = await app.$post(`/payOrder/${arr.data.data._id}`, { from_id: lessonStudent.data._id });
|
|
|
|
|
|
+ const pay = await app.$post(`/payOrder/${arr.data.data._id}`, { from_id: lessonStudent.data._id, status: '1' });
|
|
if (pay.errcode == '0') that.watchLogin();
|
|
if (pay.errcode == '0') that.watchLogin();
|
|
}
|
|
}
|
|
else wx.showToast({ title: `${lessonStudent.errmsg}`, icon: 'error', duration: 2000 })
|
|
else wx.showToast({ title: `${lessonStudent.errmsg}`, icon: 'error', duration: 2000 })
|