0417-5
This commit is contained in:
parent
3da6ffc4ae
commit
998de8e951
@ -535,7 +535,7 @@
|
|||||||
// 微信支付(新订单)
|
// 微信支付(新订单)
|
||||||
async wxPayClick(name, phone, identity, courseId, payType, reserveMoney, restMoney) {
|
async wxPayClick(name, phone, identity, courseId, payType, reserveMoney, restMoney) {
|
||||||
const res = await request({
|
const res = await request({
|
||||||
url: '/small/jxInfo/onLinePay',
|
url: '/app-api/small/jxInfo/onLinePay',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: {
|
data: {
|
||||||
userName: name,
|
userName: name,
|
||||||
@ -559,7 +559,7 @@
|
|||||||
this.orderNo = res.orderNo;
|
this.orderNo = res.orderNo;
|
||||||
|
|
||||||
const prepayRes = await request({
|
const prepayRes = await request({
|
||||||
url: `/small/jxInfo/prepayment?type=jsapi&orderNo=${this.orderNo}&orderId=${this.orderId}&payType=${payType}`,
|
url: `/app-api/small/jxInfo/prepayment?type=jsapi&orderNo=${this.orderNo}&orderId=${this.orderId}&payType=${payType}`,
|
||||||
method: 'get'
|
method: 'get'
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -577,7 +577,7 @@
|
|||||||
// 线下支付
|
// 线下支付
|
||||||
async xxiaPayClick() {
|
async xxiaPayClick() {
|
||||||
const res = await request({
|
const res = await request({
|
||||||
url: '/small/jxInfo/offLinePay',
|
url: '/app-api/small/jxInfo/offLinePay',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: {
|
data: {
|
||||||
userName: this.name,
|
userName: this.name,
|
||||||
@ -691,7 +691,7 @@
|
|||||||
// 4. 处理支付
|
// 4. 处理支付
|
||||||
if (this.startPay === 1) {
|
if (this.startPay === 1) {
|
||||||
const res = await request({
|
const res = await request({
|
||||||
url: `/small/jxInfo/prepayment?type=jsapi&orderNo=${this.orderNo}&orderId=${this.orderId}&payType=${payType}`,
|
url: `/app-api/small/jxInfo/prepayment?type=jsapi&orderNo=${this.orderNo}&orderId=${this.orderId}&payType=${payType}`,
|
||||||
method: 'get'
|
method: 'get'
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -822,7 +822,7 @@
|
|||||||
// 获取新订单号
|
// 获取新订单号
|
||||||
async generateOrderNo() {
|
async generateOrderNo() {
|
||||||
const res = await request({
|
const res = await request({
|
||||||
url: '/small/jxInfo/generateOrderNo',
|
url: '/app-api/small/jxInfo/generateOrderNo',
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
});
|
});
|
||||||
return res
|
return res
|
||||||
|
Loading…
Reference in New Issue
Block a user