<template>
	<view class='ordercontainer'>
		<view class="tabsnav">
			<u-tabs :list="list" :is-scroll="true" bg-color="#f0efed" bar-width="24" bar-height="24" gutter="53" font-size="24" inactive-color="#000" :active-item-style="{fontSize:'30rpx',color:'#ba8b45'}" :bar-style="{ right:'-36rpx',position:'relative',bottom:'32rpx',background:'#5b5b5a'}" :current="current" @change="change"></u-tabs>
		</view>
		<view class="orderlist">
			<!-- 1条数据开始 -->
			<view class="orderitem">
				<view class="ordertop">
					<text>运单号：SFSF1454237639361</text>
					<text>已发货</text>
				</view>
				<view class="orderinfo">
					<view class="orderbrief">
						<view class="orderimg">
							<image src="../../static/orderimg1.jpg" mode="widthFix"></image>
						</view>
						<view class="orderright">
							<view class="ordertitle">蟹太太大闸蟹红金款999型</view>
							<view class="ordersmalltext">公4.0两母3.0两 4对 8只装</view>
						</view>
					</view>
					<view class="ordertime">
						<text>预计送达时间</text>
						<view>9月28日<text class="orderweek">[周三]</text>09:00-15:00</view>
					</view>
					<view class="ordertab">
						<text class="deleteorder">删除订单</text>
						<text class="orderinform">通知收件人</text>
					</view>
				</view>
			</view>
			<!-- 1条数据结束 -->
			<!-- 2条数据开始 -->
			<view class="orderitem">
				<view class="ordertop">
					<text>商品兑换成功</text>
					<text>待发货</text>
				</view>
				<view class="orderinfo">
					<view class="orderbrief">
						<view class="orderimg">
							<image src="../../static/orderimg1.jpg" mode="widthFix"></image>
						</view>
						<view class="orderright">
							<view class="ordertitle">蟹太太大闸蟹红金款999型</view>
							<view class="ordersmalltext">公4.0两母3.0两 4对 8只装</view>
						</view>
					</view>
					<view class="ordertime">
						<text>预计送达时间</text>
						<view>9月28日<text class="orderweek">[周三]</text>09:00-15:00</view>
					</view>
					<view class="ordertab">
						<text class="addremark">添加备注</text>
						<text class="deleteorder">删除订单</text>
						<text class="orderinform">通知收件人</text>
					</view>
				</view>
			</view>
			<!-- 2条数据结束 -->
			<!-- 3条数据开始 -->
			<view class="orderitem">
				<view class="ordertop">
					<text>商品兑换成功</text>
					<text>待发货</text>
				</view>
				<view class="orderinfo">
					<view class="orderbrief">
						<view class="orderimg">
							<image src="../../static/orderimg1.jpg" mode="widthFix"></image>
						</view>
						<view class="orderright">
							<view class="ordertitle">蟹太太大闸蟹红金款999型</view>
							<view class="ordersmalltext">公4.0两母3.0两 4对 8只装</view>
						</view>
					</view>
					<view class="ordertime">
						<text>预计送达时间</text>
						<view>9月28日<text class="orderweek">[周三]</text>09:00-15:00</view>
					</view>
					<view class="ordertab">
						<text class="addremark">添加备注</text>
						<text class="deleteorder">删除订单</text>
						<text class="orderinform">通知收件人</text>
					</view>
				</view>
			</view>
			<!-- 3条数据结束 -->
		</view>
	</view>
</template>

<script>
	export default {
		
		data() {
			return {
				list: [{
					name: '全部'
				}, {
					name: '待发货'
				}, {
					name: '待收货',
				},{
					name: '已完成',
				}],
				current: 0
			}
		},
		onLoad() {
			
		},
		methods: {
			change(index) {
				this.current = index;
			},
			
		}
	}
</script>

<style lang="scss">
	.ordercontainer{
		background: #f0efed;
		width: 100%;
		height: 100vh;
		overflow-y: scroll;
	}
	.tabsnav {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 80rpx;
		z-index: 999;
		overflow: hidden;
		text-align: center;
		// padding: 0 33rpx;
	}
	.tabsnav {
		/deep/ .u-tab-item{
			z-index: 2;
		}
	}
	.orderlist {
		padding: 82rpx 50rpx 56rpx;
	}
	.orderitem{
		overflow: hidden;
		margin-bottom: 25rpx;
		background: url(../../static/libg.jpg) no-repeat center center;
		background-size: cover;
		border-radius: 10rpx;
		box-shadow: 0 5px 15px rgba(0,0,0,.47);
		padding: 12rpx;
	}
	.ordertop{
		display: flex;
		padding: 13rpx 20rpx 23rpx;
		justify-content: space-between;
	}
	.ordertop text{
		font-size: 24rpx;
		color: #f2d6c1;
	}
	.orderinfo{
		background: #fff;
		padding: 24rpx;
		border-radius: 10rpx;
	}
	.orderbrief{
		display: flex;
		padding-bottom: 24rpx;
	}
	.orderimg{
		border: 1rpx solid rgba(186,139,69,.6);
		border-radius: 10rpx;
		overflow: hidden;
		width: 150rpx;
		height: 150rpx;
		background: #fff;
		text-align: center;
	}
	.orderimg image{
		width: 100%;
		height: auto;
		vertical-align: middle;
	}
	.orderright{
		padding-left: 32rpx;
		width: 430rpx;
		font-size: 24rpx;
		color: #000;
		padding-top: 20rpx;
	}
	.ordertitle{
		height: 40rpx;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		line-height: 40rpx;
	}
	.ordersmalltext{
		text-align: justify;
	}
	.ordertime{
		display: flex;
		justify-content: space-between;
		line-height: 36rpx;
		font-size: 24rpx;
		color: #000;
		padding-bottom: 10rpx;
		border-bottom: 1rpx solid #ececec;
		margin-bottom: 26rpx;
	}
	.ordertime view text.orderweek{
		color: #b62828;
		margin: 0 10rpx;
	}
	.ordertab{
		display: flex;
		justify-content: flex-end;
	}
	.ordertab text{
		display: inline-block;
		width: 160rpx;
		height: 50rpx;
		margin: 0 22rpx;
		border-radius: 50rpx;
		text-align: center;
		line-height: 50rpx;
		border: 1rpx solid #cececd;
		font-size: 24rpx;
		color: #000;
	}
	.ordertab text.orderinform{
		color: #ba8b45;
		margin-right: 0;
	}
</style>