提交代码

This commit is contained in:
xiaogang 2024-12-18 09:35:57 +08:00
parent 360655a082
commit cbf12ed872
5 changed files with 9 additions and 6 deletions

View File

@ -10,5 +10,6 @@
# 邮储音视频活动(测试环境)
VITE_BASE_URL = 'https://gateway.dev.cdlsxd.cn/ycav'
VITE_YCNC_MERCH_CODE = '100610100019042'
# VITE_YCNC_MERCH_CODE = '100610100019042'
VITE_YCNC_MERCH_CODE = '100310100018908'

View File

@ -150,6 +150,7 @@ const goRefund = () => {
icon: 'success',
title: '退款成功',
});
getDetail();
}).catch(err => {
console.log(err);
})

View File

@ -20,7 +20,7 @@ export default function usePay(){
MercUrl:notify_url,
TranAmt:tranAmt,
TermSsn:order_no,
BackLink:encodeURIComponent(`${window.location.origin}/#/pages/ycysp/orderDetail?order_no=${order_no}&isPayBack=true`),
BackLink:encodeURIComponent(`${window.location.origin}${window.location.pathname || ''}/#/pages/ycysp/orderDetail?order_no=${order_no}&isPayBack=true`),
psbcmcc:'LSXD',
TxnDt:dayjs(Date.now()).format('YYYY-MM-DD'),
MercCode:MercCode,
@ -33,8 +33,8 @@ export default function usePay(){
sign:sign,
Signature: '',
}
console.log('handCodePay-plain',Plain);
console.log('handCodePay-params',params);
console.log('CodePay-plain',Plain);
console.log('CodePay-params',params);
Fw.device.api.handCodePay(params);
}
return {payFunc}

View File

@ -165,7 +165,7 @@ function refund(orderData) {
});
return;
}
const params = { order_id: id };
const params = { id: id };
refundOrder({ params })
.then((res) => {
uni.showToast({

View File

@ -133,13 +133,14 @@ const goRefund = () => {
});
return;
}
const params = { order_id: id };
const params = { id: id };
refundOrder({ params })
.then((res) => {
uni.showToast({
icon: "success",
title: "退款成功",
});
getDetail();
})
.catch((err) => {
console.log(err);