sbd-npm 1.3.37 → 1.3.38
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/stock_basics.js +8 -1
package/package.json
CHANGED
package/stock_basics.js
CHANGED
@@ -1112,6 +1112,11 @@ let Stock = {
|
|
1112
1112
|
|
1113
1113
|
fetch_margin: function () {
|
1114
1114
|
Stock["rzye_chart"] = Util.show_chart_loading(Stock["rzye_chart"], "rzye_line_canvas");
|
1115
|
+
let margin_url = "http://www.szse.cn/disclosure/margin/margin/index.html";
|
1116
|
+
if (Util.is_sh(Stock["code"])) {
|
1117
|
+
margin_url = "http://www.sse.com.cn/market/othersdata/margin/detail/";
|
1118
|
+
}
|
1119
|
+
$("#margin_panel_title").html(Util.pack_html_link(margin_url, "[" + Stock.name + "]融资余额"));
|
1115
1120
|
let payload = {
|
1116
1121
|
action: "margin",
|
1117
1122
|
date_type: $("#margin_date_type").val(),
|
@@ -1131,7 +1136,6 @@ let Stock = {
|
|
1131
1136
|
rqye_data.push(Util.to_float(item["rqye"], 2));
|
1132
1137
|
price_data.push(item["price"]);
|
1133
1138
|
});
|
1134
|
-
$("#margin_title").html(Util.pack_html_link(j["url"], "[" + Stock.name + "]融资余额"));
|
1135
1139
|
let margin_summary = "";
|
1136
1140
|
if (j["latest"].length > 0) {
|
1137
1141
|
if (j["latest"].length === 1) {
|
@@ -1156,6 +1160,9 @@ let Stock = {
|
|
1156
1160
|
if (j["low"] && j["low"]["date"] && j["low"]["date"] > 0) {
|
1157
1161
|
margin_summary += ' 历史最低: ' + Util.to_unit(j["low"]["rzye"], 3) + '(' + Util.seconds_to_format(j["low"]["date"], "%Y-%m-%d") + ')';
|
1158
1162
|
}
|
1163
|
+
if (j["less_rate"]) {
|
1164
|
+
margin_summary += ' 当前融资余额超过历史 <span style="color: #FFF;" class="label label-info">' + j["less_rate"] + '%</span> 分位水平';
|
1165
|
+
}
|
1159
1166
|
$("#margin_summary").html(margin_summary);
|
1160
1167
|
Stock["rzye_chart"] = Util.multi_axis_line(Stock["rzye_chart"], "rzye_line_canvas", date_data, '融资余额(单位:亿)', rzye_data, '股价', price_data);
|
1161
1168
|
let flow_data = [], color_data = [];
|