vipCard.vue 1.8 KB
<template>
	<view class="vip_card">
		<view class="left">
			<image src="@/static/images/arenaDetail/detail_banner.png" mode="widthFix"></image>
		</view>
		<view class="center">
			<text class="admin">会员优惠</text>
			<text class="select">更多选择</text>
		</view>
		<view class="right">
			<view class="apply">立即申请</view>
			<u-icon name="arrow-right-double" color="#E6B976"></u-icon>
		</view>
	</view>
</template>

<script>
</script>

<style lang="scss" scoped>
	.vip_card{
		display: flex;
		align-items: center;
		justify-content: space-between;
		height: 120rpx;
		background: linear-gradient( 90deg, #EEC09F 0%, #FDF9F7 100%);
		border-radius: 16rpx;
		padding: 0 14rpx;
		.left{
			display: flex;
			align-items: center;
			justify-content: center;
			width: 200rpx;
		}
		.center{
			display: flex;
			flex-direction: column;
			align-items: center;
			flex: 1;
			font-family: 'YouSheBiaoTiHei';
			font-size: 28rpx;
			line-height: 36rpx;
			.admin{
				background: linear-gradient(0deg, #D09351 0%, #E6B976 33%, #D09351 69%, #E6B976 100%);
				-webkit-background-clip: text;/*将设置的背景颜色限制在文字中*/
				-webkit-text-fill-color: transparent;/*给文字设置成透明*/
				font-size: 48rpx;
				line-height: 62rpx;
			}
			.select{
				background: linear-gradient(0deg, #D09351 0%, #E6B976 33%, #D09351 69%, #E6B976 100%);
				-webkit-background-clip: text;/*将设置的背景颜色限制在文字中*/
				-webkit-text-fill-color: transparent;/*给文字设置成透明*/
			}
		}
		.right{
			display: flex;
			align-items: center;
			.apply{
				width: 120rpx;
				height: 36rpx;
				background: linear-gradient( 270deg, #D09351 0%, #E6B976 26%, #D09351 69%, #E6B976 100%);
				border-radius: 200rpx;
				font-size: 24rpx;
				line-height: 36rpx;
				text-align: center;
				color: #fff;
				margin-right: 20rpx;
			}
		}
	}
</style>