diff --git a/src/views/home/index.vue b/src/views/home/index.vue
index 793e6cf..d35143e 100644
--- a/src/views/home/index.vue
+++ b/src/views/home/index.vue
@@ -105,7 +105,7 @@
-
+
+ {{ $t("homeNewText.hh1") }}
+
+
{{ $t("homeNewText.hh2") }}
+
+
{{ $t("homeNewText.aa7") }}
+
{{ $t("homeNewText.bb1") }}
+
{{ $t("homeNewText.bb2") }}
+
{{ $t("homeNewText.bb3") }}
+
+
+
+
+ {{ item.symbol }}
+
+
{{ item.price }}
+
{{ item.increaseStr }}
+
{{ item.vol }}
+
+
{{$t("homeNewText.aa5")}}
@@ -937,11 +959,13 @@
homeList: [],
iconList: [],
marketList: [],
+ marketListHe: [],
tab: "Optional",
searchTxt: "",
skro: new Skroll(),
collect: [],
ws: null,
+ ws1: null,
pcBannerList: [],
noticeList: [],
data: [99, 71, 78, 25, 36, 92],
@@ -1091,6 +1115,7 @@
// 链接socket
indexMarketList() {
const ws = new Socket(this.Globals.Server.Path.WS);
+ const ws1 = new Socket(this.Globals.Server.Path.WS1);
ws.on("open", () => {
this.ws = ws;
ws.send({
@@ -1118,6 +1143,20 @@
});
}
});
+ ws1.on("open", () => {
+ this.ws1 = ws1;
+ ws1.send({
+ cmd: "sub",
+ msg: "swapMarketList",
+ });
+ });
+ ws1.on("message", (res) => {
+ // console.info(res)
+ let {data,msg,code,sub,type,status} = res;
+ if (sub == "swapMarketList") {
+ this.marketListHe = data[0].marketInfoList;
+ }
+ });
},
// 鼠标移入卡片的样式