From 154848e66fd2f82ce1a9be92f1abbe502d661fc3 Mon Sep 17 00:00:00 2001
From: lxf <1371462558@qq.com>
Date: Thu, 24 Apr 2025 22:42:31 +0800
Subject: [PATCH] feat: 基本完成
---
src/page/list/tradingList/data.list.vue | 29 ++++++++++++++++-------------
1 files changed, 16 insertions(+), 13 deletions(-)
diff --git a/src/page/list/tradingList/data.list.vue b/src/page/list/tradingList/data.list.vue
index 8aadde9..d221c31 100644
--- a/src/page/list/tradingList/data.list.vue
+++ b/src/page/list/tradingList/data.list.vue
@@ -78,7 +78,7 @@
white-space: nowrap;
"
>
- {{ item.name || item.stockName }}
+ {{ item.st_name || item.name || item.stockName }}
</div>
</div>
<div class="bt">
@@ -198,12 +198,12 @@
pageNumVal: 1,
getInterval: null,
num: 1,
- orderBy: '',
+ orderBy: "",
refreshing: false,
- actions:[
- { text: 'ترتيب', zh: '升序', val: 'asc' },
- { text: 'التخفيض',zh:'降序' , val: 'desc'},
- { text: 'طبيعي' ,zh: '正常', val: ''},
+ actions: [
+ { text: "ترتيب", zh: "升序", val: "asc" },
+ { text: "التخفيض", zh: "降序", val: "desc" },
+ { text: "طبيعي", zh: "正常", val: "" }
]
};
},
@@ -224,7 +224,7 @@
},
methods: {
onSelect(action) {
- this.orderBy = (action.val);
+ this.orderBy = action.val;
this.getStock(this.active, this.zxactive, 1);
},
filterSH(val) {
@@ -246,7 +246,8 @@
// 点击进入详情
const obj = {
pid: item.code || "",
- type: item.stock_type || ""
+ type: item.stock_type || "",
+ name: item.name || ""
};
window.localStorage.setItem("kLine", JSON.stringify(obj));
// return;
@@ -303,13 +304,15 @@
} else if (a == "HJ") {
data = await api.getGoldCrudeOil();
- data.data.list = Object.entries(data.data).map(
- ([name, nowPrice]) => ({
+ data.data.list = Object.entries(data.data).map(([name, nowPrice]) => {
+ let nowPriceArr = Object.entries(nowPrice);
+ return {
name,
- nowPrice,
+ st_name: nowPriceArr[0][0],
+ nowPrice: nowPriceArr[0][1],
stock_type: "HJ"
- })
- );
+ };
+ });
} else {
//大宗
opt.stockType = "";
--
Gitblit v1.9.3