<template>
  <div class="mall-section-container">
    <div class="mall-content-section">
      <div class="mall-content-title">
        <el-breadcrumb separator="/">
          <el-breadcrumb-item :to="{ path: '' }">
            <a href="/report/#/memberSummary">首页</a>
          </el-breadcrumb-item>
          <el-breadcrumb-item>积分商城</el-breadcrumb-item>
          <el-breadcrumb-item>商品</el-breadcrumb-item>
          <el-breadcrumb-item :to="{ path: '/ruleList' }">
            上架规则
          </el-breadcrumb-item>
          <el-breadcrumb-item>{{ breadcrumbTitle }}</el-breadcrumb-item>
        </el-breadcrumb>
        <h3>
          <span>{{ breadcrumbTitle }}</span>
        </h3>
      </div>
      <div class="section">
        <ruleInfo />
      </div>
    </div>
  </div>
</template>

<script>
import ruleInfo from '@/components/ruleDetail.vue';
export default {
  components: {
    ruleInfo,
  },
  data () {
    return {
      breadcrumbTitle: '新建上架规则',
    };
  },
  mounted () {
    const obj = {
      edit: '编辑上架规则',
      add: '新建上架规则',
      copy: '复制上架规则',
    };
    this.breadcrumbTitle = obj[this.$route.meta.type];
  },
};
</script>

<style scoped>
.gic-people--button{
  background: #f2f3f4;
    padding: 0 0 20px 124px;
}
</style>
