This commit is contained in:
lym
2026-03-09 17:17:41 +08:00
parent 8e25ad708b
commit df1e0dbb46

View File

@@ -626,7 +626,8 @@ Page( {
"content-type": "application/x-www-form-urlencoded" // 默认值
},
success (res0) {
console.log('res0为:', res0.data);
console.log('zftype:', that.data.zftype);
if(res0.data.status==1){
if(that.data.zftype==4){
if(res0.data.IFSendSms==1){
@@ -643,7 +644,9 @@ Page( {
})
}
}else if(that.data.zftype==2){
console.log('ResultId:', res0.data.ResultId);
if(res0.data.ResultId>0){
console.log('开始微信支付:', 1);
wx.requestPayment({
timeStamp: res0.data.timeStamp,
nonceStr: res0.data.noncestr,
@@ -651,7 +654,7 @@ Page( {
signType: res0.data.signType,
paySign: res0.data.paySign,
success (res) {
console.log('开始微信支付:',2);
wx.navigateTo({
url: "../myorder/index?nav=0"
})
@@ -659,6 +662,7 @@ Page( {
},
fail (res) {
//JSON.stringify(res)
console.log('开始微信支付:',res);
wx.showToast({
title: "用户取消",
icon: "none",