admin
2024-05-07 582b3f0e67e5bf2f5806b70600faaa89f44215a6
kp_html/kp/js/code_list.js
@@ -43,6 +43,7 @@
         passive_buy_codes: null,
         data_type: 0,
         trade_progress_index: -1,
         trade_progress_percent: 0,
         real_order_indexes: new Array(),
         hidden_canceled: true,
         //隐藏撤单
@@ -72,7 +73,9 @@
         kpl_open_limit_up_count_rank:[],
         // 大单买卖数量
         big_buy_order_count:0,
         big_sell_order_count:0
         big_sell_order_count:0,
         // 过滤的索引
         filter_indexes:[]
         
      },
      watch: {
@@ -133,6 +136,8 @@
                  console.log("成交进度", res.data);
                  if (!res.data.is_default) {
                     app.trade_progress_index = res.data.trade_progress;
                     app.trade_progress_percent = res.data.percent;
                  }
               }
            });
@@ -165,6 +170,7 @@
            }
            http_util.get_l2_h_cancel_datas(app.code, app.operate_index, function(res) {
               res = JSON.parse(res);
               console.log("H撤數據",res)
               if (res.code == 0) {
                  app.h_cancel_indexes = res.data;
               }
@@ -291,7 +297,7 @@
         reset_l2_height: function() {
            var height = document.documentElement.clientHeight;
            console.log("屏幕:", height);
            $(".l2-content").eq(0).css("height", (height - 370 - 66 * app
            $(".l2-content").eq(0).css("height", (height - 380 - 66 * app
                  .delegated_buy_code_infos.length - 24 * app.latest_cancel_orders.length
                  ) + "px");
         },
@@ -456,9 +462,21 @@
         },
         need_show: function(item) {
            
            if(app.filter_indexes.length>0){
               if(app.filter_indexes.indexOf(item[2][0])>=0)
               {
                   return true;
               }else{
                  return false;
               }
            }
            if(app.real_order_indexes.includes( item[2][0])){
               return true;
            }
            
            if (app.hidden_canceled && (item[2][6].indexOf('买撤') >= 0 || (item[2][8] != null &&
                  item[2][8].indexOf("-") > 0))) {
@@ -482,7 +500,7 @@
            if (app.hidden_cancel && (item[2][6].indexOf('买撤') >= 0)) {
               return false;
            }
            if (app.hidden_little_money && parseFloat(item[2][3]) < 50) {
            if (app.hidden_little_money && parseFloat(item[2][3]) < 5) {
               return false;
            }
            
@@ -549,6 +567,7 @@
                     app.refresh_l2_data();
                  }
               });
               app.get_l2_cant_buy_reasons(app.origin_code);
               http_util.get_open_limit_up_count_rank(null,function(res){
                  res = JSON.parse(res);
@@ -613,6 +632,18 @@
            }else{
               app.l2_max_volume=null;
            }
            watch_indexes_str = $("#watch_indexes").val();
            if(watch_indexes_str!=null&&watch_indexes_str.length>0){
               var final_indexes=[];
               var indexes = watch_indexes_str.split(",");
               indexes.forEach(function(e){
                 final_indexes.push(parseInt(e));
               });
               app.filter_indexes = final_indexes;
               console.log("选中索引:",final_indexes);
            }else{
               app.filter_indexes =[];
            }
         },
         fordbidden_buy:function(code){