function-card.vue 1.0 KB
<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>