diff --git a/pagesCreateOrder/index/components/car.vue b/pagesCreateOrder/index/components/car.vue index 61f7156..a6e27d1 100644 --- a/pagesCreateOrder/index/components/car.vue +++ b/pagesCreateOrder/index/components/car.vue @@ -41,7 +41,7 @@ :key="index" > - {{ item.name }} + {{ item.name }} {{ item.specInfo || "" }} @@ -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({ diff --git a/pagesCreateOrder/index/components/popup-change-number.vue b/pagesCreateOrder/index/components/popup-change-number.vue index a94f575..38dc20c 100644 --- a/pagesCreateOrder/index/components/popup-change-number.vue +++ b/pagesCreateOrder/index/components/popup-change-number.vue @@ -51,6 +51,9 @@ const integer=computed(()=>{ + if(!props.goods){ + return true + } if(props.goods.product_type=="weight"){ return false }