msb_prod
ch 3 years ago
parent 952569d12a
commit 37d262e108

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

Loading…
Cancel
Save