修复订单退菜弹窗关闭未重置,餐位费退款时限制问题

This commit is contained in:
2024-10-18 17:48:18 +08:00
parent df3cf998c3
commit 8eb51062cc
5 changed files with 10 additions and 6 deletions

View File

@@ -40,7 +40,7 @@
</view>
<view class="u-flex u-flex-1 u-row-right">
<view>×{{item.num}}</view>
<view class="u-m-l-24 u-text-right" :style="computedPriceStyle()">{{item.price}}</view>
<view class="u-text-right" :style="computedPriceStyle()">{{item.price}}</view>
</view>
</view>
</view>
@@ -98,8 +98,9 @@
if (!item) {
return ''
}
const minW=`${item.price}`.length * priceSize + 15
return {
'min-width': `${item.price}`.length * priceSize + 'px'
'min-width':(minW<36?36:minW) + 'px'
}
}
// const computedPriceStyle = computed(() => {