| | |
| | | trade_data: { |
| | | order: 0 |
| | | }, |
| | | // 代码的开盘啦涨停原因 |
| | | kpl_limit_up_reason:'', |
| | | default_score_data: { |
| | | volume: { |
| | | "score": 0, |
| | |
| | | res = JSON.parse(res) |
| | | if (res.code == 0) { |
| | | app.first_info = res.data |
| | | var temps = new Array(); |
| | | app.first_info.limit_up_reason_statistic.forEach(function(d){ |
| | | if(d[0]==app.kpl_limit_up_reason){ |
| | | current_limit_up_reason = d; |
| | | }else{ |
| | | temps.push(d); |
| | | } |
| | | }); |
| | | if(current_limit_up_reason){ |
| | | temps.unshift(current_limit_up_reason); |
| | | } |
| | | app.first_info.limit_up_reason_statistic = temps; |
| | | // if (app.choose_code.first) { |
| | | // app.get_plate_info(app.choose_code.first, is_auto_refresh); |
| | | // } else if (app.first_info.limit_up_codes) { |
| | |
| | | //请求板块 |
| | | setTimeout(function(){ |
| | | http_util.get_kpl_block_info(code,function(res){ |
| | | console.log("板块请求结果:",res); |
| | | res = JSON.parse(res) |
| | | console.log("板块请求结果:",res); |
| | | if(res.code==0){ |
| | | app.kpl_code_info = res.data; |
| | | // 设置当日涨停原因 |
| | | app.kpl_limit_up_reason = app.kpl_code_info.today[0][0]; |
| | | // 将当前涨停原因置顶 |
| | | var limit_up_reason_statistic = app.first_info.limit_up_reason_statistic; |
| | | var current_limit_up_reason; |
| | | if(limit_up_reason_statistic){ |
| | | var temps = new Array(); |
| | | limit_up_reason_statistic.forEach(function(d){ |
| | | if(d[0]==app.kpl_limit_up_reason){ |
| | | current_limit_up_reason = d; |
| | | }else{ |
| | | temps.push(d); |
| | | } |
| | | }); |
| | | if(current_limit_up_reason){ |
| | | temps.unshift(current_limit_up_reason); |
| | | } |
| | | app.first_info.limit_up_reason_statistic = temps; |
| | | } |
| | | |
| | | } |
| | | }); |
| | | app.get_last_trade_day_reasons(code); |