<template>
  <div>
    <!-- 头部标签 -->
    <van-sticky>
      <header class="header-wrap">
        消息中心
      </header>
    </van-sticky>

    <!-- 内容 -->
    <div class="con">
      <van-tabs
        v-model="activeName"
        color="#247df7"
        title-inactive-colo="#d0d1d1"
        title-active-color="#000000"
        sticky
        offset-top="50"
      >
        <van-tab title="消息信息" name="消息信息" badge="5">
          <message-news></message-news>
        </van-tab>
        <van-tab title="待办事项" name="待办事项" badge="2">待办事项</van-tab>
        <van-tab title="通知公告" name="通知公告" badge="6">通知公告</van-tab>
      </van-tabs>
    </div>

    <!-- tanBar -->
    <tab-bar :index="0"></tab-bar>
  </div>
</template>

<script>
import MessageNews from "./MessageNews.vue";
import tabBar from "@/components/TabBar";
export default {
  components: {
    MessageNews,
    tabBar
  },
  data() {
    return {
      activeName: "消息信息"
    };
  },
  mounted() {},
  methods: {}
};
</script>
<style lang="less" scoped>
/* @import url(); 引入css类 */
.header-wrap {
  width: 100%;
  height: 1.333333rem;
  background-color: #2980f7;
  font-size: 17px;
  line-height: 1.333333rem;
  color: white;
  font-weight: 600;
  text-align: center;
}
.con {
  // height: calc(100% - 110px);
  // height: 100%;
  padding: 0 0 50px 0;
  background-color: #f0f1f5;
  position: relative;
  /deep/ .van-info {
    right: -6px;
    background-color: #fa4c4c;
  }
}
</style>
