<template>
	<view>
		<u-tabs class="switch" :list="list" :is-scroll="false" :current="current" @change="change"></u-tabs>
		<view class="u-wrap">
			<view class="jingdong">
				<view class="left">
					<view class="sum">
						￥
						<text class="num">100</text>
					</view>
					<view class="type">
						<image class="logo" src="../../static/sailun/sailun_coupon.png" mode=""></image>
					</view>
				</view>
				<view class="right">
					<view class="top">
						<view class="title">
							<h3>100元优惠卷</h3>
						</view>
						<view class="bottom">
							<view class="date u-line-1">2020.10.31到期</view>
							<view class="immediate-use">可使用</view>
						</view>
						<view class="Subhead">
						</view>
					</view>
					<view class="Subhead_s">
						详细信息
					</view>
				</view>
			</view>
			<view class="eject">
				<u-collapse style="width: 98.9%;">
					<u-collapse-item>
						<view class="pullout_a">
							<view class="pullout">
								<view>扫码门店：某某门店</view>
								<view class="left">
									<view>扫码胎号: 45616516165</view>
									<view>扫码时间: 2020-3-10 8:10:34</view>
								</view>
								<view class="right">
									<view>领劵订单: 2020031001000001</view>
									<view>入库条码：A93989895393</view>
								</view>
							</view>
						</view>
					</u-collapse-item>
				</u-collapse>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [{
					name: '未使用'
				}, {
					name: '已使用'
				}, {
					name: '已失效'
				}],
				current: 0,
			}
		},
		methods: {
			change(index) {
				this.current = index;
			}
		}
	}
</script>

<style lang="scss" scoped>
	.u-wrap {
		padding: 24rpx;
		margin-top: -50rpx;
	}
	.switch{
		margin-bottom: 20rpx;
	}

	.pullout_a {
		background-color: #FFFFFF;
		height: 110rpx;
		border-radius: 10rpx;
		margin-top: -5rpx;
	}

	.pullout {
		width: 96%;
		margin: 0 auto;
		font-size: 22rpx;

		.left {
			float: left;
		}

		.right {
			float: right;
		}
	}

	.pullout>view:nth-child(1) {
		margin-top: 0rpx;
		color: #0096DF;
	}
	.pullout>view{
		margin-top: 10rpx;
	}

	.eject {
		margin-top: -70rpx;

		.u-collapse-title {
			margin-left: 100rpx;
		}
	}

	.Subhead {
		margin-top: 70rpx;
	}

	.Subhead_s {
		margin-top: 10rpx;
	}

	.meituan {
		margin: 30rpx auto;
		background-color: #ffffff;
		width: 700rpx;
		color: $u-type-warning;
		font-size: 28rpx;

		.content {
			display: flex;
			align-items: center;
			padding: 80rpx 20rpx;
			border: 10rpx;
			background-color: #fff5f4;

			.left {
				.sum {
					font-size: 32rpx;

					.num {
						font-size: 60rpx;
						font-weight: bold;
					}
				}
			}

			.centre {
				margin-left: 40rpx;

				.title {
					font-size: 32rpx;
					font-weight: bold;
					color: $u-main-color;
					margin-bottom: 20rpx;
				}
			}

			.right {
				margin-left: 30rpx;

				.immediate-use {
					padding: 0 20rpx;
					height: 50rpx;
					border-radius: 25rpx;
					line-height: 50rpx;
					background-color: $u-type-warning !important;
					color: #ffffff !important;
					font-size: 24rpx;
					border: none;
					word-break: keep-all;
				}
			}
		}
	}

	.jingdong {
		margin-top: 20rpx;
		width: 700rpx;
		height: auto;
		display: flex;

		.left {
			width: 250rpx;
			padding: 0 30rpx;
			background-image: url(../../static/sailun/coupon-background.png);
			background-repeat: no-repeat;
			background-size: 100% 100%;
			text-align: center;
			font-size: 28rpx;
			color: #ffffff;

			.sum {
				margin-top: 50rpx;
				font-weight: bold;
				font-size: 32rpx;

				.num {
					font-size: 80rpx;
				}
			}

			.type {
				margin-bottom: 50rpx;
				font-size: 24rpx;

				.logo {
					width: 180rpx;
					height: 40rpx;
				}
			}
		}

		.right {
			padding: 20rpx 20rpx 0;
			width: 700rpx;
			font-size: 28rpx;
			border-bottom-right-radius: 10rpx;
			border-top-right-radius: 10rpx;
			background-color: #fff;

			.top {
				border-bottom: 2rpx dashed $u-border-color;

				.title {
					margin-right: 60rpx;
					line-height: 40rpx;
				}

				.bottom {
					display: flex;
					margin-top: 20rpx;
					align-items: center;
					justify-content: space-between;
					margin-bottom: 10rpx;

					.date {
						font-size: 20rpx;
						flex: 1;
					}

					.immediate-use {
						height: auto;
						padding: 0 20rpx;
						font-size: 24rpx;
						border-radius: 40rpx;
						line-height: 40rpx;
						color: #3995FF;
						border: 2px solid #3995FF;
						margin-left: 130rpx;
					}
				}
			}

			.tips {
				width: 100%;
				line-height: 50rpx;
				display: flex;
				align-items: center;
				justify-content: space-between;
				font-size: 24rpx;

				.transpond {
					margin-right: 10rpx;
				}

				.explain {
					display: flex;
					align-items: center;
				}

				.particulars {
					width: 30rpx;
					height: 30rpx;
					box-sizing: border-box;
					padding-top: 8rpx;
					border-radius: 50%;
					background-color: $u-type-info-disabled;
					text-align: center;
				}
			}
		}
	}
</style>
