xiaoxi.vue 3.3 KB
<template>
  <div>
    <div class="xiaoxi-box">
      <div class="xiaoxi-boxs">
        <div class="xitong">
          <img src="../assets/zuojian.png" class="zuojiantou" alt="" />
          <div class="xitong-texct">系统消息</div>
        </div>
        <div class="xitongs">
          <div class="xitons-left">
            <div
              v-for="(item, index) in ad"
              :key="index"
              :class="tl == index ? 'quanbus' : 'quanbu'"
              @click="bg(index)"
            >
              {{ item }}
              <div class="gexiansf" v-if="tl == index"></div>
            </div>
          </div>
          <div class="xioons-right">
            <div class="xioons-rights">
              <img src="../assets/search.png" class="search-imgs" alt="" />
              <input type="text" placeholder="搜索关键词查找" class="inputsafa" />
            </div>
            <div class="chaxuns">查询</div>
          </div>
        </div>
        <div class="lists">
          <div class="list-s" v-for="(item, index) in addlist" :key="index">
            <div class="lists-tou">
              <div class="xiaoxi">消息类型</div>
              <div class="weidus">未读</div>
            </div>
            <div class="xiso-cont">
              消息内容消息内容消息内容消息内容消息内容消息内容消息内容消息内容消息消息内容消息内容消息内容消息容...
            </div>
            <div class="shijians">
              <img src="../assets/shijian.png" class="shi-imgs" alt="" />
              <div class="timer">2020.01.10 10:30:30</div>
            </div>
          </div>
        </div>
        <div class="tiaoshu">
          <div class="left-io"></div>
          <div class="gon">共400条</div>
          <div class="kls">
            <el-pagination
              :page-size="20"
              :pager-count="11"
              layout="prev, pager, next"
              :total="1000"
            >
            </el-pagination>
          </div>
        </div>
      </div>
    </div>
    <Tabbar :actives="1"></Tabbar>
  </div>
</template>

<script>
import Tabbar from "./tabbar.vue";
export default {
  components: {
    Tabbar,
  },
  data() {
    return {
      aco: "",
      activeName: "second",
      ad: ["全部", "已读", "未读"],
      dialogVisible: false,
      tl: "0",
      addlist: [{}, {}, {}, {}, {}, {}, {}, {}, {}],
      tablelists: [
        {
          date: "请输入产品型号",
          name: "请输入产品编号",
          province: "请输入产品数量",
          city: "请输入到货时间",
          zhuan: "已完成",
        },
      ],
    };
  },
  created() {
    let that = this;
    setTimeout(function () {
      that.aco = that.$route.query.ac;
      console.log(that.aco);
    }, 100);
  },
  mounted() {
    let that = this;
    setTimeout(function () {
      that.aco = that.$route.query.ac;
      console.log(that.aco);
    }, 100);
  },
  methods: {
    handleClick(tab, event) {
      console.log(tab, event);
    },
    bg(index) {
      this.tl = index;
    },
  },
};
</script>
<style>
.el-tabs .el-tabs--top {
  width: 80%;
}
.is-top {
  width: 80%;
  text-align: center;
}
.el-dialog {
  border-radius: 16px;
}
.el-dialog__body {
  padding: 0 20px 20px 20px;
}
</style>
<style scoped>
@import "../css/home.css";
@import "../css/fa.css";
@import "../css/xiaoxi.css";
</style>