Merge branch 'prod' of https://newgitea.sxczgkj.cn/czg_team/cashier_wx into test
This commit is contained in:
@@ -49,15 +49,16 @@
|
|||||||
<view class="panelfive_list">
|
<view class="panelfive_list">
|
||||||
<view class="panelfiveitem" @click="clickspecifications(item, index, index, '热销')"
|
<view class="panelfiveitem" @click="clickspecifications(item, index, index, '热销')"
|
||||||
v-for="(item, index) in shopProductList.hots" :key="index">
|
v-for="(item, index) in shopProductList.hots" :key="index">
|
||||||
<!-- <view class="limitDiscount" v-if="showLimitDiscount(item)"
|
|
||||||
>限时折扣{{limitDiscountCountdown}}</view
|
|
||||||
> -->
|
|
||||||
|
|
||||||
<view class="relative">
|
<view class="relative">
|
||||||
<image @click.stop="getImgs(item)" class="panelfiveitemimage" :src="item.coverImg"
|
<image @click.stop="getImgs(item)" class="panelfiveitemimage" :src="item.coverImg"
|
||||||
mode="aspectFill"></image>
|
mode="aspectFill"></image>
|
||||||
<view class="limitDiscount" v-if="item.is_time_discount">
|
<view class="limitDiscount" v-if="showLimitDiscount(item)"
|
||||||
限时折扣{{ limitDiscountCountdown }}</view>
|
>限时折扣{{ limitDiscountCountdown }}</view
|
||||||
|
>
|
||||||
|
<!-- <view class="limitDiscount" v-if="item.is_time_discount">
|
||||||
|
限时折扣{{ limitDiscountCountdown }}</view> -->
|
||||||
<view class="stock_warning" v-if="item.isStock&&item.stockNumber<=10">
|
<view class="stock_warning" v-if="item.isStock&&item.stockNumber<=10">
|
||||||
仅剩{{item.stockNumber}}份</view>
|
仅剩{{item.stockNumber}}份</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -203,8 +204,12 @@
|
|||||||
<image class="goodsImg"
|
<image class="goodsImg"
|
||||||
src="https://czg-qr-order.oss-cn-beijing.aliyuncs.com/index/1.gif" mode=""
|
src="https://czg-qr-order.oss-cn-beijing.aliyuncs.com/index/1.gif" mode=""
|
||||||
v-else :lazy-load="true"></image>
|
v-else :lazy-load="true"></image>
|
||||||
<view class="limitDiscount" v-if="item1.is_time_discount">
|
<view class="limitDiscount" v-if="showLimitDiscount(item1)"
|
||||||
限时折扣{{ limitDiscountCountdown }}</view>
|
>限时折扣{{ limitDiscountCountdown }}</view
|
||||||
|
>
|
||||||
|
|
||||||
|
<!-- <view class="limitDiscount" v-if="item1.is_time_discount">
|
||||||
|
限时折扣{{ limitDiscountCountdown }}</view> -->
|
||||||
<view class="stock_warning" v-if="item1.isStock&&item1.stockNumber<=10">
|
<view class="stock_warning" v-if="item1.isStock&&item1.stockNumber<=10">
|
||||||
仅剩{{item1.stockNumber}}份</view>
|
仅剩{{item1.stockNumber}}份</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -266,12 +271,11 @@
|
|||||||
:shopUserInfo="shopUserInfo" :shopInfo="shopInfo"></GoodsPrice>
|
:shopUserInfo="shopUserInfo" :shopInfo="shopInfo"></GoodsPrice>
|
||||||
</view>
|
</view>
|
||||||
<text class="money_num" v-if="item1.unitName">/{{ item1.unitName }}</text>
|
<text class="money_num" v-if="item1.unitName">/{{ item1.unitName }}</text>
|
||||||
<!-- <text class="old-price" v-if=" showLimitDiscount(item1)"
|
|
||||||
>¥{{ item1.salePrice }}</text
|
|
||||||
> -->
|
|
||||||
<text class="old-price"
|
|
||||||
v-if="item1.is_time_discount">¥{{ item1.salePrice }}</text>
|
|
||||||
|
|
||||||
|
<text class="old-price"
|
||||||
|
v-if="showLimitDiscount(item1)">¥{{ item1.salePrice }}</text>
|
||||||
|
<!-- <text class="old-price"
|
||||||
|
v-if="item1.is_time_discount">¥{{ item1.salePrice }}</text> -->
|
||||||
<!-- <text v-if="item1.suitNum>1 && item1.type!= 'sku'"
|
<!-- <text v-if="item1.suitNum>1 && item1.type!= 'sku'"
|
||||||
style="font-size: 14rpx;">
|
style="font-size: 14rpx;">
|
||||||
「{{item1.suitNum}}{{item1.unitName}}起点」
|
「{{item1.suitNum}}{{item1.unitName}}起点」
|
||||||
@@ -1194,7 +1198,7 @@
|
|||||||
memberPrice: specifications.item.memberPrice,
|
memberPrice: specifications.item.memberPrice,
|
||||||
is_print: 1,
|
is_print: 1,
|
||||||
product_type: specifications.item.type,
|
product_type: specifications.item.type,
|
||||||
is_time_discount: specifications.item.is_time_discount,
|
is_time_discount: showLimitDiscount(specifications.item)
|
||||||
});
|
});
|
||||||
// 清空套餐选中
|
// 清空套餐选中
|
||||||
selectedGroupSnap.value = [];
|
selectedGroupSnap.value = [];
|
||||||
@@ -1214,7 +1218,7 @@
|
|||||||
memberPrice: specifications.item.memberPrice,
|
memberPrice: specifications.item.memberPrice,
|
||||||
is_print: 1,
|
is_print: 1,
|
||||||
product_type: specifications.item.type,
|
product_type: specifications.item.type,
|
||||||
is_time_discount: specifications.item.is_time_discount,
|
is_time_discount: showLimitDiscount(specifications.item)
|
||||||
});
|
});
|
||||||
showShopsku.value = false;
|
showShopsku.value = false;
|
||||||
|
|
||||||
@@ -1419,7 +1423,7 @@
|
|||||||
number: await calculateValue(item.cartNumber, i, suitNum),
|
number: await calculateValue(item.cartNumber, i, suitNum),
|
||||||
is_print: 1,
|
is_print: 1,
|
||||||
product_type: item.type,
|
product_type: item.type,
|
||||||
is_time_discount: item.is_time_discount
|
is_time_discount: showLimitDiscount(item)
|
||||||
};
|
};
|
||||||
if (item.cartListId) {
|
if (item.cartListId) {
|
||||||
sendMsg.id = item.cartListId;
|
sendMsg.id = item.cartListId;
|
||||||
@@ -1876,7 +1880,8 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (limitTimeDiscountRes.value && limitTimeDiscountRes.value.id && item.is_time_discount ==
|
console.log('limitTimeDiscountRes',item)
|
||||||
|
if (limitTimeDiscountRes.value && limitTimeDiscountRes.value.id && item.cartListinfo.is_time_discount ==
|
||||||
1) {
|
1) {
|
||||||
//限时折扣
|
//限时折扣
|
||||||
const price = limitUtils.returnPrice({
|
const price = limitUtils.returnPrice({
|
||||||
@@ -1886,6 +1891,7 @@
|
|||||||
shopUserInfo: shopUserInfo.value,
|
shopUserInfo: shopUserInfo.value,
|
||||||
idKey: 'id'
|
idKey: 'id'
|
||||||
});
|
});
|
||||||
|
console.log('限时折扣',price)
|
||||||
return total + parseFloat(price) * parseFloat(item.cartNumber);
|
return total + parseFloat(price) * parseFloat(item.cartNumber);
|
||||||
}
|
}
|
||||||
// 是否启用会员价 0否1是
|
// 是否启用会员价 0否1是
|
||||||
@@ -2044,8 +2050,6 @@
|
|||||||
product.cartNumber = 0;
|
product.cartNumber = 0;
|
||||||
product.isSaleTimeshow = await isProductAvailable(product.days, product
|
product.isSaleTimeshow = await isProductAvailable(product.days, product
|
||||||
.startTime, product.endTime);
|
.startTime, product.endTime);
|
||||||
product.is_time_discount = showLimitDiscount(product) ? 1 : 0;
|
|
||||||
product.limitSalePrice = returnLimitPrice(product);
|
|
||||||
|
|
||||||
cartStore.setGoodsMap(product.id, product);
|
cartStore.setGoodsMap(product.id, product);
|
||||||
});
|
});
|
||||||
@@ -2053,8 +2057,6 @@
|
|||||||
shopProductList.hots.forEach(async (i) => {
|
shopProductList.hots.forEach(async (i) => {
|
||||||
i.cartNumber = 0;
|
i.cartNumber = 0;
|
||||||
i.isSaleTimeshow = await isProductAvailable(i.days, i.startTime, i.endTime);
|
i.isSaleTimeshow = await isProductAvailable(i.days, i.startTime, i.endTime);
|
||||||
i.is_time_discount = showLimitDiscount(i) ? 1 : 0;
|
|
||||||
i.limitSalePrice = returnLimitPrice(i);
|
|
||||||
cartStore.setGoodsMap(i.id, i);
|
cartStore.setGoodsMap(i.id, i);
|
||||||
});
|
});
|
||||||
console.log('shopProductList', shopProductList);
|
console.log('shopProductList', shopProductList);
|
||||||
|
|||||||
Reference in New Issue
Block a user