sbd-npm 1.1.84 → 1.1.85
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 +24 -7
- package/.npmignore +0 -1
package/package.json
CHANGED
package/util.js
CHANGED
@@ -306,7 +306,7 @@ const Util = {
|
|
306
306
|
|
307
307
|
/**
|
308
308
|
* 获取价格数据
|
309
|
-
* @param
|
309
|
+
* @param element_id
|
310
310
|
* @param interval 循环间隔
|
311
311
|
*/
|
312
312
|
refresh_price: function (element_id, interval = 0) {
|
@@ -2179,6 +2179,16 @@ const Util = {
|
|
2179
2179
|
return index_html;
|
2180
2180
|
},
|
2181
2181
|
|
2182
|
+
/**
|
2183
|
+
* 组装 HTML 超链接
|
2184
|
+
* @param url
|
2185
|
+
* @param title
|
2186
|
+
* @returns {string}
|
2187
|
+
*/
|
2188
|
+
pack_html_link: function (url, title) {
|
2189
|
+
return "<a target='_blank' class='link_cls' rel='noopener noreferrer nofollow' href='" + url + "'>" + title + "</a>";
|
2190
|
+
},
|
2191
|
+
|
2182
2192
|
/**
|
2183
2193
|
* 组装股东数据
|
2184
2194
|
* @param item
|
@@ -2194,13 +2204,20 @@ const Util = {
|
|
2194
2204
|
},
|
2195
2205
|
|
2196
2206
|
/**
|
2197
|
-
*
|
2198
|
-
* @param
|
2199
|
-
* @param title
|
2200
|
-
* @returns {string}
|
2207
|
+
* 获取股东数据
|
2208
|
+
* @param element_id
|
2201
2209
|
*/
|
2202
|
-
|
2203
|
-
|
2210
|
+
fetch_holder_num: function (element_id) {
|
2211
|
+
let code_list = Util.get_code_list(element_id);
|
2212
|
+
if (code_list.length > 0) {
|
2213
|
+
Util.post("/action", {action: "holder_num", code_list: code_list.join("-")}, function (j) {
|
2214
|
+
$.each(j, function (code, item) {
|
2215
|
+
$(".holder_" + code).each(function () {
|
2216
|
+
$(this).html(Util.pack_holder_num(item));
|
2217
|
+
});
|
2218
|
+
});
|
2219
|
+
});
|
2220
|
+
}
|
2204
2221
|
},
|
2205
2222
|
|
2206
2223
|
/**
|
package/.npmignore
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
sbd-npm.md
|