<template>
	<view>
		<view class="width100 height120 headsbg backcorfff fotct">
			<view class="height20"></view>
			<view class="width100  font18 fcor666">时代天街</view>
			<image src="../static/imgs/location.png" mode="widthFix" class="icon20 mart5"></image>
			<view class="width100 mart5 font12 fcor666">时代天街时代天街时代天街时代天街</view>
		</view>
		<view class="width96 mart20 colorc3 font12 fotct">
			注:约5分钟后取餐,请尽快到餐厅取餐哦
		</view>

		<view class="concont width94 mart10 backcorfff">
			<view class="width94 paddtop10 font14">
				餐品详情
			</view>
			<view class="width100 bor-botm1 mart10 marb10"></view>
			<view class="width100">
				<view class="width100 alijusstart mart10 bor-botm1" v-for="(item,index) in orderList" :key="index">
					<view class="width30">
						<image src="../static/imgs/kfc2.png" mode="widthFix" class="width100"></image>
					</view>
					<view class="width40 font13 fcor666">香辣鸡腿堡</view>
					<view class="width10 font12 fcor999">x1</view>
					<view class="width20">
						<view class="width100 fcor333 font12">¥<text class="fontwig6 font16">16.8</text></view>
						<view class="width100 fcor999 font12" style="text-decoration: line-through;">¥17.8</view>
					</view>
				</view>
				<view class="width90 fotrt height50 font13 fcor999">
					共 <text class="fcor333 fontwig6" style="margin: 0px 5px;"> 1 </text> 件 小计: <text
						class="font16 colorc3 fontwig6 margle"> ¥16.8</text>
				</view>
			</view>
		</view>

		<view class="concont width94 mart10 backcorfff">
			<view class="width94 alijusstart paddtop10 font14 fcor666">
				<view class="width50">联系电话</view>
				<view class="width50 fotrt">15583658692</view>
			</view>
			<view class="width94 font12 fcor999 mart5 paddbotm10">经用于接收取餐码,请正确填写</view>
		</view>

		<view class="concont width94 mart20 backcorfff marb100">
			<view class="width94 paddtop10 font14 fcor333 fontwig6">
				就餐方式
			</view>
			<view class="width94 mart20 paddbotm20 alijusstart">
				<view class="takemode height30 alijus fcor999" :class="sttypeid == 1?'aftermode':''" @click="changedissr(1)">
					<image src="../static/imgs/menu3.png" mode="widthFix" class="icon20"></image>
					<view class="font14  margle10">店内就餐</view>
				</view>
				<view class="takemode height30 alijus fcor999" style="margin-left: 4%;" :class="sttypeid == 2?'aftermode':''" @click="changedissr(2)">
					<image src="../static/imgs/menu2.png" mode="widthFix" class="icon20"></image>
					<view class="font14  margle10">打包带走</view>
				</view>
			</view>
		</view>
		
		
		<view class="footbtn width100 height50 backcor33">
			<view class="width94 alijusstart">
				<view class="width70 fcorfff">
					合计: ¥<text class="font16 fontwig6" style="margin: 0px 6px;">16.8</text> <text class="font12">已省 ¥1.7</text>
				</view>
				<view class="width30 fotrt">
					<view class="btnpay fotct font13 fcorfff">去支付</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				orderList: [1, 2, 3, 4, 5],
				sttypeid:1
			}
		},
		methods: {
			//选择方式
			changedissr(item){
				this.sttypeid = item;
			}
		}
	}
</script>

<style lang="scss">
	page {
		background-color: #f0f0f0;
	}

	.headsbg {
		border-radius: 0 0 30px 30px;
	}

	.concont {
		border-radius: 12px;
	}
	
	.footbtn{
		bottom: 0px;
		position: fixed;
	}
	.btnpay{
		width: 90px;
		background-color: #c72a20;
		border-radius: 22px;
		height: 36px;
		line-height: 36px;
	}
	.takemode{
		width: 48%;
		border-radius: 5px;
		border: 1px solid #999999;
	}
	.aftermode{
		background-color: #faf1f1;
		color: #c72a20;
	}
</style>
