去除部分打印,显示价格组件修改
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user