<template>
  <div class="container">
    <div class="title">
      <span>会员分裂</span>
      <span class="fr">查看更多<span class="icon">></span></span>
    </div>
    <div class="active">
      <div class="list" v-for="item in activeList" :key="item.id" @click="toDetail(item.id, item.type)">
          <div class="left"></div>
          <div class="right">
            <h3>{{ item.activeName }}</h3>
            <p>{{ item.description }}</p>
          </div>
      </div>
    </div>
    <div class="fg">复购</div>
    <div class="active">
      <div class="list">
          <div class="left"></div>
          <div class="right">
            <h3>大转盘抽奖</h3>
            <p>由各种物质组成的巨型球状天体,叫做星球。星球有一定的形状。</p>
          </div>
      </div>
      <div class="list list3">
          <div class="left"></div>
          <div class="right">
            <h3>砸金蛋抽奖</h3>
            <p>由各种物质组成的巨型球状天体,叫做星球。星球有一定的形状。</p>
          </div>
      </div>
    </div>
  </div>
</template>

<script>
import * as API from '@/api/active';
export default {
  data() {
    return {
      activeList: [
        {
          id: 1,
          type: 'coupon',
          activeName: '砍价',
          description: '由各种物质组成的巨型球状天体,叫做星球。星球有一定的形状。'
        },
        {
          id: 2,
          type: 'wheel',
          activeName: '集赞',
          description: '由各种物质组成的巨型球状天体,叫做星球。星球有一定的形状。'
        }
      ]
    }
  },
  methods: {
    // 获取 欧亚 活动列表
    getOYActiveList() {

    },
    // 跳转到 活动详情
    toDetail(active_id, type) {
      this.$router.push({
        path: '/activeDetail',
        query: {
          id: active_id,
          type: type
        }
      })
    }
  }
};
</script>

<style scoped>
.container {
  height: auto;
  background-color: rgba(248, 248, 248, 1);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; 
}
.title {
  height: 44px;
  background: rgba(248, 248, 248, 1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  font-size: 12px;
  color: rgba(45, 71, 106, 1);
}
.fg {
  padding: 0 16px;
  font-size: 12px;
  color: rgba(45, 71, 106, 1);
  height: 44px;
  line-height: 44px; 
}
.icon {
  font-weight: 800;
}
.active {
  background-color: #fff;
  padding: 12px 12px 0 12px;
  box-shadow:0px 2px 4px 0px rgba(221,221,221,1);
}
.list {
  height: 94px;
  width: 100%;
  background-color: #fff;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(238,238,238,1);
  margin-bottom: 14px;
}
.list3 {
  border-bottom: none;
  margin-bottom: 0;
}
.left,.right {
  height: 80px;
}
.left {
  width: 80px; 
  background:rgba(248,248,248,1);  
}
.right {
  width: 76%;
  padding-left: 10px;
  background-color: #fff;
}
h3 {
  font-size: 14px;
  font-weight:bold;
  color:rgba(45,71,106,1);
}
p {
  margin-top: 10px;
  font-size:12px;
  color:rgba(45,71,106,0.8);
}
</style>