From cf0d36bbe155ecdfd8bca429666405e830d0dc7a Mon Sep 17 00:00:00 2001
From: XIGUASSR <623844246@qq.com>
Date: Sat, 12 Nov 2022 04:22:49 +0800
Subject: [PATCH] 最新

---
 src/page/home/home.vue |   19 +++++++++----------
 1 files changed, 9 insertions(+), 10 deletions(-)

diff --git a/src/page/home/home.vue b/src/page/home/home.vue
index 2f39bad..d315425 100644
--- a/src/page/home/home.vue
+++ b/src/page/home/home.vue
@@ -220,9 +220,6 @@
 import AllList from "@/page/list/list-all";
 import HomeList from "./components/home-list";
 import Echart from "./components/echart.vue";
-import {
-  Toast
-} from "mint-ui";
 import * as api from "@/axios/api";
 import Logo from "@/assets/img/icon_home_logo.png";
 import Searchs from "@/assets/home/search.png";
@@ -322,8 +319,8 @@
           name: item.name,
           stockplate: item.stock_plate,
           code: item.symbol.substring(2, item.symbol.length),
-          type: item.stocktype,
-          sok: 0,
+          type: item.market,
+          sok: this.filterSH(item.market),
           if_zhishu: '0',
         }
       });
@@ -338,13 +335,13 @@
     goJy(index){
       switch (index) {
         case 0:
-          this.$router.push('/list');
+          this.$router.push('/trading-list');
           break;
           case 1:
-          this.$router.push('/orderlist');
+          this.$router.push('/warehouse');
           break;
           case 2:
-          //this.$router.push();
+          this.$router.push({path:'/trading-list',query:{listid:3}});
           break;
           case 3:
           this.$router.push('/user');
@@ -360,7 +357,7 @@
       if (result.status === 0) {
         this.bannerList = result.data
       } else {
-        Toast(result.msg)
+        this.$store.commit('elAlertShow',{'elAlertShow':true,'elAlertText': result.msg});
       }
     },
     goOnline() {
@@ -379,7 +376,7 @@
       if (data.status === 0) {
         this.onlineService = data.data.onlineService
       } else {
-        Toast(data.msg)
+        this.$store.commit('elAlertShow',{'elAlertShow':true,'elAlertText': data.msg});
       }
     },
     async getStock() {
@@ -816,6 +813,8 @@
         height: 100%;
         display: flex;
         align-items: center;
+        text-align: center;
+        justify-content: center;
       }
       .percentage span{
         height: 0.5rem;

--
Gitblit v1.9.3