|
@@ -1,7 +1,7 @@
|
|
|
|
|
|
import wxpay from '@service.wxpay';
|
|
import wxpay from '@service.wxpay';
|
|
import alipay from '@service.alipay';
|
|
import alipay from '@service.alipay';
|
|
-import { wxH5Pay, getConfigOfWxAppPay, qappAliPay } from "../api";
|
|
|
|
|
|
+import { qappWxH5Pay, getConfigOfWxAppPay, qappAliPay } from "../api";
|
|
|
|
|
|
export const pageLoad = (meta, fn, params) => {
|
|
export const pageLoad = (meta, fn, params) => {
|
|
return new Promise(async (resolve, reject) => {
|
|
return new Promise(async (resolve, reject) => {
|
|
@@ -25,7 +25,7 @@ export const configWxPay = async (params) => {
|
|
// h5支付
|
|
// h5支付
|
|
let useWxH5Pay = (params) => {
|
|
let useWxH5Pay = (params) => {
|
|
return new Promise(async (resolve, reject) => {
|
|
return new Promise(async (resolve, reject) => {
|
|
- let config = await wxH5Pay(params);
|
|
|
|
|
|
+ let config = await qappWxH5Pay(params);
|
|
let extra = {
|
|
let extra = {
|
|
mweb_url: config.mweb_url + "&redirect_url=" + encodeURIComponent("https://quickapp.leyuee.com/testp")
|
|
mweb_url: config.mweb_url + "&redirect_url=" + encodeURIComponent("https://quickapp.leyuee.com/testp")
|
|
}
|
|
}
|