<template>
  <div id="push-setting-container">
    <div class="tabs-box">
			<span
				class="custom-tab" 
				:class="selectPage==='WaitPushList' ?'activeTab':''"
				@click="changePage('WaitPushList')"
			>待推送列表</span>
      <span
				class="custom-tab" 
				:class="selectPage==='PrioritySettingList' ?'activeTab':''"
				@click="changePage('PrioritySettingList')"
			>产品优先列表</span>
		</div>
    <component :is="selectPage"/>
  </div>
</template>

<script>
import WaitPushList from './components/waitPushList.vue'
import PrioritySettingList from './components/prioritySettingList.vue'
  export default {
    name:"pushSetting",
    components:{WaitPushList,PrioritySettingList},
    data() {
      return {
        selectPage:'WaitPushList'
      }
    },
    methods: {
      changePage(page){
        this.selectPage = page
      }
    },
  }
</script>

<style lang="scss" scoped>
  #push-setting-container{
    // min-height:calc(100vh - 110px);
    display: flex;
    flex-direction: column;
    height:calc(100vh - 110px);
    background-color: white;
    border: 1px solid #ECECEC;
    border-radius: 2px;
    box-sizing: border-box;
    padding: 30px;
    .tabs-box{
      font-size: 18px;
      color: #999;
      margin-bottom: 30px;
      .custom-tab{
        display: inline-block;
        margin-right: 30px;
        color: #333;
        cursor: pointer;
        height: 40px;
        line-height: 40px;
        box-sizing: border-box;
      }
      .activeTab{
        color: #409EFF;
        border-bottom: 2px solid #409EFF;
      }
    }
  }
</style>