sbd-npm 1.4.3 → 1.4.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 +19 -1
package/package.json
CHANGED
package/util.js
CHANGED
@@ -3243,7 +3243,7 @@ const Util = {
|
|
3243
3243
|
pack_fund_manager: function (item) {
|
3244
3244
|
if (item["managers"] && item["managers"] !== "---") {
|
3245
3245
|
let html = [];
|
3246
|
-
let managers = item["managers"].replace(/、/g, " ").replace(/,/g, " ").split(" ");
|
3246
|
+
let managers = item["managers"].replace(/、/g, " ").replace(/,/g, " ").replace(/,/g, " ").split(" ");
|
3247
3247
|
managers.forEach(function(manager) {
|
3248
3248
|
if (manager) {
|
3249
3249
|
html.push(Util.pack_html_link("https://www.howbuy.com/search/quicksearch.htm?skey=" + manager, manager));
|
@@ -3254,6 +3254,24 @@ const Util = {
|
|
3254
3254
|
return "--";
|
3255
3255
|
},
|
3256
3256
|
|
3257
|
+
/**
|
3258
|
+
* 组装基金评级数据
|
3259
|
+
* @param item
|
3260
|
+
* @returns {string}
|
3261
|
+
*/
|
3262
|
+
pack_fund_rating: function (item) {
|
3263
|
+
if (item["rating"]) {
|
3264
|
+
let rating = item["rating"];
|
3265
|
+
if (rating.includes("买入") || rating.includes("增持")) {
|
3266
|
+
return "<b class='text-danger'>" + rating + "</b>";
|
3267
|
+
} else if (rating.includes("卖出") || rating.includes("减持")) {
|
3268
|
+
return "<b class='text-success'>" + rating + "</b>";
|
3269
|
+
}
|
3270
|
+
return rating;
|
3271
|
+
}
|
3272
|
+
return "--";
|
3273
|
+
},
|
3274
|
+
|
3257
3275
|
/**
|
3258
3276
|
* 雪球人数关注排名数据
|
3259
3277
|
* @param item
|