更新
This commit is contained in:
@@ -226,7 +226,7 @@
|
||||
wx.request({
|
||||
url: 'http://ip-api.com/json',
|
||||
success: function(e) {
|
||||
console.log(e.data.query);
|
||||
// console.log(e.data.query);
|
||||
that.userIp = e.data.query
|
||||
}
|
||||
})
|
||||
@@ -324,51 +324,26 @@
|
||||
uni.requestPayment({
|
||||
provider: 'wxpay',
|
||||
...res.data.baseWxOrderVo,
|
||||
success: (res1) => {
|
||||
console.log(res)
|
||||
if (res.code == 20000) {
|
||||
// this.getPayStatus(this.outTradeNo)
|
||||
// this.getLastMoney()
|
||||
// this.getCards()
|
||||
// console.log('success:' + JSON.stringify(res));
|
||||
success: (_res) => {
|
||||
uni.showToast({
|
||||
title: res.msg
|
||||
})
|
||||
|
||||
oilPayApi.wxPayIntegral({
|
||||
appId: 'wxc1d226ac9c5bea36',
|
||||
orderId: this.order.orderSerialNumber
|
||||
})
|
||||
uni.redirectTo({
|
||||
url: '/BagStation/pages/makeOrder/payResult?status=success&&payMethod=' +
|
||||
this.payMethod,
|
||||
fail: (err) => {
|
||||
// console.log(err)
|
||||
this.payMethod
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
},
|
||||
fail: function(err) {
|
||||
console.log(res, err, '************')
|
||||
// console.log('fail:' + JSON.stringify(err));
|
||||
}
|
||||
})
|
||||
// uni.showToast({
|
||||
// title: res.msg
|
||||
// })
|
||||
// uni.redirectTo({
|
||||
// url: '/BagStation/pages/makeOrder/payResult?status=success',
|
||||
// fail: (err) => {
|
||||
// console.log(err)
|
||||
// }
|
||||
// })
|
||||
} else {
|
||||
// uni.redirectTo({
|
||||
// url: '/BagStation/pages/makeOrder/payResult?status=fail'
|
||||
// })
|
||||
}
|
||||
|
||||
})
|
||||
},
|
||||
@@ -439,7 +414,7 @@
|
||||
},
|
||||
filters: {
|
||||
moneyFormath(value) {
|
||||
console.log(value)
|
||||
// console.log(value)
|
||||
if (value != 'xxx.x') {
|
||||
let number = value.toFixed(2)
|
||||
return number
|
||||
|
||||
@@ -10,4 +10,12 @@ export default {
|
||||
data: data
|
||||
})
|
||||
},
|
||||
// 积分处理
|
||||
wxPayIntegral(data) {
|
||||
return request({
|
||||
url: '/oil-pay/yiBaoPay/wxPayIntegral',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user