jhzh
2024-05-20 f8e9af35a267b7b9a2bf605187a11536889a6e38
src/page/home/home.vue
@@ -196,7 +196,7 @@
                "
              >
                <div class="item-times">
                  {{ $moment(item.addTime).format("DD-MM-YYYY hh:mm:ss A") }}
                  {{ item.showTime | gettime }}
                </div>
                <div
                  class="titContent"
@@ -273,11 +273,11 @@
          img: require("@/assets/img/max.jpg"),
        },
        {
          img: "https://api.trowegroup.com/bs/image/20240305/b923c7645712aeaeb93d660ce846f448.png",
          img: require("@/assets/img/20240518-225348.jpg"),
        },
        {
          img: "https://api.trowegroup.com/bs/image/20240305/06eb4602ba7b3e570ccd70c0415884ec.png",
        },
        // {
        //   img: "https://api.trowegroup.com/bs/image/20240305/06eb4602ba7b3e570ccd70c0415884ec.png",
        // },
      ],
      // 公告列表
      artList: [],
@@ -309,8 +309,40 @@
      ];
    },
  },
  filters: {
    gettime (time) {
      if (!time) {
        return ''
      }
      var nd = new Date(time)
      var y = nd.getFullYear()
      var mm = nd.getMonth() + 1
      var d = nd.getDate()
      var h = nd.getHours()
      var m = nd.getMinutes()
      var c = nd.getSeconds()
      if (mm < 10) {
        mm = '0' + mm
      }
      if (d < 10) {
        d = '0' + d
      }
      if (h < 10) {
        h = '0' + h
      }
      if (m < 10) {
        m = '0' + m
      }
      if (c < 10) {
        c = '0' + c
      }
      // 17:35:2922-06-2022
      return d + '-' + mm + '-' + y + ' ' + h + ':' + m + ':' + c
    }
  },
  methods: {
    aRouter() {
      // window.open(this.onlineService);
      window.open(this.onlineService);
    },
@@ -482,7 +514,6 @@
    this.getUserInfo();
    this.getInfoSite();
    this.getNewsList(1);
    this.getNewsList(2);
    this.getArtList();
    this.getBanner();