future 1 年之前
父节点
当前提交
82b90dd70a

+ 20 - 20
assets/resources/prefab/run/long_story_list_item.prefab

@@ -1283,7 +1283,7 @@
     },
     "_lpos": {
       "__type__": "cc.Vec3",
-      "x": 199.87800000000004,
+      "x": 165.87800000000004,
       "y": 441.875,
       "z": 0
     },
@@ -1603,7 +1603,7 @@
     "_lpos": {
       "__type__": "cc.Vec3",
       "x": -440.272,
-      "y": 115.072,
+      "y": 121.072,
       "z": 0
     },
     "_lrot": {
@@ -1643,7 +1643,7 @@
     },
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 350,
+      "width": 330,
       "height": 176
     },
     "_anchorPoint": {
@@ -1685,7 +1685,7 @@
     },
     "_type": 0,
     "_fillType": 0,
-    "_sizeMode": 1,
+    "_sizeMode": 0,
     "_fillCenter": {
       "__type__": "cc.Vec2",
       "x": 0,
@@ -2571,8 +2571,8 @@
     },
     "_lpos": {
       "__type__": "cc.Vec3",
-      "x": 444.681,
-      "y": 216.658,
+      "x": 428.681,
+      "y": 209.658,
       "z": 0
     },
     "_lrot": {
@@ -2612,7 +2612,7 @@
     },
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 325,
+      "width": 290,
       "height": 234
     },
     "_anchorPoint": {
@@ -3221,7 +3221,7 @@
     },
     "_lpos": {
       "__type__": "cc.Vec3",
-      "x": 187.05700000000002,
+      "x": 172.867,
       "y": -469.131,
       "z": 0
     },
@@ -3540,8 +3540,8 @@
     },
     "_lpos": {
       "__type__": "cc.Vec3",
-      "x": -439.594,
-      "y": 201.579,
+      "x": -434.594,
+      "y": 197.579,
       "z": 0
     },
     "_lrot": {
@@ -3581,7 +3581,7 @@
     },
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 350,
+      "width": 340,
       "height": 260
     },
     "_anchorPoint": {
@@ -3960,8 +3960,8 @@
       "__type__": "cc.Quat",
       "x": 0,
       "y": 0,
-      "z": -0.17364817766693033,
-      "w": 0.984807753012208
+      "z": -0.21643961393810288,
+      "w": 0.9762960071199334
     },
     "_lscale": {
       "__type__": "cc.Vec3",
@@ -3975,7 +3975,7 @@
       "__type__": "cc.Vec3",
       "x": 0,
       "y": 0,
-      "z": -20
+      "z": -25
     },
     "_id": ""
   },
@@ -4509,7 +4509,7 @@
     },
     "_lpos": {
       "__type__": "cc.Vec3",
-      "x": 474.933,
+      "x": 467.933,
       "y": 206.617,
       "z": 0
     },
@@ -4550,7 +4550,7 @@
     },
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 400,
+      "width": 385,
       "height": 260
     },
     "_anchorPoint": {
@@ -5134,7 +5134,7 @@
     },
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 1080,
+      "width": 1020,
       "height": 2700
     },
     "_anchorPoint": {
@@ -5211,7 +5211,7 @@
     },
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 1080,
+      "width": 1020,
       "height": 2700
     },
     "_anchorPoint": {
@@ -5284,8 +5284,8 @@
     },
     "_alignFlags": 40,
     "_target": null,
-    "_left": 5.329070518200751e-15,
-    "_right": -5.329070518200751e-15,
+    "_left": 30,
+    "_right": 30,
     "_top": 985.0000000000001,
     "_bottom": 835.0000000000001,
     "_horizontalCenter": 0,

+ 4 - 2
assets/script/run/game_list_view/long_story_list.ts

@@ -121,7 +121,7 @@ export class long_story_list extends Component {
         })
     }
 
-    private requestData(is_scroll_bottom:boolean, cb=null) {
+    private requestData(is_scroll_bottom:boolean, success_cb=null) {
         if(is_scroll_bottom) {
             this.cur_page+=1
         }
@@ -158,7 +158,9 @@ export class long_story_list extends Component {
                 if(this.cur_page>=this.page_total_count) {
                     this.is_can_request = false
                 }
-                cb && cb(msg)
+                
+                success_cb && success_cb(msg)
+
             } else {
                 if(is_scroll_bottom) {
                     this.cur_page -=1