提交代码

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_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', icon: 'success',
title: '退款成功', title: '退款成功',
}); });
getDetail();
}).catch(err => { }).catch(err => {
console.log(err); console.log(err);
}) })

View File

@ -20,7 +20,7 @@ export default function usePay(){
MercUrl:notify_url, MercUrl:notify_url,
TranAmt:tranAmt, TranAmt:tranAmt,
TermSsn:order_no, 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', psbcmcc:'LSXD',
TxnDt:dayjs(Date.now()).format('YYYY-MM-DD'), TxnDt:dayjs(Date.now()).format('YYYY-MM-DD'),
MercCode:MercCode, MercCode:MercCode,
@ -33,8 +33,8 @@ export default function usePay(){
sign:sign, sign:sign,
Signature: '', Signature: '',
} }
console.log('handCodePay-plain',Plain); console.log('CodePay-plain',Plain);
console.log('handCodePay-params',params); console.log('CodePay-params',params);
Fw.device.api.handCodePay(params); Fw.device.api.handCodePay(params);
} }
return {payFunc} return {payFunc}

View File

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

View File

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