From 5b90d8185c455857e10555b67cdff6c7d25b2c72 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期四, 21 三月 2024 18:36:01 +0800 Subject: [PATCH] 前端代码修改 --- kp_html/kp/js/page.js | 38 ++++++++++++++++++++++++++++++++++++++ 1 files changed, 38 insertions(+), 0 deletions(-) diff --git a/kp_html/kp/js/page.js b/kp_html/kp/js/page.js index b7c5b65..9feca26 100644 --- a/kp_html/kp/js/page.js +++ b/kp_html/kp/js/page.js @@ -456,6 +456,24 @@ }; 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; @@ -482,6 +500,7 @@ 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; @@ -657,7 +676,26 @@ 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]; -- Gitblit v1.8.0