wuwangdong 4 سال پیش
والد
کامیت
8362c43b52
2فایلهای تغییر یافته به همراه28 افزوده شده و 17 حذف شده
  1. 19 16
      assets/resources/module/newNotice/newNotice.prefab
  2. 9 1
      assets/script/mk/utils/TimeUtil.ts

+ 19 - 16
assets/resources/module/newNotice/newNotice.prefab

@@ -767,8 +767,8 @@
     },
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 176.78,
-      "height": 50.4
+      "width": 191.21,
+      "height": 100.8
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -779,7 +779,7 @@
       "__type__": "TypedArray",
       "ctor": "Float64Array",
       "array": [
-        0,
+        -9,
         57.907,
         0,
         0,
@@ -819,10 +819,10 @@
     ],
     "_srcBlendFactor": 770,
     "_dstBlendFactor": 771,
-    "_string": "¥0.30",
-    "_N$string": "¥0.30",
-    "_fontSize": 60,
-    "_lineHeight": 40,
+    "_string": "¥0.3",
+    "_N$string": "¥0.3",
+    "_fontSize": 80,
+    "_lineHeight": 80,
     "_enableWrapText": true,
     "_N$file": null,
     "_isSystemFontUsed": true,
@@ -943,19 +943,19 @@
     },
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 168,
+      "width": 180,
       "height": 50.4
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
-      "x": 0.5,
+      "x": 0,
       "y": 0.5
     },
     "_trs": {
       "__type__": "TypedArray",
       "ctor": "Float64Array",
       "array": [
-        116.941,
+        24.941000000000003,
         0,
         0,
         0,
@@ -995,9 +995,9 @@
     ],
     "_srcBlendFactor": 770,
     "_dstBlendFactor": 771,
-    "_string": "提现至微信零钱",
-    "_N$string": "提现至微信零钱",
-    "_fontSize": 24,
+    "_string": "提现至微信",
+    "_N$string": "提现至微信",
+    "_fontSize": 30,
     "_lineHeight": 40,
     "_enableWrapText": true,
     "_N$file": null,
@@ -1079,7 +1079,7 @@
         "__id__": 29
       }
     ],
-    "_active": true,
+    "_active": false,
     "_components": [
       {
         "__id__": 32
@@ -1331,7 +1331,7 @@
       "ctor": "Float64Array",
       "array": [
         -176.268,
-        -202.379,
+        -172.379,
         0,
         0,
         0,
@@ -1551,7 +1551,7 @@
       "ctor": "Float64Array",
       "array": [
         -150.567,
-        -253.26600000000002,
+        -235.26600000000002,
         0,
         0,
         0,
@@ -2158,8 +2158,11 @@
       "__id__": 2
     },
     "open_effect": 1,
+    "isOpenCloseEffect": true,
     "close_effect": 1,
     "close_toPoint": "",
+    "close_uibg": false,
+    "isDelayOneFrame": false,
     "_id": ""
   },
   {

+ 9 - 1
assets/script/mk/utils/TimeUtil.ts

@@ -182,8 +182,16 @@ export default class TimeUtil {
      */
 
     public getNowDayStringExtend(data?:number, replace: string = '-'): string {
+        function parse_format(t: number): string {
+            let s: string = t.toString();
+            if (t < 10) {
+                s = "0" + t;
+            }
+            return s;
+        }
+
         let date = data?new Date(data):new Date();   
-        return date.getFullYear() + replace + (date.getMonth()+1) + replace + date.getDate() + '  ' + date.getHours() + ':' + date.getMinutes() + ':' + date.getSeconds();
+        return date.getFullYear() + replace + (parse_format(date.getMonth()+1)) + replace + parse_format(date.getDate()) + '  ' + parse_format(date.getHours()) + ':' + parse_format(date.getMinutes()) + ':' + parse_format(date.getSeconds());
     }
 
     //等待seconds时间戳