12.4 概念模块功能完善

This commit is contained in:
尚政杰
2025-12-04 17:41:33 +08:00
parent 4e64455b9b
commit 44842120da
5090 changed files with 9843 additions and 146120 deletions

View File

@@ -57,6 +57,20 @@ function getRateStr(r) {
return parseFloat(r).toFixed(2);
}
}
function getChgRateStr(r) {
if (!r)
return;
r = String(r);
if (r.indexOf("-") > -1) {
r = r.substr(1, r.length - 1);
return "-" + parseFloat(r).toFixed(2);
} else {
if (parseFloat(r) == 0) {
return 0;
} else
return "+" + parseFloat(r).toFixed(2);
}
}
function getRateUpOrDown(r) {
if (!r)
return;
@@ -110,6 +124,7 @@ function replaceAnswerLabel(text) {
exports.accDiv = accDiv;
exports.accMul = accMul;
exports.accSub = accSub;
exports.getChgRateStr = getChgRateStr;
exports.getLocalDate = getLocalDate;
exports.getLocaleHourMinute = getLocaleHourMinute;
exports.getLocaleMonthDayHourMinte = getLocaleMonthDayHourMinte;