sbd-npm 1.2.5 → 1.2.6
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 +5 -2
package/package.json
CHANGED
package/util.js
CHANGED
@@ -2248,8 +2248,11 @@ const Util = {
|
|
2248
2248
|
*/
|
2249
2249
|
pack_snowball_follower: function(item) {
|
2250
2250
|
if (item["snowball_follower"] && item["snowball_follower"] > 0) {
|
2251
|
-
let
|
2252
|
-
|
2251
|
+
let snowball_follower_rank = Util.to_unit(item["snowball_follower"]) + "(" + item["snowball_follower_rank"] + ")";
|
2252
|
+
let market_type = Util.is_hk(item["code"]) ? "hk" : "cn";
|
2253
|
+
snowball_follower_rank = Util.pack_html_link(Util.get_url("rank_holder") + "?sort_type=snowball_follower&market_type=" + market_type, snowball_follower_rank);
|
2254
|
+
let tooltip = item["snowball_follower"] + " 人关注,关注排名第 " + item["snowball_follower_rank"] + " 位";
|
2255
|
+
$("#snowball_follower").html(snowball_follower_rank + ' <i class="glyphicon glyphicon-info-sign" data-toggle="tooltip" data-placement="top" data-original-title="' + tooltip + '"></i>');
|
2253
2256
|
$("[data-toggle='tooltip']").tooltip();
|
2254
2257
|
}
|
2255
2258
|
},
|