Merge branch 'main' of http://47.109.71.130:3000/attiya/ebike-ui
This commit is contained in:
commit
a6db7a14b4
@ -72,11 +72,13 @@
|
|||||||
}
|
}
|
||||||
const handlePaymentClick = () => {
|
const handlePaymentClick = () => {
|
||||||
console.log('支付按钮被点击');
|
console.log('支付按钮被点击');
|
||||||
const params = {
|
|
||||||
"orderId": props.orderId
|
// const params = {
|
||||||
}
|
// "orderId": props.orderId
|
||||||
api.callPaymentApi("wxPayment/prepay", params).then(res => {
|
// }
|
||||||
|
api.callPaymentApi("wxPayment/prepay?orderId="+props.orderId, {},"get").then(res => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
|
debugger;
|
||||||
wx.requestPayment({
|
wx.requestPayment({
|
||||||
"timeStamp": res.data.timeStamp,
|
"timeStamp": res.data.timeStamp,
|
||||||
"nonceStr": res.data.nonceStr,
|
"nonceStr": res.data.nonceStr,
|
||||||
@ -88,10 +90,10 @@
|
|||||||
checkPaymentStatus();
|
checkPaymentStatus();
|
||||||
},
|
},
|
||||||
"fail": function(res) {
|
"fail": function(res) {
|
||||||
showModelMessage("支付失败")
|
console.log("fail", res)
|
||||||
},
|
},
|
||||||
"complete": function(res) {
|
"complete": function(res) {
|
||||||
showModelMessage("支付失败")
|
console.log("complete",res)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
@ -31,9 +31,9 @@
|
|||||||
<view class="button-with-border" @click="gotoRefundRequest">
|
<view class="button-with-border" @click="gotoRefundRequest">
|
||||||
申请退款
|
申请退款
|
||||||
</view>
|
</view>
|
||||||
<view class="button-with-border">
|
<!-- <view class="button-with-border">
|
||||||
已关锁仍计费
|
已关锁仍计费
|
||||||
</view>
|
</view> -->
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|||||||
@ -52,7 +52,7 @@
|
|||||||
"orderId": orderId.value,
|
"orderId": orderId.value,
|
||||||
"reason": reason.value
|
"reason": reason.value
|
||||||
}
|
}
|
||||||
api.callPaymentApi("wxPayment/refund", params).then(res => {
|
api.callPaymentApi("wxPayment/refundApply", params).then(res => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
// 显示退款成功的提示
|
// 显示退款成功的提示
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user