<template>
	<view class="p-l-24 p-r-24 cartBox">
		<view v-if="total === 0" class="rad16 bg-g flex ofh" style="height: 108rpx;">
			<view class="bg-b" style="width: 152rpx;"></view>
			<view class="flex1 flex mac p-l-24">
				<u--image src="/static/icons/cafe-48.svg" width="96rpx" height="96rpx" />
				<view class="m-l-12 fz36 fb">未选购餐品</view>
			</view>
		</view>
		<view v-else class="bg-m rad16 flex" style="height: 108rpx;">
			<view class="flex md p-b-12">
				<u--image src="/static/icons/planeBox-100.svg" width="136rpx" height="136rpx"
					@click="$store.commit('setCartShow',!$store.state.cartShow)" />
			</view>
			<view class="fci fz36 flex1 flex msb">
				<view class="flex1 p-l-12 flex column mc" @click="$store.commit('setCartShow',!$store.state.cartShow)">
					<view class="fz36 fb">¥{{total | formatPrice}}</view>
					<view class="fz24" v-if="minimumOrderDifference>0">还差¥{{minimumOrderDifference | formatPrice}}起送
					</view>
				</view>
				<view class="flex column mac mc" style="width: 180rpx;" @click="handleSeled">
					<view class="fz36">选好了</view>
					<view class="fz24">Order</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: "cartBut",
		data() {
			return {

			};
		}
	}
</script>

<style>

</style>