fix: 动态支付响应页面
This commit is contained in:
@@ -15,7 +15,7 @@ const packagesData = {
|
|||||||
{ id: 2, name: '6个月', desc: '', price: 143.9, perMonth: 23.9, tag: '年度热销', key: 6 },
|
{ id: 2, name: '6个月', desc: '', price: 143.9, perMonth: 23.9, tag: '年度热销', key: 6 },
|
||||||
{ id: 3, name: '3个月', desc: '', price: 80.7, perMonth: 26.9, tag: '短期体验', discount: '', key: 3 },
|
{ id: 3, name: '3个月', desc: '', price: 80.7, perMonth: 26.9, tag: '短期体验', discount: '', key: 3 },
|
||||||
{ id: 4, name: '1个月', desc: '', price: 29.9, originalPrice: 49.9, tag: '灵活选择', discount: '', key: 1 },
|
{ id: 4, name: '1个月', desc: '', price: 29.9, originalPrice: 49.9, tag: '灵活选择', discount: '', key: 1 },
|
||||||
{ id: 5, name: '测试', desc: '', price: 0.01, originalPrice: 9.9, tag: '测试使用', discount: '', key: 0 },
|
// { id: 5, name: '测试', desc: '', price: 0.01, originalPrice: 9.9, tag: '测试使用', discount: '', key: 0 },
|
||||||
],
|
],
|
||||||
token: [
|
token: [
|
||||||
{ id: 6, name: '10M 输入Token', desc: '', price: 49.9, tag: '轻量用户', discount: '' },
|
{ id: 6, name: '10M 输入Token', desc: '', price: 49.9, tag: '轻量用户', discount: '' },
|
||||||
@@ -131,8 +131,12 @@ async function pay() {
|
|||||||
|
|
||||||
isLoading.value = true;
|
isLoading.value = true;
|
||||||
try {
|
try {
|
||||||
|
// const returnUrl = `https://ai.ccnetcore.com/pay-result`;
|
||||||
|
const returnUrl = `${window.location.origin}/pay-result`;
|
||||||
|
|
||||||
const params = {
|
const params = {
|
||||||
goodsType: selectPackageObject.value?.key,
|
goodsType: selectPackageObject.value?.key,
|
||||||
|
ReturnUrl: returnUrl,
|
||||||
};
|
};
|
||||||
|
|
||||||
const response = await createOrder(params);
|
const response = await createOrder(params);
|
||||||
|
|||||||
Reference in New Issue
Block a user