sbd-npm 1.1.87 → 1.1.88
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/util.js +6 -6
package/package.json
CHANGED
package/util.js
CHANGED
@@ -865,7 +865,7 @@ const Util = {
|
|
865
865
|
_html = Util.stock_basics_html(_html, item);
|
866
866
|
_html.push("<td id='high_", item["code"], "'>0</td>");
|
867
867
|
_html.push("<td id='low_", item["code"], "'>0</td>");
|
868
|
-
_html.push("<td
|
868
|
+
_html.push("<td class='year_price_", item["code"], "'>", (item["stock_price"] ? Util.year_price_rate(item["stock_price"], item["year_price"]) : "--"), "</td>");
|
869
869
|
_html.push("<td class='high_52week_", item["code"], "'>--</td>");
|
870
870
|
if (is_us === 0) {
|
871
871
|
_html.push("<td id='amount_", item["code"], "'>--</td>");
|
@@ -1000,7 +1000,7 @@ const Util = {
|
|
1000
1000
|
_html.push("<tr class='" + component_tr + "'>");
|
1001
1001
|
_html.push("<td>", index + 1, "</td>");
|
1002
1002
|
_html = Util.stock_basics_html(_html, item);
|
1003
|
-
_html.push("<td
|
1003
|
+
_html.push("<td class='year_price_", item["code"], "'>", (item["stock_price"] ? Util.year_price_rate(item["stock_price"], item["year_price"]) : "--"), "</td>");
|
1004
1004
|
let stock_num_tips = "";
|
1005
1005
|
if (item["stock_num"] > 0 && item["pre_stock_num"] > 0) {
|
1006
1006
|
let gap_stock_num = item["stock_num"] - item["pre_stock_num"];
|
@@ -3111,12 +3111,12 @@ const Util = {
|
|
3111
3111
|
|
3112
3112
|
/**
|
3113
3113
|
* 大单交易
|
3114
|
-
* @param
|
3114
|
+
* @param element_id
|
3115
3115
|
*/
|
3116
|
-
big_deal_pie: function (
|
3116
|
+
big_deal_pie: function (element_id, data) {
|
3117
3117
|
let buy = Util.to_unit(data["buy1000"] + data["buy800"] + data["buy600"] + data["buy400"]);
|
3118
3118
|
let sell = Util.to_unit(data["sell1000"] + data["sell800"] + data["sell600"] + data["sell400"]);
|
3119
|
-
$("#" +
|
3119
|
+
$("#" + element_id + "_tips").html("流入: <b class='text-danger'>" + Util.strip_html(buy) + "</b>,流出: <b class='text-success'>" + Util.strip_html(sell) + "</b>");
|
3120
3120
|
let bd_data = [
|
3121
3121
|
{name: '超大单流入', value: Util.to_hundred_million(data["buy1000"])},
|
3122
3122
|
{name: '大单流入', value: Util.to_hundred_million(data["buy800"])},
|
@@ -3127,7 +3127,7 @@ const Util = {
|
|
3127
3127
|
{name: '大单流出', value: Util.to_hundred_million(data["sell800"])},
|
3128
3128
|
{name: '超大单流出', value: Util.to_hundred_million(data["sell1000"])}
|
3129
3129
|
];
|
3130
|
-
let BigDealPie = echarts.init(document.getElementById(
|
3130
|
+
let BigDealPie = echarts.init(document.getElementById(element_id), {});
|
3131
3131
|
BigDealPie.setOption({
|
3132
3132
|
tooltip: {
|
3133
3133
|
trigger: 'item',
|