li-guang
2020-12-24 087e498f73c3bea6210b65e4d0df668db3c3fa81
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<template>
    <view class="container">
        <view class="list-item">
            <view class="list-header">
                <text class="name">会员卡</text>
                <text>NO 23564</text>
            </view>
            <view class="list-content">
                <text>
                    ¥<text class="ml-10">565,6789</text>
                </text>
            </view>
            <view class="list-footer">
                <text>赠送金额 ¥ 5656</text>
                <text>有效期:2025-10-20</text>
            </view>
        </view>
        <view class="list-item" v-for="item in 2">
            <view class="list-header">
                <text class="name">双11拓客卡</text>
                <text>NO 23564</text>
            </view>
            <view class="list-content">
                <text>
                    ¥<text class="ml-10">565,6789</text>
                </text>
            </view>
            <view class="list-footer">
                <text>赠送金额 ¥ 5656</text>
                <text>有效期:2025-10-20</text>
            </view>
        </view>
    </view>
</template>
 
<script>
    export default{
        components:{
            
        },
        data(){
            return {
                
            }
        },
        methods:{
            
        }
    }
</script>
 
<style>
    .container{
        padding: 10px 10px;
    }
    .list-item{
        color: #FFFFFF;
        font-size: 14px;
        padding: 20px 18px;
        border-radius: 16px;
        margin-bottom: 10px;
    }
    .list-item:nth-child(2n+1){
        background: url(../../static/images/card-bg2.png) no-repeat;
        background-size: cover;
    }
    .list-item:nth-child(2n+2){
        background: url(../../static/images/card-bg3.png) no-repeat;
        background-size: cover;
    }
    .list-item:nth-child(1){
        background: url(../../static/images/card-bg1.png) no-repeat;
        background-size: cover;
    }
    .list-header{
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .list-header .name{
        font-size: 18px;
        font-weight: bold;
    }
    .list-content{
        padding: 24px 0;
        font-size: 30px;
    }
    .list-footer{
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
</style>