更新:课程与图书选择商品公共组件价格处理

This commit is contained in:
2025-11-25 15:20:27 +08:00
parent 7dea269e6a
commit 6b76173b5c
5 changed files with 101 additions and 68 deletions

View File

@@ -137,7 +137,8 @@ import PayWay from '@/components/order/PayWay.vue'
// 使用页面传参
interface Props {
goodsList: IOrderGoods[],
userInfo: object
userInfo: object,
allowPointPay: boolean,
}
const props = withDefaults(defineProps<Props>(), {
goodsList: () => [],
@@ -320,7 +321,8 @@ const getAvailableCoupons = async () => {
* 计算最终价格
*/
const calculateFinalPrice = () => {
const couponAmount = selectedCoupon.value?.couponEntity.couponAmount || 0
// const couponAmount = selectedCoupon.value?.couponEntity.couponAmount || 0
const couponAmount = 0
// 计算最大可用积分
const orderAmountAfterDiscount = totalPrice.value - districtAmount.value - vipPrice.value