index.vue 2.4 KB
<template>
  <div class="container">
    <div class="minetopkkk ">
      <div class="minetophezi tiezibox flextwo">
        <div
          class="xiaoxiitem flexfour"
          :class="seltie == 1 ? 'seltieactive' : ''"
          @click="selxiao(1)"
        >
          <img
            src="../../../assets/tiezihuifu_icon@2x.png"
            alt=""
            class="teiziimg"
          />
          帖子回复
        </div>
        <div
          class="xiaoxiitem flexfour"
          :class="seltie == 2 ? 'seltieactive' : ''"
          @click="selxiao(2)"
        >
          <img
            src="../../../assets/xitong_icon@2x.png"
            alt=""
            class="teiziimg"
          />
          <div class="dot">1</div>
          系统通知
        </div>
      </div>
    </div>
    <div class="tieziboxlist">
      <div class="tieziboxitem flex">
        <img src="../../../assets/touxiang_img@2x.png" alt="" class="xiaoimg" />
        <div class="tieziboxmiddle">
          <div class="tieziname flextwo">
            <div class="tietitle">小红</div>
            <div class="tiedate">今天 9:40</div>
          </div>
          <div class="tiezinametext">你那个面访多少钱?每天多少量啊?</div>
        </div>
      </div>
      <div class="tieziboxitem flex">
        <img src="../../../assets/touxiang_img@2x.png" alt="" class="xiaoimg" />
        <div class="tieziboxmiddle">
          <div class="tieziname flextwo">
            <div class="tietitle">小红</div>
            <div class="tiedate">今天 9:40</div>
          </div>
          <div class="tiezinametext">你那个面访多少钱?每天多少量啊?</div>
        </div>
      </div>
      <div class="tieziboxitem flex">
        <img src="../../../assets/touxiang_img@2x.png" alt="" class="xiaoimg" />
        <div class="tieziboxmiddle">
          <div class="tieziname flextwo">
            <div class="tietitle">小红</div>
            <div class="tiedate">今天 9:40</div>
          </div>
          <div class="tiezinametext">你那个面访多少钱?每天多少量啊?</div>
        </div>
      </div>
    </div>
    <tabBar v-bind:active="1" />
  </div>
</template>

<script>
import tabBar from "@/components/tabBar.vue";
export default {
  components: {
    tabBar
  },
  data() {
    return {
      seltie: 1
    };
  },
  methods: {
    selxiao(id) {
      this.seltie = id;
    }
  }
};
</script>

<style scoped>
@import "../../style/homepage.css";
</style>