增加购物车修改数量弹窗

This commit is contained in:
2026-01-17 11:05:55 +08:00
parent b35d165f7a
commit 410b0501af
2 changed files with 18 additions and 1 deletions

View File

@@ -41,7 +41,7 @@
:key="index"
>
<view>
<view class="up-line-1" style="max-width: 240rpx;">{{ item.name }}</view>
<view class="up-line-1" :style="returnStyle(item)">{{ item.name }}</view>
<view class="u-m-t-10 u-font-24 color-666 up-line-1">{{
item.specInfo || ""
}}</view>
@@ -234,6 +234,20 @@ const props = defineProps({
});
function returnStyle(item){
let width=360
let priceLen=0
if(item.is_time_discount){
priceLen+=`${formatPrice(item.lowPrice * item.number)}`.length
priceLen+=`${returnLimitTotalPrice(item)}`.length
}else{
priceLen+=`${formatPrice(item.lowPrice * item.number)}`.length
}
width-=16*priceLen
return {
width:width+'rpx'
}
}
function returnLimitPrice(data) {
const price = yskUtils.limitUtils.returnPrice({

View File

@@ -51,6 +51,9 @@
const integer=computed(()=>{
if(!props.goods){
return true
}
if(props.goods.product_type=="weight"){
return false
}