diff --git a/src/pages/realtimeInfo/indexEtf.vue b/src/pages/realtimeInfo/indexEtf.vue index c9ee2ed..1654e24 100644 --- a/src/pages/realtimeInfo/indexEtf.vue +++ b/src/pages/realtimeInfo/indexEtf.vue @@ -16,12 +16,13 @@ - + + @@ -46,7 +47,7 @@ {{ item.time }} - 来自中国证券报 + 来自 中国证券报 {{ item.title }} @@ -104,7 +105,7 @@ const listData = ref( "list": [ { "time": "11:30:56", - "title": "刚果延长禁令后,中国钴价和库存飙升", + "title": "刚果延长禁令后,中国钴价和库存飙升刚果延长禁令后,中国钴价和库存飙升", "summary": "刚果民主共和国将钴出口禁令延长至9月,导致全球约四分之三的钴供应受到影响。这一消息引…", "etfs": [ { @@ -118,9 +119,12 @@ const listData = ref( ] ) +const form = ref({ + keyword: "" +}) async function getData() { let { code, data } = await getEtfIndexList({ - "date": "2026-10-26", + ...form.value }) if (code == 200) { listData.value = data @@ -174,18 +178,14 @@ onMounted(async () => { .all { display: flex; flex-direction: column; - -} - -.banner { position: relative; - // background: red; .top_menu_text { position: absolute; - top: 30rpx; + top: 60rpx; left: 50%; transform: translateX(-50%); + z-index: 9999; font-family: PingFangSC, PingFang SC; font-weight: 500; @@ -195,6 +195,11 @@ onMounted(async () => { text-align: center; font-style: normal; } + +} + +.banner { + position: relative; } .banner_bk { @@ -203,7 +208,7 @@ onMounted(async () => { .r_banner_title { position: absolute; - top: 160rpx; + top: 200rpx; left: 50rpx; display: flex; flex-direction: column; @@ -258,7 +263,7 @@ onMounted(async () => { background: linear-gradient(180deg, #FFFFFF 0%, #F3F5F8 100%); border-radius: 24rpx 24rpx 0rpx 0rpx; - margin-top: -50px; + margin-top: -70px; padding: 10rpx 30rpx; background: linear-gradient(180deg, #FFFFFF 0%, #F3F5F8 100%); @@ -324,7 +329,7 @@ onMounted(async () => { .item_top { display: flex; - margin-top: 30rpx; + margin-top: 40rpx; padding: 0 30rpx; .r_line { @@ -377,6 +382,8 @@ onMounted(async () => { display: flex; flex-direction: column; margin-left: 20rpx; + width: 95%; + margin-top: 10rpx; .item_time { font-family: PingFangSC, PingFang SC; @@ -392,14 +399,25 @@ onMounted(async () => { } .item_title { - font-family: PingFangSC, PingFang SC; - font-weight: bold; - font-size: 28rpx; - color: #222222; - line-height: 40rpx; - text-align: left; - font-style: normal; + width: 100%; margin-top: 30rpx; + + text { + font-family: PingFangSC, PingFang SC; + font-weight: bold; + font-size: 28rpx; + color: #222222; + line-height: 40rpx; + text-align: left; + font-style: normal; + + display: inline-block; + /* 或 block */ + width: 100%; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + } } .item_summary {