8.28 修改事件详情相关概念模块样式,增加股票详情信息来源展示

This commit is contained in:
尚政杰
2025-08-28 17:42:22 +08:00
parent 58b3414bdd
commit bf2388c3ec
403 changed files with 19843 additions and 1602 deletions

View File

@@ -1 +1 @@
"use strict";require("../common/vendor.js"),require("../request/http.js"),exports.getLocaleHourMinute=function(e){let t=new Date(e),r=t.getHours(),n=t.getMinutes();return(r<10?"0"+r:r)+":"+(n<10?"0"+n:n)},exports.getLocaleTime=function(e){let t=new Date(e),r=t.getFullYear(),n=t.getMonth()+1,o=t.getDate(),u=t.getHours(),i=t.getMinutes();return r+"-"+(n<10?"0"+n:n)+"-"+(o<10?"0"+o:o)+" "+(u<10?"0"+u:u)+":"+(i<10?"0"+i:i)},exports.getRateStr=function(e){if(e)return(e=String(e)).indexOf("-")>-1?(e=e.substr(1,e.length-1),(100*parseFloat(e)).toFixed(2)):0==parseFloat(e)?0:(100*parseFloat(e)).toFixed(2)},exports.getRateUpOrDown=function(e){if(e)return String(e).indexOf("-")>-1};
"use strict";require("../common/vendor.js"),require("../request/http.js"),exports.accMul=function(e,t){var r=0,n=e.toString(),o=t.toString();try{r+=n.split(".")[1].length}catch(a){}try{r+=o.split(".")[1].length}catch(a){}return Number(n.replace(".",""))*Number(o.replace(".",""))/Math.pow(10,r)},exports.getLocaleDate=function(e){-1==e.indexOf("T")&&(e=e.replace(/-/g,"/"));let t=new Date(e),r=t.getMonth()+1,n=t.getDate(),o=t.getHours(),a=t.getMinutes();return(r<10?"0"+r:r)+"-"+(n<10?"0"+n:n)+" "+(o<10?"0"+o:o)+":"+(a<10?"0"+a:a)},exports.getLocaleHourMinute=function(e){-1==e.indexOf("T")&&(e=e.replace(/-/g,"/"));let t=new Date(e),r=t.getHours(),n=t.getMinutes();return(r<10?"0"+r:r)+":"+(n<10?"0"+n:n)},exports.getLocaleTime=function(e){-1==e.indexOf("T")&&(e=e.replace(/-/g,"/"));let t=new Date(e),r=t.getFullYear(),n=t.getMonth()+1,o=t.getDate(),a=t.getHours(),u=t.getMinutes();return r+"-"+(n<10?"0"+n:n)+"-"+(o<10?"0"+o:o)+" "+(a<10?"0"+a:a)+":"+(u<10?"0"+u:u)},exports.getRateStr=function(e){if(e)return(e=String(e)).indexOf("-")>-1?(e=e.substr(1,e.length-1),parseFloat(e).toFixed(2)):0==parseFloat(e)?0:parseFloat(e).toFixed(2)},exports.getRateUpOrDown=function(e){if(e)return String(e).indexOf("-")>-1},exports.replaceAnswerLabel=function(e){return e.replace("<answer>","").replace("</answer>","")};