function-card.vue
1.0 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
<template>
<view class="quick-entry">
<view class="title">{{title}}</view>
<view class="entry-item-wrap">
<slot></slot>
<view class="entry-item" v-for="(item,index) in entryList" :key="index">
<image :src="item.icon" mode=""></image>
<text>{{item.text}}</text>
</view>
</view>
</view>
</template>
<script>
export default {
props: {
title: {
default: '快捷入口',
type: String
}
},
data() {
return {
}
}
}
</script>
<style lang="scss">
.quick-entry {
@include wrapPadding(702rpx, 28rpx, 28rpx, 28rpx);
margin-top: 24rpx;
border-radius: 16rpx;
background: #ffffffff;
.title {
font-size: 32rpx;
font-weight: 700;
}
.entry-item-wrap {
@include flexCj();
.entry-item {
@include flexColumn();
image {
@include commonIconWh(48rpx, 0);
margin-top: 34rpx;
margin-bottom: 16rpx;
}
}
}
}
</style>