10.10综合交易所原始源码_移动端
1
admin
2026-02-10 c547081aa61be5c7b6d4c12853c675954c2156eb
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<template>
    <div class="listItem px-5">
        <div class="tab-header-1 px-4 text_color6">
            <div class="td-2">{{ t('股票名称') }}</div>
            <div class="td text-center"> {{ t('价格') }}
                <!-- <div class="flex items-center justfly-center">
                    {{ t('发行价') }}
                    <div class="filter-box ml-2">
                        <div class="filter-icon" :class="[sortVal == 0 ? 'icon_top1_active' : 'icon_top1']"
                            @click="listSort(3)">
                        </div>
                        <div class="filter-icon" :class="[sortVal == 1 ? 'icon_top2_active' : 'icon_top2']"
                            @click="listSort(4)">
                        </div>
                    </div>
                </div> -->
            </div>
            <div class="td text-right">{{ t('首日涨幅') }}
                <!-- <div class="flex items-center justfly-end">
                    {{ t('预计上市时间') }}
                    <div class="filter-box ml-2">
                        <div class="filter-icon" :class="[sortVal == 0 ? 'icon_top1_active' : 'icon_top1']"
                            @click="listSort(3)">
                        </div>
                        <div class="filter-icon" :class="[sortVal == 1 ? 'icon_top2_active' : 'icon_top2']"
                            @click="listSort(4)">
                        </div>
                    </div>
                </div> -->
            </div>
        </div>
        <div>
            <div v-for="(item, index) in list" :key="index" class="py-5 tab-header-1 px-4">
                <div class="td-2">
                    <div class="list-title">{{ item.name }}</div>
                    <div class="text_color6">{{ item.symbol }}</div>
                </div>
                <!-- <div class="td text-center">{{ item.marketPrice }}</div> -->
                <div class="td text-center">{{ item.curPrice }}</div>
                <div class="td text-right red">{{ item.firstDayChangeRatio }}</div>
            </div>
            <div v-if="!list.length" class="noMore text_color6">{{ t('没有更多了') }}</div>
          </div>
    </div>
</template>
 
<script setup>
import {onMounted, ref, computed, inject} from 'vue';
import { useRoute, useRouter } from 'vue-router';
import { useI18n } from "vue-i18n";
import { listListingAndlisted,newIssueList } from '@/service/ipo.api.js'
const { t } = useI18n()
const route = useRoute()
const router = useRouter()
 
const list = ref([]);
const loading = ref(false);
const finished = ref(false);
const currentRate = ref(0);
const sortVal = ref(5)
const index = ref(1)
 
onMounted(() => {
  onLoad()
})
 
const stockType = inject('stockType')
const onLoad = () => {
    let params = {
      type: stockType || 'US-stocks'
    }
    newIssueList(params).then(res => {
      list.value = res
    })
}
 
</script>
<style lang="scss" scoped>
 
.justfly-end{
  justify-content: flex-end;
}
.listItem {
    width: 100%;
    padding: 10px 10px;
    overflow-x: scroll;
    box-sizing: border-box;
    width: max-content;
 
    .flex-2 {
        flex: 2;
    }
 
    .list-title {
        width: 100px;
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
    }
 
 
 
    .tab-header-1 {
        font-size: 13px;
        color: #747A8F;
        display: flex;
        gap: 0 10px;
    }
 
    .td-2 {
        width: 120px;
        display: inline-block;
        flex-shrink: 0;
    }
 
    .td {
        display: inline-block;
        width: 100px;
        flex-shrink: 0;
 
        .filter-box {
            .filter-icon {
                width: 8px;
                height: 6px;
            }
 
            .icon_top1 {
                background: url('@/assets/image/icon_top1.png') no-repeat center;
                background-size: 100% 100%;
            }
 
            .icon_top2 {
                background: url('@/assets/image/icon_top2.png') no-repeat center;
                background-size: 100% 100%;
                margin-top: 2px;
            }
 
            .icon_top1_active {
                background: url('@/assets/image/icon_top3.png') no-repeat center;
                background-size: 100% 100%;
            }
 
            .icon_top2_active {
                background: url('@/assets/image/icon_top4.png') no-repeat center;
                background-size: 100% 100%;
                margin-top: 2px;
            }
        }
    }
 
}
.noMore{
  text-align: center;
  margin: 10px;
}
</style>