sbd-npm 1.3.30 → 1.3.31
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 +7 -1
package/package.json
CHANGED
package/util.js
CHANGED
@@ -2311,7 +2311,7 @@ const Util = {
|
|
2311
2311
|
|
2312
2312
|
/**
|
2313
2313
|
* 对表格每一行排序
|
2314
|
-
* @param td_obj
|
2314
|
+
* @param td_obj 表格里的单元格(td)对象
|
2315
2315
|
*/
|
2316
2316
|
sort_table_row: function (td_obj) {
|
2317
2317
|
let table = td_obj.parents('table').eq(0);
|
@@ -2618,6 +2618,12 @@ const Util = {
|
|
2618
2618
|
$("#" + element_id + "_tips").html('共 <span class="label label-info">' + total_num + '</span> 家 平均涨跌: ' + Util.parse_ratio(average_change_percent) + " 最近5日: " + Util.parse_ratio(average_d5_change_percent) + " 年初至今: " + Util.parse_ratio(average_year_change_percent));
|
2619
2619
|
}
|
2620
2620
|
}
|
2621
|
+
$("#" + element_id).parent().find('thead td').each(function() {
|
2622
|
+
if ($(this).hasClass("info") && $(this).text() === "当前价") {
|
2623
|
+
Util.asc = true;
|
2624
|
+
Util.sort_table_row($(this));
|
2625
|
+
}
|
2626
|
+
});
|
2621
2627
|
Util.hide_tips();
|
2622
2628
|
});
|
2623
2629
|
} else {
|