|
@@ -1,73 +1,74 @@
|
|
function timeZH(time) {
|
|
function timeZH(time) {
|
|
- var reg = /\d+/g;
|
|
|
|
- if(time == null || typeof(time) == undefined) {
|
|
|
|
- return "";
|
|
|
|
- }
|
|
|
|
- var time_array = time.toString().match(reg);
|
|
|
|
- var tm = "";
|
|
|
|
- if(time_array.length > 1) {
|
|
|
|
- for(var i = 0; i < time_array.length; i++) {
|
|
|
|
- switch(i) {
|
|
|
|
- case 0:
|
|
|
|
- tm += time_array[i];
|
|
|
|
- tm += "年";
|
|
|
|
- break;
|
|
|
|
- case 1:
|
|
|
|
- tm += time_array[i];
|
|
|
|
- tm += "月";
|
|
|
|
- break;
|
|
|
|
- case 2:
|
|
|
|
- tm += time_array[i];
|
|
|
|
- tm += "日 ";
|
|
|
|
- break;
|
|
|
|
- case 3:
|
|
|
|
- tm += time_array[i];
|
|
|
|
- break;
|
|
|
|
- case 4:
|
|
|
|
- tm += ":";
|
|
|
|
- tm += time_array[i];
|
|
|
|
- break;
|
|
|
|
- case 5:
|
|
|
|
- tm += ":";
|
|
|
|
- tm += time_array[i];
|
|
|
|
- break;
|
|
|
|
- default:
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- return tm;
|
|
|
|
- } else {
|
|
|
|
- for(var i = 0; i < time.length; i++) {
|
|
|
|
- if(i == 3) {
|
|
|
|
- tm += time.substring(0, 4);
|
|
|
|
- tm += "年";
|
|
|
|
- }
|
|
|
|
- if(i == 5) {
|
|
|
|
- tm += time.substring(4, 6);
|
|
|
|
- tm += "月";
|
|
|
|
- }
|
|
|
|
- if(i == 7) {
|
|
|
|
- tm += time.substring(6, 8);
|
|
|
|
- tm += "日";
|
|
|
|
- }
|
|
|
|
- if(i == 9) {
|
|
|
|
- tm += " ";
|
|
|
|
- tm += time.substring(8, 10);
|
|
|
|
- tm += ":";
|
|
|
|
- }
|
|
|
|
- if(i == 11) {
|
|
|
|
- tm += time.substring(10, 12);
|
|
|
|
- tm += ":";
|
|
|
|
- }
|
|
|
|
- if(i == 13) {
|
|
|
|
- tm += time.substring(12, 14);
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- return tm;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ var reg = /\d+/g;
|
|
|
|
+ if (time == null || typeof (time) == undefined) {
|
|
|
|
+ return "";
|
|
|
|
+ }
|
|
|
|
+ var time_array = time.toString().match(reg);
|
|
|
|
+ var tm = "";
|
|
|
|
+ if (time_array.length > 1) {
|
|
|
|
+ for (var i = 0; i < time_array.length; i++) {
|
|
|
|
+ switch (i) {
|
|
|
|
+ case 0:
|
|
|
|
+ tm += time_array[i];
|
|
|
|
+ tm += "年";
|
|
|
|
+ break;
|
|
|
|
+ case 1:
|
|
|
|
+ tm += time_array[i];
|
|
|
|
+ tm += "月";
|
|
|
|
+ break;
|
|
|
|
+ case 2:
|
|
|
|
+ tm += time_array[i];
|
|
|
|
+ tm += "日 ";
|
|
|
|
+ break;
|
|
|
|
+ case 3:
|
|
|
|
+ tm += time_array[i];
|
|
|
|
+ break;
|
|
|
|
+ case 4:
|
|
|
|
+ tm += ":";
|
|
|
|
+ tm += time_array[i];
|
|
|
|
+ break;
|
|
|
|
+ case 5:
|
|
|
|
+ tm += ":";
|
|
|
|
+ tm += time_array[i];
|
|
|
|
+ break;
|
|
|
|
+ default:
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ return tm;
|
|
|
|
+ } else {
|
|
|
|
+ for (var i = 0; i < time.length; i++) {
|
|
|
|
+ if (i == 3) {
|
|
|
|
+ tm += time.substring(0, 4);
|
|
|
|
+ tm += "年";
|
|
|
|
+ }
|
|
|
|
+ if (i == 5) {
|
|
|
|
+ tm += time.substring(4, 6);
|
|
|
|
+ tm += "月";
|
|
|
|
+ }
|
|
|
|
+ if (i == 7) {
|
|
|
|
+ tm += time.substring(6, 8);
|
|
|
|
+ tm += "日";
|
|
|
|
+ }
|
|
|
|
+ if (i == 9) {
|
|
|
|
+ tm += " ";
|
|
|
|
+ tm += time.substring(8, 10);
|
|
|
|
+ tm += ":";
|
|
|
|
+ }
|
|
|
|
+ if (i == 11) {
|
|
|
|
+ tm += time.substring(10, 12);
|
|
|
|
+ tm += ":";
|
|
|
|
+ }
|
|
|
|
+ if (i == 13) {
|
|
|
|
+ tm += time.substring(12, 14);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ return tm;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
|
|
-function splicing(dataNullName, response){
|
|
|
|
|
|
+
|
|
|
|
+function getHtml(dataNullName, response){
|
|
//////// 获取查询的详细内容开始 ////////
|
|
//////// 获取查询的详细内容开始 ////////
|
|
var mapb
|
|
var mapb
|
|
var mapbFlag = response.object != null ? 1 : 0
|
|
var mapbFlag = response.object != null ? 1 : 0
|
|
@@ -597,3 +598,8 @@ function splicing(dataNullName, response){
|
|
return htmlA
|
|
return htmlA
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+dataNullName = 'openBidRecord'
|
|
|
|
+response = {'message': '', 'success': true, 'object': {'openBidRecord': []}}
|
|
|
|
+console.log(getHtml('', response))
|