From cd3eccb32719bb5409ec62f4e201b85992df2d33 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期一, 30 六月 2025 18:14:50 +0800 Subject: [PATCH] 网页修改 --- kp_html/kp/js/page.js | 73 ++++++++++++++++++++++++++++++++++++ 1 files changed, 72 insertions(+), 1 deletions(-) diff --git a/kp_html/kp/js/page.js b/kp_html/kp/js/page.js index d455c00..3ee5ab4 100644 --- a/kp_html/kp/js/page.js +++ b/kp_html/kp/js/page.js @@ -95,6 +95,13 @@ } }, 3000, 3000); + setInterval(function() { + if (is_trade_time()) { + app.get_low_suction_place_order_records(); + } + + }, 3000, 3000); + function init() { @@ -406,7 +413,9 @@ code_special_blocks:{}, special_codes_list:[], forbidden_refer_codes:[],// 鏉垮潡鎷夐粦鐩戞祴鐨勭エ - new_block_code_special_blocks:{} + new_block_code_special_blocks:{}, + low_suction_plate_white_list:[], + low_suction_place_order_records:[], }, watch: { want_codes: function() { @@ -1163,6 +1172,11 @@ get_l2_subscript_codes:function(){ http_util.get_l2_subscript_codes(function(res){ if(res.code == 0){ + try{ + res.data.list.sort((a, b) => (b[3][3]?1:0) - (a[3][3]?1:0)); + }catch(e){ + + } app.l2_subscript_codes = res.data.list; } }); @@ -1289,7 +1303,63 @@ // }); + }, + check_low_suction_white_plate:function(event, plate) + { + if(event.target.checked){ + this.add_low_suction_white_plate(plate); + }else{ + this.remove_low_suction_white_plate(plate); + } + }, + add_low_suction_white_plate:function(plate){ + // 娣诲姞浣庡惛鐧藉悕鍗� + http_util_of_ls.add_plate_white_list(plate, function(res) { + console.log("娣诲姞浣庡惛鐧藉悕鍗曪細", res); + if (res.code == 0) { + layer.msg("娣诲姞鎴愬姛") + app.list_low_suction_white_plate() + }else{ + layer.msg(res.msg) + } + }); + }, + remove_low_suction_white_plate:function(plate){ + // 娣诲姞浣庡惛鐧藉悕鍗� + http_util_of_ls.delete_plate_white_list(plate, function(res) { + console.log("鍒犻櫎浣庡惛鐧藉悕鍗曪細", res); + if (res.code == 0) { + layer.msg("鍒犻櫎鎴愬姛") + app.list_low_suction_white_plate() + }else{ + layer.msg(res.msg) + } + }); + }, + + list_low_suction_white_plate:function(plate){ + // 娣诲姞浣庡惛鐧藉悕鍗� + http_util_of_ls.get_plate_white_list(function(res) { + console.log("浣庡惛鐧藉悕鍗曞垪琛細", res); + if (res.code == 0) { + app.low_suction_plate_white_list = res.data; + } + }); + }, + + get_low_suction_place_order_records:function(){ + http_util_of_ls.get_place_order_records(function(res){ + console.log("浣庡惛涓嬪崟璁板綍", JSON.stringify(res.data)) + if(res.code==0){ + app.low_suction_place_order_records = res.data; + } + }); } + + + + + } @@ -1305,6 +1375,7 @@ app.get_kpl_market_feelings(); app.statistic_latest_limit_up_block(""); app.list_forbidden_buy_plates(); + app.list_low_suction_white_plate(); } -- Gitblit v1.8.0