msb_prod
ch 2 years ago
parent 952569d12a
commit 37d262e108

@ -2,7 +2,7 @@
* @Author: ch
* @Date: 2022-07-08 11:46:30
* @LastEditors: ch
* @LastEditTime: 2022-07-12 15:25:40
* @LastEditTime: 2022-07-12 15:36:28
* @Description: file content
-->
<template>
@ -76,7 +76,7 @@ const ENV = process.env;
pay(){
this.openId = uni.getStorageSync('payOpenId');
if(this.payType === 'wxpay'){
if(this.openId && WeixinJSBridge){
if(this.openId){
this.wxJsapiPay()
}else{
this.wxH5Pay();
@ -101,9 +101,9 @@ const ENV = process.env;
signType : par.signType,
paySign : par.paySign
}, async res => {
if(res.err_msg !== 'get_brand_wcpay_request:cancel'){
if(res.err_msg.includes('chooseWXPay:fail')){
await uni._$toast(res.err_msg);
if(res !== 'get_brand_wcpay_request:cancel'){
if(res !== 'get_brand_wcpay_request:ok'){
await uni._$toast(res);
}
if(this.orderInfo.returnUrl){
window.location.replace(this.orderInfo.returnUrl);

Loading…
Cancel
Save