| | |
| | | } |
| | | }, 3000, 3000); |
| | | |
| | | setInterval(function() { |
| | | if (is_trade_time()) { |
| | | app.get_low_suction_place_order_records(); |
| | | } |
| | | |
| | | }, 3000, 3000); |
| | | |
| | | |
| | | |
| | | function init() { |
| | |
| | | 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() { |
| | |
| | | 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; |
| | | } |
| | | }); |
| | |
| | | |
| | | // }); |
| | | |
| | | }, |
| | | 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; |
| | | } |
| | | }); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | app.get_kpl_market_feelings(); |
| | | app.statistic_latest_limit_up_block(""); |
| | | app.list_forbidden_buy_plates(); |
| | | app.list_low_suction_white_plate(); |
| | | |
| | | } |
| | | |