修复订单结算私域引流弹窗问题,修复后付费模式下确认订单显示问题
This commit is contained in:
@@ -61,7 +61,9 @@
|
||||
:shopInfo="shopInfo"
|
||||
idKey="product_id"
|
||||
></goodsPrice>
|
||||
<view class="old-price" v-if="showLimitDiscount(item)">¥{{ item.salePrice }}</view>
|
||||
<view class="old-price" v-if="showLimitDiscount(item)"
|
||||
>¥{{ item.salePrice }}</view
|
||||
>
|
||||
</view>
|
||||
<view class="num">x{{ item.num }}</view>
|
||||
</view>
|
||||
@@ -110,16 +112,24 @@ const shopUserInfo = inject("shopUserInfo");
|
||||
const shopInfo = inject("shopInfo");
|
||||
|
||||
function showLimitDiscount(item) {
|
||||
if (!props.limitDiscount || !props.limitDiscount.id) {
|
||||
return false;
|
||||
if (
|
||||
(item.is_time_discount || item.isTimeDiscount) &&
|
||||
props.limitDiscount &&
|
||||
props.limitDiscount.id
|
||||
) {
|
||||
return true;
|
||||
}
|
||||
return orderUtils.canUseLimitTimeDiscount(
|
||||
item,
|
||||
props.limitDiscount,
|
||||
shopInfo.value,
|
||||
shopUserInfo.value,
|
||||
"productId"
|
||||
);
|
||||
return false;
|
||||
// if (!props.limitDiscount || !props.limitDiscount.id) {
|
||||
// return false;
|
||||
// }
|
||||
// return orderUtils.canUseLimitTimeDiscount(
|
||||
// item,
|
||||
// props.limitDiscount,
|
||||
// shopInfo.value,
|
||||
// shopUserInfo.value,
|
||||
// "productId"
|
||||
// );
|
||||
}
|
||||
onMounted(() => {
|
||||
console.log("props.nowCarts");
|
||||
@@ -542,4 +552,4 @@ const showOldPrice = computed(() => {});
|
||||
text-decoration: line-through;
|
||||
text-align: right;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user