更新:课程与图书选择商品公共组件价格处理
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user