<template>
	<view class="ordercontainer">
		<view class="confirmbox">
			<view class="confirmpicinfo">
				<view class="imgbox">
					<image :src="details.sku?(details.sku.image_url?details.sku.image_url:require('@/static/logo-xietaitai.png')):require('@/static/logo-xietaitai.png')" 
					></image>
				</view>
				<view class="pictitle">{{details.sku?details.sku.name:''}}</view>
				<text>{{details.sku?details.sku.specs:''}}</text>
			</view>
		</view>
		<view class="confirmlist index0">
			<view class="iconimg">
				<image src="../../static/icon1.png" mode="widthFix"></image>
			</view>
			<view class="confirmright">
				<text class="confirmmarker">发货时间</text>
				<view class="flex-li confirmdate">
					<text>
					{{details.send_date?$moment(details.send_date).format("YYYY年M月DD日"):''}}
					<text style="color:#b62828" class="smallfont">{{details.week?'['+details.week+']':''}}</text>
					</text>
					<text class="smallfont">{{details.lunarData?details.lunarData:""}}</text>
				</view>
				<view class="flex-li confirmdate">
					<!-- <text>{{details.hh?details.hh:''}}</text> -->
					
				</view>
			</view>
		</view>
		<view class="confirmlist index1">
			<view class="iconimg">
				<image src="../../static/icon2.png" mode="widthFix"></image>
			</view>
			<view class="confirmright">
				<text class="confirmmarker">收货地址</text>
				<view class="flex-li confirmaddress">
					<text>{{details.area?details.area:''}}{{details.address?details.address:''}}</text>
				</view>
			</view>
		</view>
		<view class="confirmlist index2">
			<view class="iconimg">
				<image src="../../static/icon3.png" mode="widthFix"></image>
			</view>
			<view class="confirmright">
				<text class="confirmmarker">收货人</text>
				<view class="flex-li confirmcontact">
					<text>{{details.contact?details.contact:''}}</text>
					<text>{{details.mobile?details.mobile:''}}</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		
		data() {
			return {
				details:{}
			}
		},
		onLoad(option) {
			this.details = uni.getStorageSync('order_detail')?uni.getStorageSync('order_detail'):''
			uni.removeStorageSync('order_detail')
			console.log(this.details)
		},
		methods: {
			
			
		}
	}
</script>

<style scoped lang="scss">
	.ordercontainer{
		background: #f0efed;
		width: 100%;
		height: 100vh;
		padding: 42rpx 50rpx 300rpx;
		overflow-y: scroll;
	}
	.confirmbox{
		width: 100%;
		padding-top: 22rpx;
		padding-bottom: 35rpx;
		background: url(../../static/confirmbg1.jpg) no-repeat center top;
		background-size: cover;
		border-radius: 10rpx;
		box-shadow: 0 5rpx 15rpx rgba(0,0,0,.47);
	}
	.confirmpicinfo{
		text-align: center;
		font-size: 24rpx;
		color: #d5c7b5;
		line-height: 42rpx;
	}
	.imgbox{
		width: 150rpx;
		height:150rpx;
		margin: 0 auto;
		border-radius: 10rpx;
		border: 1px solid #ba8b45;
		overflow: hidden;
		margin-bottom: 14rpx;
	}
	.imgbox image{
		width: 150rpx;
		height:150rpx;
		vertical-align: middle;
	}
	.confirmpicinfo .pictitle{
		color: #ba8b45;
	}
	.confirmlist{
		margin-top: 30rpx;
		border-radius: 10rpx;
		overflow: hidden;
		display: flex;
		align-items: center;
		justify-content: space-between;
		background-repeat: no-repeat;
		background-position: center top;
	  background-size: cover;
		box-shadow: 0 5rpx 15rpx rgba(0,0,0,.47);
		padding: 10rpx 10rpx 10rpx 20rpx;
	}
	.confirmlist.index0{
		background-image: url(../../static/confirmbg2.jpg);
	}
	.confirmlist.index1{
		background-image: url(../../static/confirmbg3.jpg);
	}
	.confirmlist.index2{
		background-image: url(../../static/confirmbg4.jpg);
	}
	.confirmlist image{
		width: 62rpx;
		height: auto;
	}
	.confirmlist .confirmright{
		width: 550rpx;
		background: #fff;
		border-radius: 10rpx;
		padding: 25rpx 20rpx;
	}
	.confirmmarker{
		display: block;
		font-size:32rpx;
		color: #000;
		font-weight: bold;
		margin-bottom: 8rpx;
		    text-align: center;
	}
	.flex-li{
		display: flex;
		justify-content: space-between;
		color: #000;
		font-size: 30rpx;
		line-height: 60rpx;
	}
	.confirmdate text.smallfont{
		font-size: 24rpx;
	}
	.confirmbtn{
		position: fixed;
		bottom: 0;
		left: 0;
		width: 100%;
		height: 115rpx;
		display: flex;
		padding: 0 10rpx;
		justify-content: space-between;
		background: #fff;
		align-items: center;
	}
	.confirmbtn text{
		display: inline-block;
		width: 284rpx;
		line-height: 74rpx;
		height: 74rpx;
		text-align: center;
		border-radius: 74rpx;
		border: 1rpx solid #d1d1d0;
		margin: 0 38rpx;
		font-size: 29rpx;
		color:#000;
	}
	.confirmbtn text.confirmtab{
		color: #fff;
		border: 1rpx solid #ba8b45;
		background: #ba8b45;
	}
</style>