| | |
| | | }; |
| | | app.trade_data = res.data.trade_data |
| | | } |
| | | res.data.kpl_code_info.plate.forEach(function(e) { |
| | | var s = false; |
| | | if (app.first_info.limit_up_reason_statistic) { |
| | | for (var i = 0; i < app.first_info |
| | | .limit_up_reason_statistic |
| | | .length; i++) { |
| | | if (app.first_info |
| | | .limit_up_reason_statistic[ |
| | | i][0] == e[1]) { |
| | | s = true; |
| | | break; |
| | | } |
| | | } |
| | | } |
| | | e.push(s); |
| | | }); |
| | | |
| | | |
| | | app.kpl_code_info = res.data.kpl_code_info; |
| | | app.initiative_buy_codes = res.data.initiative_buy_codes; |
| | | app.passive_buy_codes = res.data.passive_buy_codes; |
| | |
| | | if (res.code == 0) { |
| | | app.first_info = res.data |
| | | var temps = new Array(); |
| | | var current_limit_up_reason = null; |
| | | app.first_info.limit_up_reason_statistic.forEach(function(d) { |
| | | if (d[0] == app.kpl_limit_up_reason) { |
| | | current_limit_up_reason = d; |
| | |
| | | res = JSON.parse(res) |
| | | console.log("板块请求结果:", res); |
| | | if (res.code == 0) { |
| | | res.data.plate.forEach(function(e) { |
| | | var s = false; |
| | | if (app.first_info.limit_up_reason_statistic) { |
| | | for (var i = 0; i < app.first_info |
| | | .limit_up_reason_statistic |
| | | .length; i++) { |
| | | if (app.first_info |
| | | .limit_up_reason_statistic[ |
| | | i][0] == e[1]) { |
| | | s = true; |
| | | break; |
| | | } |
| | | } |
| | | } |
| | | e.push(s); |
| | | }); |
| | | |
| | | |
| | | app.kpl_code_info = res.data; |
| | | |
| | | // 设置当日涨停原因 |
| | | app.kpl_limit_up_reason = app.kpl_code_info.today[0] |
| | | [0]; |