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