Commit 3228b9d5 by 张立顺

代码上线

1 parent d0294a53
......@@ -167,7 +167,7 @@ Page({
// wx.switchTab({
// url: '/pages/tab/index/index'
// })
console.log(error);
console.log(error)
wx.showToast({
title: '支付失败',
icon: 'error'
......@@ -211,7 +211,6 @@ Page({
//util.showLoading('加载中...')
console.log(op)
this.getOrderDetail(op)
}
}
}
......@@ -219,12 +218,12 @@ Page({
}
},
getOrderDetail(item) {
console.log(item,'item');
console.log(item, 'item')
let { orderCode } = item
api.getOrderDetail({orderCode}).then(res=>{
console.log(res,'res')
let { code, data,errId } = res
api.getOrderDetail({ orderCode }).then(res => {
console.log(res, 'res')
let { code, data, errId } = res
// console.log(data, 'data')
// console.log(data.sceneType == 1);
// debugger
......@@ -233,31 +232,30 @@ Page({
sceneType: data.sceneType == 1
})
// 必须要订单 为待支付才能发起支付
if (data?.payOrder == null ||data.payOrder.payStatus == 1) {
if (data?.payOrder == null || data.payOrder.payStatus == 1) {
this.getInfo(item)
}else{
} else {
wx.showToast({
title: '非待支付订单',
icon: 'error'
})
}
}else if(errId == '-5003') {
} else if (errId == '-5003') {
wx.showToast({
title: '订单已失效',
icon: 'error'
})
}else{
} else {
wx.showToast({
title: '请求失败',
icon: 'error'
})
}
})
// ,
// res => {
// // else {
// // util.showToast('系统异常')
// // }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!