去除部分打印,显示价格组件修改

This commit is contained in:
2025-12-22 16:09:45 +08:00
parent 8b3228e359
commit 8bd5956340
5 changed files with 80 additions and 73 deletions

View File

@@ -2,6 +2,7 @@ import {
defineStore
} from "pinia";
// import yskUtils from 'ysk-utils'
import yskUtils from '@/lib/index'
// const {
// OrderPriceCalculator,
// BaseCartItem,
@@ -12,8 +13,6 @@ import {
// MerchantReductionType,
// GoodsType
// } = yskUtils
// import yskUtils from '@/lib/index'
import yskUtils from 'ysk-utils'
const {
OrderPriceCalculator
} = yskUtils
@@ -327,10 +326,15 @@ export const useCartsStore = defineStore("cart", () => {
if (!item) {
return null
}
const is_time_discount = yskUtils.limitUtils.canUseLimitTimeDiscount(v, limitTimeDiscount
console.log('v',v);
console.log('limitTimeDiscount',limitTimeDiscount.value);
console.log('shopInfo',shopInfo.value);
console.log('shopUserInfo',shopUserInfo.value);
const is_time_discount = yskUtils.limitUtils.canUseLimitTimeDiscount({...v,memberPrice:item.memberPrice}, limitTimeDiscount
.value,
shopInfo.value,
shopUserInfo.value, 'product_id');
console.log('is_time_discount',is_time_discount);
return {
...item,
is_time_discount: is_time_discount ? 1 : 0