增加购物车修改数量弹窗
This commit is contained in:
@@ -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({
|
||||
|
||||
@@ -51,6 +51,9 @@
|
||||
|
||||
|
||||
const integer=computed(()=>{
|
||||
if(!props.goods){
|
||||
return true
|
||||
}
|
||||
if(props.goods.product_type=="weight"){
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user