| | |
| | | }, callback); |
| | | }, |
| | | |
| | | get_limit_up_list: function(code, callback) { |
| | | http_util.http_request("/kpl/get_limit_up_list", { |
| | | get_limit_up_list: function(code, day, callback) { |
| | | var params = { |
| | | code: code |
| | | }, callback); |
| | | }; |
| | | if(day){ |
| | | params.day = day; |
| | | } |
| | | |
| | | |
| | | http_util.http_request("/kpl/get_limit_up_list", params , callback); |
| | | }, |
| | | |
| | | get_plate_info: function(code, callback) { |
| | |
| | | |
| | | console.log("socket请求", data) |
| | | |
| | | |
| | | var sign = http_util.get_sign(data); |
| | | data['sign'] = sign; |
| | | console.log("参数:",data); |
| | | pyjs.socket_request(JSON.stringify(data), function(result) { |
| | | console.log(result); |
| | | http_util.socket_request(JSON.stringify(data), function(result) { |
| | | console.log("撤单结果",result) |
| | | result = JSON.parse(result); |
| | | if (result.code == 0) { |
| | | // pyjs.show_info(type_desc +"成功"); |
| | | layer.msg(type_desc + "成功") |
| | | if(result.code ==0 ){ |
| | | layer.msg(type_desc + "成功"); |
| | | } |
| | | callback(result); |
| | | }); |
| | | |
| | | }, |
| | | |
| | | get_want_codes: function(plate, callback) { |
| | |
| | | |
| | | console.log(params_str) |
| | | |
| | | md5Hash = crypto.createHash("md5").update(params_str).digest("hex"); |
| | | md5Hash = md5(params_str); |
| | | return md5Hash; |
| | | }, |
| | | cancel_order: function(code, success) { |
| | |
| | | }, callback); |
| | | }, |
| | | // 获取板块下的代码 |
| | | get_plate_codes: function(plate, callback) { |
| | | http_util.http_request("/kpl/get_plate_codes", { |
| | | get_plate_codes: function(plate, day, callback) { |
| | | var params = { |
| | | plate: plate |
| | | }, callback); |
| | | }; |
| | | if(day){ |
| | | params.day = day; |
| | | } |
| | | |
| | | http_util.http_request("/kpl/get_plate_codes", params, callback); |
| | | }, |
| | | |
| | | get_open_limit_up_count_rank(code,callback){ |
| | |
| | | var params={} |
| | | http_util.http_request("/get_kpl_market_feelings", params, callback); |
| | | }, |
| | | get_cb_list(callback){ |
| | | var params={} |
| | | http_util.http_request("/get_cb_list", params, callback); |
| | | }, |
| | | |
| | | |
| | | |