sbd-npm 1.2.3 → 1.2.4
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 +13 -0
- package/.npmignore +0 -1
package/package.json
CHANGED
package/util.js
CHANGED
@@ -2241,6 +2241,19 @@ const Util = {
|
|
2241
2241
|
return "--";
|
2242
2242
|
},
|
2243
2243
|
|
2244
|
+
/**
|
2245
|
+
* 雪球人数关注排名数据
|
2246
|
+
* @param item
|
2247
|
+
* @returns {string}
|
2248
|
+
*/
|
2249
|
+
pack_snowball_follower: function(item) {
|
2250
|
+
if (item["snowball_follower"] && item["snowball_follower"] > 0) {
|
2251
|
+
let tips = item["snowball_follower"] + " 人关注,关注排名第 " + item["snowball_follower_rank"] + " 位";
|
2252
|
+
$("#snowball_follower").html(Util.to_unit(item["snowball_follower"]) + "(" + item["snowball_follower_rank"] + ') <i class="glyphicon glyphicon-info-sign" data-toggle="tooltip" data-placement="top" data-original-title="' + tips + '"></i>');
|
2253
|
+
$("[data-toggle='tooltip']").tooltip();
|
2254
|
+
}
|
2255
|
+
},
|
2256
|
+
|
2244
2257
|
/**
|
2245
2258
|
* 组装主力资金数据
|
2246
2259
|
* @param obj
|
package/.npmignore
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
sbd-npm.md
|