付延余
2022-08-03 910f2ef56d0d49a4ce24b2f33860dce4d739b1b4
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="combination-card">
        <view class="combination-card_wrapper">
            <view class="combination-card_top" v-if="showTop">
                <view class="combination-card_top__content">
                    <slot name="top"></slot>
                </view>
            </view>
            <view class="combination-card_content">
                <slot name="center"></slot>
            </view>
            <view class="combination-card_bottom" v-if="showTop">
                <slot name="bottom" a="$slots.name"></slot>
            </view>
        </view>
    </view>
</template>
 
<script>
export default {
    props: {
        showTop: {
            type: Boolean,
            default: true
        }
    },
    data() {
        return {};
    },
    methods: {},
    mounted() {
        console.log(this.showTop,'showTop--------')
    }
};
</script>
 
<style lang="scss" scoped>
.combination-card {
    width: 94%;
    // height: vww(196);
    border: vww(1) solid #dddddd;
  border-radius: vww(4);
  margin: 0 auto vww(16) ;
  box-shadow: 0 2px 16px #e5e5e5, 0 0 1px #e5e5e5, 0 0 1px #e5e5e5;
    .combination-card_wrapper {
        font-size:vww(13);
        .combination-card_top {
            // height: vww(16);
            padding:vww(8);
            background-color: #f5f5f5;
            border-bottom:1px solid #dddddd;
            .combination-card_top__content{
                display:flex;
                align-items: center;
            }
        }
        .combination-card_content {
            // height: vww(98);
            padding:vww(16);
        }
        .combination-card_bottom {
            height: vww(16);
            padding:vww(8);
            background-color: #f5f5f5;
            border-top:1px solid #dddddd;
            display:flex;
            justify-content: center;
        }
    }
}
</style>