台桌订单增加显示餐位费,打包费
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<view class="box u-font-32">
|
||||
<view class="u-flex gap-30">
|
||||
<text>开单时间:</text>
|
||||
<text class="color-666">2025/09/22 19:43</text>
|
||||
<text class="color-666" v-if="cartStore.order">{{ cartStore.order.createTime }}</text>
|
||||
</view>
|
||||
<view class="u-flex gap-30 u-m-t-50">
|
||||
<text>就餐人数:</text>
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
</template>
|
||||
</view>
|
||||
</view>
|
||||
<view class="u-flex text-center" style="gap: 54rpx;min-width: 348rpx;">
|
||||
<view class="u-flex text-center" style="gap: 54rpx; min-width: 348rpx">
|
||||
<text class="u-flex-1">{{ item.num }}</text>
|
||||
<view class="u-flex u-flex-1 u-relative">
|
||||
<text class="limit-price" v-if="showOldPrice(item)">
|
||||
@@ -51,6 +51,37 @@
|
||||
}}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="item" v-if="cartStore.orderCostSummary.seatFee > 0">
|
||||
<view class="u-flex">
|
||||
<text>餐位费</text>
|
||||
</view>
|
||||
<view class="u-flex text-center" style="gap: 54rpx; min-width: 348rpx">
|
||||
<text class="u-flex-1">{{ cartStore.personCount }}</text>
|
||||
<view class="u-flex u-flex-1 u-relative">
|
||||
<text class="origin-price">{{ cartStore.shopInfo.tableFee }}</text>
|
||||
</view>
|
||||
|
||||
<text class="u-flex-1">
|
||||
{{ cartStore.orderCostSummary.seatFee }}
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item" v-if="cartStore.orderCostSummary.packFee > 0">
|
||||
<view class="u-flex">
|
||||
<text>打包费</text>
|
||||
</view>
|
||||
<view class="u-flex text-center" style="gap: 54rpx; min-width: 348rpx">
|
||||
<text class="u-flex-1"></text>
|
||||
<view class="u-flex u-flex-1 u-relative">
|
||||
<text class="origin-price"></text>
|
||||
</view>
|
||||
|
||||
<text class="u-flex-1">
|
||||
{{ cartStore.packFee }}
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -135,6 +135,8 @@ const websocketUtil=inject("websocketUtil")
|
||||
|
||||
const cartStore = useCartStore();
|
||||
const accountStore = useAccountStore();
|
||||
|
||||
cartStore.shopInfo=accountStore.shopInfo;
|
||||
websocketUtil.onMessage((data) => {
|
||||
cartStore.onMessage(data);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user