|
@@ -123,6 +123,7 @@ export default defineComponent({
|
|
const forms = reactive({
|
|
const forms = reactive({
|
|
schoolId: route.query.sId as any,
|
|
schoolId: route.query.sId as any,
|
|
paymentType: '', // 支付类型
|
|
paymentType: '', // 支付类型
|
|
|
|
+ paymentChannel: '',
|
|
multi_user_limit: 1, // 限制注册学生数量
|
|
multi_user_limit: 1, // 限制注册学生数量
|
|
// popupShow: false,
|
|
// popupShow: false,
|
|
registerDetails: {} as any,
|
|
registerDetails: {} as any,
|
|
@@ -1050,7 +1051,7 @@ export default defineComponent({
|
|
// 直接去拉取微信支付
|
|
// 直接去拉取微信支付
|
|
onConfirm({
|
|
onConfirm({
|
|
payCode: 'payResult',
|
|
payCode: 'payResult',
|
|
- pay_channel: 'wx_pub'
|
|
|
|
|
|
+ pay_channel: forms.paymentChannel
|
|
});
|
|
});
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -1288,7 +1289,10 @@ export default defineComponent({
|
|
if (item.paramName === 'contract_sign') {
|
|
if (item.paramName === 'contract_sign') {
|
|
forms.contract_sign = item.paramValue === '1' ? true : false;
|
|
forms.contract_sign = item.paramValue === '1' ? true : false;
|
|
} else if (item.paramName === 'payment_service_provider') {
|
|
} else if (item.paramName === 'payment_service_provider') {
|
|
- forms.paymentType = item.paramValue || '';
|
|
|
|
|
|
+ // forms.paymentType = item.paramValue || '';
|
|
|
|
+ const provider = JSON.parse(item.paramValue);
|
|
|
|
+ forms.paymentType = provider.vendor;
|
|
|
|
+ forms.paymentChannel = provider.channel;
|
|
} else if (item.paramName === 'multi_user_limit') {
|
|
} else if (item.paramName === 'multi_user_limit') {
|
|
forms.multi_user_limit = item.paramValue
|
|
forms.multi_user_limit = item.paramValue
|
|
? Number(item.paramValue)
|
|
? Number(item.paramValue)
|