vipCard.vue
1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<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>