|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
* @Author: ch
|
|
|
|
|
* @Date: 2022-07-08 11:46:30
|
|
|
|
|
* @LastEditors: ch
|
|
|
|
|
* @LastEditTime: 2022-07-12 14:44:17
|
|
|
|
|
* @LastEditTime: 2022-07-12 14:47:21
|
|
|
|
|
* @Description: file content
|
|
|
|
|
-->
|
|
|
|
|
<template>
|
|
|
|
@ -117,14 +117,14 @@ const ENV = process.env;
|
|
|
|
|
const {error, result} = await this.getPayData('WX_H5');
|
|
|
|
|
if(result){
|
|
|
|
|
// 到这必然是h5页面所以可以用window这个API
|
|
|
|
|
window.location.replace(data.payDataInfo.h5Url);
|
|
|
|
|
window.location.replace(result.payDataInfo.h5Url);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
async aliPay(){
|
|
|
|
|
const {error, result} = await this.getPayData('ALI_WAP');
|
|
|
|
|
if(result){
|
|
|
|
|
// 到这必然是h5页面所以可以用window这个API
|
|
|
|
|
window.location.replace(data.payDataInfo.payUrl);
|
|
|
|
|
window.location.replace(result.payDataInfo.payUrl);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
async getPayData(payCode){
|
|
|
|
|