新增商品其他售价逻辑

修复下单重复创建订单问题
This commit is contained in:
2024-05-16 15:38:34 +08:00
parent 62c9994444
commit f547216c2b
8 changed files with 52 additions and 17 deletions

View File

@@ -85,6 +85,7 @@ const show = async (goodsId: string, fn: Function) => {
callback = fn;
goodsDetailBean.value = await getGoodsDetail(goodsId);
goodsDetailBean.value.price = userStore.getRealGoodsPrice(goodsDetailBean.value?.price,goodsDetailBean.value?.priceExt)
goodsDetailBean.value.consumePrice = Number((goodsDetailBean.value?.price * userInfo?.value.userDiscount).toFixed(2));
if((goodsDetailBean.value?.stocks?.length || 0) <= 0) {