sbd-npm 1.2.99 → 1.2.100
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 +9 -2
package/package.json
CHANGED
package/util.js
CHANGED
@@ -1260,10 +1260,17 @@ const Util = {
|
|
1260
1260
|
Util.post(location.pathname, {"action": "category_top_statistics", "type": $("#category_top_type").val()}, function (j) {
|
1261
1261
|
let _html = [];
|
1262
1262
|
j["data"].forEach(function (item) {
|
1263
|
-
let date_data = [];
|
1263
|
+
let date_data = [], cole_url = "";
|
1264
1264
|
_html.push("<tr>");
|
1265
1265
|
item["name"] = item["name"] + "(" + item["code"] + ")";
|
1266
|
-
|
1266
|
+
if (category_top_type === 2) {
|
1267
|
+
cole_url = "http://q.10jqka.com.cn/thshy/detail/code/" + item["code"];
|
1268
|
+
} else if (category_top_type === 3) {
|
1269
|
+
cole_url = "https://www.swsresearch.com/institute_sw/allIndex/releasedIndex/releasedetail?code=" + item["code"] + "&name=" + item["code"];
|
1270
|
+
} else {
|
1271
|
+
cole_url = "https://xueqiu.com/S/" + Util.code_to_fund_symbol(item["code"]);
|
1272
|
+
}
|
1273
|
+
_html.push("<td>", Util.pack_html_link(cole_url, item["name"]), "</td>");
|
1267
1274
|
_html.push("<td>", item["num"], "</td>");
|
1268
1275
|
_html.push("<td data-val='", item["interval_day"], "'>", (item["interval_day"] < 10000 ? (item["interval_day"] + "天") : "--"), "</td>");
|
1269
1276
|
if (item["dist_day"] < item["interval_day"]) {
|