<template>
	<view>
		<view class="content">
			<view><text class="price">{{data.price}}</text><text class="price1">元</text></view>
			<view class="couponinfo">
				<view class="title"><text>{{data.name}}</text></view>
				<view class="extime">
					<text>到期时间:</text>
					<text style="margin-left: 10rpx;">{{data.expire_time}}</text>
				</view>
			</view>
			<view class="btn">

			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			data: Object
		},
		data() {
			return {

			}
		}
	}
</script>

<style>
	.content {
		width: 638rpx;
		height: 150rpx;
		background: linear-gradient(90deg, #FEEBE3 26%, #FEFEFE 100%);
		border-radius: 16rpx 16rpx 16rpx 16rpx;
		background-image: url('@/static/images/couponitem.png');
		background-repeat: no-repeat;
		background-size: cover;
		display: flex;
		justify-content: space-between;
		align-items: center;
	}

	.price {
		/* font-family: D-DIN, D-DIN; */
		font-weight: 400;
		font-size: 68rpx;
		color: #FF3607;
		line-height: 72rpx;
		text-align: center;
		font-style: normal;
		text-transform: none;
		margin-left: 36rpx;
	}

	.price1 {
		/* font-family: Source Han Sans, Source Han Sans; */
		font-weight: 400;
		font-size: 28rpx;
		color: #FF3607;
		line-height: 24rpx;
		text-align: center;
		font-style: normal;
		text-transform: none;
	}

	.title {
		/* font-family: D-DIN, D-DIN; */
		font-weight: 700;
		font-size: 32rpx;
		color: #333333;
		line-height: 24rpx;
		text-align: center;
		font-style: normal;
		text-transform: none;
	}

	.extime {
		/* font-family: Source Han Sans, Source Han Sans; */
		font-weight: 400;
		font-size: 20rpx;
		color: #808080;
		line-height: 24rpx;
		text-align: center;
		font-style: normal;
		text-transform: none;
	}

	.couponinfo {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: flex-start;
		gap: 22rpx;
		height: 100%;
		padding-top: 12rpx;
	}

	.btn {
		display: flex;
		justify-content: center;
		align-items: center;
		padding-right: 34rpx;
		width: 128rpx;
		font-size: 28rpx;
		height: 48rpx;
	}
</style>