feat: 2.0发布
This commit is contained in:
@@ -24,6 +24,7 @@ interface PackageItem {
|
||||
discount: string; // 累计优惠描述,如"根据累加充值已优惠 ¥47.00"
|
||||
goodsName: string; // 用于创建订单
|
||||
discountAmount?: number; // 优惠金额(从discount字段解析)
|
||||
goodsType?: any; // 商品枚举
|
||||
}
|
||||
|
||||
// 商品数据(从接口获取)
|
||||
@@ -73,6 +74,7 @@ async function fetchGoodsList() {
|
||||
tag: item.remark || '',
|
||||
discount: item.discountDescription || '',
|
||||
goodsName: item.goodsName,
|
||||
goodsType: item.goodsType,
|
||||
}));
|
||||
|
||||
// 转换Token商品数据(字段含义保持原定义)
|
||||
@@ -95,6 +97,7 @@ async function fetchGoodsList() {
|
||||
tag: item.remark || '',
|
||||
discount: item.discountDescription || '',
|
||||
goodsName: item.goodsName,
|
||||
goodsType: item.goodsType,
|
||||
discountAmount,
|
||||
};
|
||||
});
|
||||
@@ -229,7 +232,7 @@ async function pay() {
|
||||
try {
|
||||
const returnUrl = `${window.location.origin}/pay-result`;
|
||||
const params = {
|
||||
goodsName: selectPackageObject.value.goodsName,
|
||||
GoodsType: selectPackageObject.value.goodsType,
|
||||
ReturnUrl: returnUrl,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user