DESKTOP-CVS3R96\我恁爹
2022-11-09 47f441e34648c595380072497c8c415d830c9f6e
src/page/list/trading-list.vue
@@ -73,7 +73,7 @@
                  <div class="item" v-for="(item, index) in listArr" :key="index" @click="handleGoToKlineDetail(item, index)">
                    <div class="left_title">
                      <div class="tp">
                        <span class="collection" @click.prevent="options(item)">
                        <span class="collection" @click.stop="options(item)">
                          <span class="shu" :class="item.isOption == '1' ? 'shublue' : ''"></span>
                        </span>
                        <span class="title_color">
@@ -328,14 +328,14 @@
                v-else-if="!this.$store.state.settingForm.indexDisplay && !this.$store.state.settingForm.futuresDisplay"
                class="account"
              >¥{{ $store.state.hide ? '****' : Number($store.state.userInfo.userAmt).toFixed(2) }}</p>
              <p
              <!-- <p
                v-else-if="this.$store.state.settingForm.indexDisplay && this.$store.state.settingForm.futuresDisplay"
                class="account"
              >
                ¥{{ $store.state.hide ? '****' : Number($store.state.userInfo.userAmt +
                $store.state.userInfo.userIndexAmt + $store.state.userInfo.userFuturesAmt).toFixed(2)
                }}
              </p>
              </p> -->
            </div>
          </div>
        </div>
@@ -461,6 +461,7 @@
</template>
<script>
import { Toast } from 'mint-ui'
import * as api from "@/axios/api";
import elalert from "@/components/elalert.vue";
export default {
@@ -504,9 +505,13 @@
          name: "科创",
          type: 2
        },
        // {
        //   name: "期货",
        //   type: 3
        // }
        {
          name: "期货",
          type: 3
          name: "新股",
          type: 4
        }
      ],
      tabsItemIndex: 0,
@@ -714,15 +719,53 @@
      }
    },
    handleGoToKlineDetail(item) {
      console.log(item);
      var codes ="";
      var names = "";
      var stock_type = "";
      var soks = "";
      var if_zhishu = '0';
      switch (this.tabsItemIndex) {
        case 0:
          codes = item.code;
          names = item.name;
          stock_type = item.stock_type;
          soks = this.filterSH(item.stock_type);
          if_zhishu = '0';
          break;
          case 1:
          codes = item.indexGid;
          names = item.indexName;
          stock_type = 'sh';
          if_zhishu = item.indexCode;
          soks = 0;
          break;
          case 2:
          codes = item.code;
          names = item.name;
          stock_type = item.stock_type;
          soks = this.filterSH(item.stock_type);
          if_zhishu = '0';
          break;
          case 3:
          codes = item.futuresGid;
          names = item.futuresName;
          soks = 0;
          stock_type = 'qh';
          if_zhishu = item.indexGid;
          break;
        default:
          break;
      }
      this.$router.push({
        path: "/kline",
        query: {
          name: item.name,
          name: names,
          stockplate: item.stock_plate,
          code: item.code,
          type: item.stock_type,
          sok: this.filterSH(item.stock_type)
          code: codes,
          type: stock_type,
          sok:  soks,
          if_zhishu: if_zhishu,
        }
      });
    },