1
PC-20250623MANY\Administrator
2025-08-18 00a9199abd43a052f26c2a7e8cb7e9c2fce71dc7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<template>
  <div>
    <van-cell>
      <van-row
        align="center"
        type="flex"
        justify="space-between"
        class="item-box"
      >
        <van-col span="6">{{ $t("名称") }}</van-col>
        <van-col span="8">
          {{ $t("上市时间") }}
        </van-col>
        <van-col span="8" style="text-align: right">
          <div>
            {{ $t("开始时间") }}
          </div>
          <div>{{ $t("结束时间") }}</div>
        </van-col>
      </van-row>
    </van-cell>
    <div class="fg"></div>
    <van-cell v-for="item in showList" :key="item.id">
      <van-row
        align="center"
        type="flex"
        justify="space-between"
        class="item-box"
      >
        <van-col span="6">{{ item.newCoinName }}</van-col>
        <van-col span="8">
          {{ $moment(item.listingTime).format("YYYY-MM-DD") }}
        </van-col>
        <van-col span="8" style="text-align: right">
          <div>
            {{ $moment(item.applicationStartTime).format("YYYY-MM-DD") }}
          </div>
          <div>{{ $moment(item.applicationEndTime).format("YYYY-MM-DD") }}</div>
        </van-col>
      </van-row>
    </van-cell>
  </div>
</template>
 
<script>
import { icoNewCurrencygetList } from "@/API/home.api";
import { List, Cell, Dialog } from 'vant';
 
export default {
  components: {
    [Dialog.Component.name]: Dialog.Component,
    [List.name]: List,
    [Cell.name]: Cell,
  },
  props: ["active"],
  watch: {
    active() {
      this.getList();
    },
  },
  data() {
    return {
      showList: [],
    };
  },
  mounted() {
    this.getList();
  },
  methods: {
    async getList() {
      const res = await icoNewCurrencygetList({ type: 0 });
      this.showList = res;
    },
  },
};
</script>
 
<style lang="scss" scoped>
::v-deep .van-field__body {
  height: 100%;
  padding-left: 10px;
}
 
.item-box {
  padding: 0 20px;
  border-bottom: 1px solid #eee;
}
 
.fg {
  width: 100%;
  height: 10px;
}
</style>