sbd-npm 1.2.76 → 1.2.78
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 +3 -0
package/package.json
CHANGED
package/util.js
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* 通用工具函数
|
3
3
|
* Theme https://colorlib.com/polygon/gentelella/index.html
|
4
|
+
* Font Awesome Icons https://fontawesome.com/v4/icons/
|
4
5
|
* [20 个杀手级 JavaScript 单行代码](https://segmentfault.com/a/1190000040721650)
|
5
6
|
*/
|
6
7
|
|
@@ -189,6 +190,7 @@ const Util = {
|
|
189
190
|
post: function (url, payload, callback, data_type = "json") {
|
190
191
|
$.ajax({
|
191
192
|
url: url,
|
193
|
+
async: true,
|
192
194
|
type: 'POST',
|
193
195
|
dataType: data_type,
|
194
196
|
//headers: {'X-CSRFToken': Util.get_cookie('csrftoken')},
|
@@ -1258,6 +1260,7 @@ const Util = {
|
|
1258
1260
|
" 52周最高:" + Util.digit_compare_trend1(j["exchange_rate"], j["week52high"]) +
|
1259
1261
|
" 52周最低:" + Util.digit_compare_trend1(j["exchange_rate"], j["week52low"]);
|
1260
1262
|
let title = j["name"] !== currency ? (j["name"] + "(" + currency.toUpperCase() + ")") : j["name"];
|
1263
|
+
title = '<i class="fa fa-' + currency + '"></i> ' + title;
|
1261
1264
|
title = Util.pack_html_link("https://cn.investing.com/currencies/" + currency + "-cny", title);
|
1262
1265
|
$("#currency_modal_title").html(title + " " + currency_modal_summary);
|
1263
1266
|
Util.hide_tips();
|