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