Commit 9323a571 9323a57192e45438baff940c9e46a359c44045cd by 金学艇

1.视频详情页开发完成

1 parent db8a8b11
...@@ -108,16 +108,16 @@ ...@@ -108,16 +108,16 @@
108 "__id__": 63 108 "__id__": 63
109 }, 109 },
110 { 110 {
111 "__id__": 71 111 "__id__": 69
112 } 112 }
113 ], 113 ],
114 "_active": true, 114 "_active": true,
115 "_components": [ 115 "_components": [
116 { 116 {
117 "__id__": 76 117 "__id__": 78
118 }, 118 },
119 { 119 {
120 "__id__": 77 120 "__id__": 79
121 } 121 }
122 ], 122 ],
123 "_prefab": null, 123 "_prefab": null,
...@@ -207,7 +207,7 @@ ...@@ -207,7 +207,7 @@
207 "array": [ 207 "array": [
208 0, 208 0,
209 0, 209 0,
210 250.28134155273438, 210 271.0659484863281,
211 0, 211 0,
212 0, 212 0,
213 0, 213 0,
...@@ -2744,7 +2744,7 @@ ...@@ -2744,7 +2744,7 @@
2744 }, 2744 },
2745 { 2745 {
2746 "__type__": "cc.Node", 2746 "__type__": "cc.Node",
2747 "_name": "NaviArea", 2747 "_name": "EpisodeArea",
2748 "_objFlags": 0, 2748 "_objFlags": 0,
2749 "_parent": { 2749 "_parent": {
2750 "__id__": 2 2750 "__id__": 2
...@@ -2754,14 +2754,15 @@ ...@@ -2754,14 +2754,15 @@
2754 "__id__": 64 2754 "__id__": 64
2755 }, 2755 },
2756 { 2756 {
2757 "__id__": 67 2757 "__id__": 66
2758 },
2759 {
2760 "__id__": 69
2761 } 2758 }
2762 ], 2759 ],
2763 "_active": true, 2760 "_active": true,
2764 "_components": [], 2761 "_components": [
2762 {
2763 "__id__": 68
2764 }
2765 ],
2765 "_prefab": null, 2766 "_prefab": null,
2766 "_opacity": 255, 2767 "_opacity": 255,
2767 "_color": { 2768 "_color": {
...@@ -2773,8 +2774,8 @@ ...@@ -2773,8 +2774,8 @@
2773 }, 2774 },
2774 "_contentSize": { 2775 "_contentSize": {
2775 "__type__": "cc.Size", 2776 "__type__": "cc.Size",
2776 "width": 1048, 2777 "width": 1216,
2777 "height": 54 2778 "height": 60
2778 }, 2779 },
2779 "_anchorPoint": { 2780 "_anchorPoint": {
2780 "__type__": "cc.Vec2", 2781 "__type__": "cc.Vec2",
...@@ -2783,8 +2784,8 @@ ...@@ -2783,8 +2784,8 @@
2783 }, 2784 },
2784 "_position": { 2785 "_position": {
2785 "__type__": "cc.Vec3", 2786 "__type__": "cc.Vec3",
2786 "x": -527, 2787 "x": -578,
2787 "y": -87, 2788 "y": -213,
2788 "z": 0 2789 "z": 0
2789 }, 2790 },
2790 "_scale": { 2791 "_scale": {
...@@ -2797,8 +2798,8 @@ ...@@ -2797,8 +2798,8 @@
2797 "__type__": "TypedArray", 2798 "__type__": "TypedArray",
2798 "ctor": "Float32Array", 2799 "ctor": "Float32Array",
2799 "array": [ 2800 "array": [
2800 -584.0960083007812, 2801 -576,
2801 -141.68699645996094, 2802 -123,
2802 0, 2803 0,
2803 0, 2804 0,
2804 0, 2805 0,
...@@ -2820,24 +2821,20 @@ ...@@ -2820,24 +2821,20 @@
2820 "_is3DNode": false, 2821 "_is3DNode": false,
2821 "_groupIndex": 0, 2822 "_groupIndex": 0,
2822 "groupIndex": 0, 2823 "groupIndex": 0,
2823 "_id": "9bUT3s9IBIKbJ1BBhEIwLu" 2824 "_id": "63IGZQo85FK7MnO1k11ML5"
2824 }, 2825 },
2825 { 2826 {
2826 "__type__": "cc.Node", 2827 "__type__": "cc.Node",
2827 "_name": "NaviListWrapper", 2828 "_name": "GraphicsLine",
2828 "_objFlags": 0, 2829 "_objFlags": 0,
2829 "_parent": { 2830 "_parent": {
2830 "__id__": 63 2831 "__id__": 63
2831 }, 2832 },
2832 "_children": [ 2833 "_children": [],
2833 {
2834 "__id__": 65
2835 }
2836 ],
2837 "_active": true, 2834 "_active": true,
2838 "_components": [ 2835 "_components": [
2839 { 2836 {
2840 "__id__": 66 2837 "__id__": 65
2841 } 2838 }
2842 ], 2839 ],
2843 "_prefab": null, 2840 "_prefab": null,
...@@ -2851,12 +2848,12 @@ ...@@ -2851,12 +2848,12 @@
2851 }, 2848 },
2852 "_contentSize": { 2849 "_contentSize": {
2853 "__type__": "cc.Size", 2850 "__type__": "cc.Size",
2854 "width": 1048, 2851 "width": 0,
2855 "height": 54 2852 "height": 0
2856 }, 2853 },
2857 "_anchorPoint": { 2854 "_anchorPoint": {
2858 "__type__": "cc.Vec2", 2855 "__type__": "cc.Vec2",
2859 "x": 0, 2856 "x": 0.5,
2860 "y": 0.5 2857 "y": 0.5
2861 }, 2858 },
2862 "_position": { 2859 "_position": {
...@@ -2898,16 +2895,53 @@ ...@@ -2898,16 +2895,53 @@
2898 "_is3DNode": false, 2895 "_is3DNode": false,
2899 "_groupIndex": 0, 2896 "_groupIndex": 0,
2900 "groupIndex": 0, 2897 "groupIndex": 0,
2901 "_id": "4a5x7lgWRO85/6Adt1XYRW" 2898 "_id": "02j7W4daNBWoVUjIzaPKpS"
2899 },
2900 {
2901 "__type__": "cc.Graphics",
2902 "_name": "",
2903 "_objFlags": 0,
2904 "node": {
2905 "__id__": 64
2906 },
2907 "_enabled": true,
2908 "_materials": [
2909 {
2910 "__uuid__": "6f801092-0c37-4f30-89ef-c8d960825b36"
2911 }
2912 ],
2913 "_lineWidth": 10,
2914 "_strokeColor": {
2915 "__type__": "cc.Color",
2916 "r": 255,
2917 "g": 255,
2918 "b": 255,
2919 "a": 255
2920 },
2921 "_lineJoin": 2,
2922 "_lineCap": 0,
2923 "_fillColor": {
2924 "__type__": "cc.Color",
2925 "r": 255,
2926 "g": 255,
2927 "b": 255,
2928 "a": 255
2929 },
2930 "_miterLimit": 10,
2931 "_id": "723sSJ34lMq6ZVBc5AiMbz"
2902 }, 2932 },
2903 { 2933 {
2904 "__type__": "cc.Node", 2934 "__type__": "cc.Node",
2905 "_name": "NaviList", 2935 "_name": "EpisodeListWrapper",
2906 "_objFlags": 0, 2936 "_objFlags": 0,
2907 "_parent": { 2937 "_parent": {
2908 "__id__": 64 2938 "__id__": 63
2909 }, 2939 },
2910 "_children": [], 2940 "_children": [
2941 {
2942 "__id__": 67
2943 }
2944 ],
2911 "_active": true, 2945 "_active": true,
2912 "_components": [], 2946 "_components": [],
2913 "_prefab": null, 2947 "_prefab": null,
...@@ -2921,8 +2955,8 @@ ...@@ -2921,8 +2955,8 @@
2921 }, 2955 },
2922 "_contentSize": { 2956 "_contentSize": {
2923 "__type__": "cc.Size", 2957 "__type__": "cc.Size",
2924 "width": 1048, 2958 "width": 1230,
2925 "height": 54 2959 "height": 80
2926 }, 2960 },
2927 "_anchorPoint": { 2961 "_anchorPoint": {
2928 "__type__": "cc.Vec2", 2962 "__type__": "cc.Vec2",
...@@ -2945,7 +2979,7 @@ ...@@ -2945,7 +2979,7 @@
2945 "__type__": "TypedArray", 2979 "__type__": "TypedArray",
2946 "ctor": "Float32Array", 2980 "ctor": "Float32Array",
2947 "array": [ 2981 "array": [
2948 0, 2982 -14,
2949 0, 2983 0,
2950 0, 2984 0,
2951 0, 2985 0,
...@@ -2968,44 +3002,20 @@ ...@@ -2968,44 +3002,20 @@
2968 "_is3DNode": false, 3002 "_is3DNode": false,
2969 "_groupIndex": 0, 3003 "_groupIndex": 0,
2970 "groupIndex": 0, 3004 "groupIndex": 0,
2971 "_id": "248M67U3pPVI1iY71AOoCI" 3005 "_id": "55Q3bZ+dxB+o5g/xU/qS+w"
2972 },
2973 {
2974 "__type__": "cc.Mask",
2975 "_name": "",
2976 "_objFlags": 0,
2977 "node": {
2978 "__id__": 64
2979 },
2980 "_enabled": true,
2981 "_materials": [
2982 {
2983 "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
2984 }
2985 ],
2986 "_spriteFrame": null,
2987 "_type": 0,
2988 "_segments": 64,
2989 "_N$alphaThreshold": 1,
2990 "_N$inverted": false,
2991 "_id": "b6YSVDYp1E8YBnPy3CupxI"
2992 }, 3006 },
2993 { 3007 {
2994 "__type__": "cc.Node", 3008 "__type__": "cc.Node",
2995 "_name": "LeftIcon", 3009 "_name": "EpisodeList",
2996 "_objFlags": 0, 3010 "_objFlags": 0,
2997 "_parent": { 3011 "_parent": {
2998 "__id__": 63 3012 "__id__": 66
2999 }, 3013 },
3000 "_children": [], 3014 "_children": [],
3001 "_active": true, 3015 "_active": true,
3002 "_components": [ 3016 "_components": [],
3003 {
3004 "__id__": 68
3005 }
3006 ],
3007 "_prefab": null, 3017 "_prefab": null,
3008 "_opacity": 0, 3018 "_opacity": 255,
3009 "_color": { 3019 "_color": {
3010 "__type__": "cc.Color", 3020 "__type__": "cc.Color",
3011 "r": 255, 3021 "r": 255,
...@@ -3015,18 +3025,18 @@ ...@@ -3015,18 +3025,18 @@
3015 }, 3025 },
3016 "_contentSize": { 3026 "_contentSize": {
3017 "__type__": "cc.Size", 3027 "__type__": "cc.Size",
3018 "width": 17, 3028 "width": 0,
3019 "height": 23 3029 "height": 0
3020 }, 3030 },
3021 "_anchorPoint": { 3031 "_anchorPoint": {
3022 "__type__": "cc.Vec2", 3032 "__type__": "cc.Vec2",
3023 "x": 0.5, 3033 "x": 0,
3024 "y": 0.5 3034 "y": 0.5
3025 }, 3035 },
3026 "_position": { 3036 "_position": {
3027 "__type__": "cc.Vec3", 3037 "__type__": "cc.Vec3",
3028 "x": -14.5, 3038 "x": 0,
3029 "y": -0.5, 3039 "y": 0,
3030 "z": 0 3040 "z": 0
3031 }, 3041 },
3032 "_scale": { 3042 "_scale": {
...@@ -3039,7 +3049,7 @@ ...@@ -3039,7 +3049,7 @@
3039 "__type__": "TypedArray", 3049 "__type__": "TypedArray",
3040 "ctor": "Float32Array", 3050 "ctor": "Float32Array",
3041 "array": [ 3051 "array": [
3042 0, 3052 14,
3043 0, 3053 0,
3044 0, 3054 0,
3045 0, 3055 0,
...@@ -3062,50 +3072,61 @@ ...@@ -3062,50 +3072,61 @@
3062 "_is3DNode": false, 3072 "_is3DNode": false,
3063 "_groupIndex": 0, 3073 "_groupIndex": 0,
3064 "groupIndex": 0, 3074 "groupIndex": 0,
3065 "_id": "55MXsXf2JJ25qncAIA6+o/" 3075 "_id": "2alW/41MRPD5q10J7LUoMI"
3066 }, 3076 },
3067 { 3077 {
3068 "__type__": "cc.Sprite", 3078 "__type__": "cc.Widget",
3069 "_name": "", 3079 "_name": "",
3070 "_objFlags": 0, 3080 "_objFlags": 0,
3071 "node": { 3081 "node": {
3072 "__id__": 67 3082 "__id__": 63
3073 }, 3083 },
3074 "_enabled": true, 3084 "_enabled": true,
3075 "_materials": [], 3085 "alignMode": 1,
3076 "_srcBlendFactor": 770, 3086 "_target": null,
3077 "_dstBlendFactor": 771, 3087 "_alignFlags": 9,
3078 "_spriteFrame": null, 3088 "_left": 64,
3079 "_type": 0, 3089 "_right": 0,
3080 "_sizeMode": 1, 3090 "_top": 453,
3081 "_fillType": 0, 3091 "_bottom": 0,
3082 "_fillCenter": { 3092 "_verticalCenter": 0,
3083 "__type__": "cc.Vec2", 3093 "_horizontalCenter": 0,
3084 "x": 0, 3094 "_isAbsLeft": true,
3085 "y": 0 3095 "_isAbsRight": true,
3086 }, 3096 "_isAbsTop": true,
3087 "_fillStart": 0, 3097 "_isAbsBottom": true,
3088 "_fillRange": 0, 3098 "_isAbsHorizontalCenter": true,
3089 "_isTrimmedMode": true, 3099 "_isAbsVerticalCenter": true,
3090 "_atlas": null, 3100 "_originalWidth": 0,
3091 "_id": "fdkeSUmCJCiYeT1sDA1+XZ" 3101 "_originalHeight": 0,
3102 "_id": "d2HjLY5wFAOL1pqnTIF1ep"
3092 }, 3103 },
3093 { 3104 {
3094 "__type__": "cc.Node", 3105 "__type__": "cc.Node",
3095 "_name": "RightIcon", 3106 "_name": "NaviArea",
3096 "_objFlags": 0, 3107 "_objFlags": 0,
3097 "_parent": { 3108 "_parent": {
3098 "__id__": 63 3109 "__id__": 2
3099 }, 3110 },
3100 "_children": [], 3111 "_children": [
3112 {
3113 "__id__": 70
3114 },
3115 {
3116 "__id__": 73
3117 },
3118 {
3119 "__id__": 75
3120 }
3121 ],
3101 "_active": true, 3122 "_active": true,
3102 "_components": [ 3123 "_components": [
3103 { 3124 {
3104 "__id__": 70 3125 "__id__": 77
3105 } 3126 }
3106 ], 3127 ],
3107 "_prefab": null, 3128 "_prefab": null,
3108 "_opacity": 0, 3129 "_opacity": 255,
3109 "_color": { 3130 "_color": {
3110 "__type__": "cc.Color", 3131 "__type__": "cc.Color",
3111 "r": 255, 3132 "r": 255,
...@@ -3115,18 +3136,18 @@ ...@@ -3115,18 +3136,18 @@
3115 }, 3136 },
3116 "_contentSize": { 3137 "_contentSize": {
3117 "__type__": "cc.Size", 3138 "__type__": "cc.Size",
3118 "width": 17, 3139 "width": 1048,
3119 "height": 23 3140 "height": 54
3120 }, 3141 },
3121 "_anchorPoint": { 3142 "_anchorPoint": {
3122 "__type__": "cc.Vec2", 3143 "__type__": "cc.Vec2",
3123 "x": 0.5, 3144 "x": 0,
3124 "y": 0.5 3145 "y": 0.5
3125 }, 3146 },
3126 "_position": { 3147 "_position": {
3127 "__type__": "cc.Vec3", 3148 "__type__": "cc.Vec3",
3128 "x": 1070.5, 3149 "x": -527,
3129 "y": -0.5, 3150 "y": -87,
3130 "z": 0 3151 "z": 0
3131 }, 3152 },
3132 "_scale": { 3153 "_scale": {
...@@ -3139,8 +3160,8 @@ ...@@ -3139,8 +3160,8 @@
3139 "__type__": "TypedArray", 3160 "__type__": "TypedArray",
3140 "ctor": "Float32Array", 3161 "ctor": "Float32Array",
3141 "array": [ 3162 "array": [
3142 0, 3163 -576,
3143 0, 3164 -190,
3144 0, 3165 0,
3145 0, 3166 0,
3146 0, 3167 0,
...@@ -3162,51 +3183,26 @@ ...@@ -3162,51 +3183,26 @@
3162 "_is3DNode": false, 3183 "_is3DNode": false,
3163 "_groupIndex": 0, 3184 "_groupIndex": 0,
3164 "groupIndex": 0, 3185 "groupIndex": 0,
3165 "_id": "c3K7xTUXNMEZkx1EGnKvv+" 3186 "_id": "9bUT3s9IBIKbJ1BBhEIwLu"
3166 },
3167 {
3168 "__type__": "cc.Sprite",
3169 "_name": "",
3170 "_objFlags": 0,
3171 "node": {
3172 "__id__": 69
3173 },
3174 "_enabled": true,
3175 "_materials": [],
3176 "_srcBlendFactor": 770,
3177 "_dstBlendFactor": 771,
3178 "_spriteFrame": null,
3179 "_type": 0,
3180 "_sizeMode": 1,
3181 "_fillType": 0,
3182 "_fillCenter": {
3183 "__type__": "cc.Vec2",
3184 "x": 0,
3185 "y": 0
3186 },
3187 "_fillStart": 0,
3188 "_fillRange": 0,
3189 "_isTrimmedMode": true,
3190 "_atlas": null,
3191 "_id": "6eFbd8rM1GkLH8hJ4bA4t6"
3192 }, 3187 },
3193 { 3188 {
3194 "__type__": "cc.Node", 3189 "__type__": "cc.Node",
3195 "_name": "EpisodeArea", 3190 "_name": "NaviListWrapper",
3196 "_objFlags": 0, 3191 "_objFlags": 0,
3197 "_parent": { 3192 "_parent": {
3198 "__id__": 2 3193 "__id__": 69
3199 }, 3194 },
3200 "_children": [ 3195 "_children": [
3201 { 3196 {
3202 "__id__": 72 3197 "__id__": 71
3203 },
3204 {
3205 "__id__": 74
3206 } 3198 }
3207 ], 3199 ],
3208 "_active": true, 3200 "_active": true,
3209 "_components": [], 3201 "_components": [
3202 {
3203 "__id__": 72
3204 }
3205 ],
3210 "_prefab": null, 3206 "_prefab": null,
3211 "_opacity": 255, 3207 "_opacity": 255,
3212 "_color": { 3208 "_color": {
...@@ -3218,8 +3214,8 @@ ...@@ -3218,8 +3214,8 @@
3218 }, 3214 },
3219 "_contentSize": { 3215 "_contentSize": {
3220 "__type__": "cc.Size", 3216 "__type__": "cc.Size",
3221 "width": 1199, 3217 "width": 1048,
3222 "height": 50 3218 "height": 54
3223 }, 3219 },
3224 "_anchorPoint": { 3220 "_anchorPoint": {
3225 "__type__": "cc.Vec2", 3221 "__type__": "cc.Vec2",
...@@ -3228,8 +3224,8 @@ ...@@ -3228,8 +3224,8 @@
3228 }, 3224 },
3229 "_position": { 3225 "_position": {
3230 "__type__": "cc.Vec3", 3226 "__type__": "cc.Vec3",
3231 "x": -578, 3227 "x": 0,
3232 "y": -213, 3228 "y": 0,
3233 "z": 0 3229 "z": 0
3234 }, 3230 },
3235 "_scale": { 3231 "_scale": {
...@@ -3242,8 +3238,8 @@ ...@@ -3242,8 +3238,8 @@
3242 "__type__": "TypedArray", 3238 "__type__": "TypedArray",
3243 "ctor": "Float32Array", 3239 "ctor": "Float32Array",
3244 "array": [ 3240 "array": [
3245 -601.4459838867188, 3241 0,
3246 -205.30099487304688, 3242 0,
3247 0, 3243 0,
3248 0, 3244 0,
3249 0, 3245 0,
...@@ -3265,22 +3261,18 @@ ...@@ -3265,22 +3261,18 @@
3265 "_is3DNode": false, 3261 "_is3DNode": false,
3266 "_groupIndex": 0, 3262 "_groupIndex": 0,
3267 "groupIndex": 0, 3263 "groupIndex": 0,
3268 "_id": "63IGZQo85FK7MnO1k11ML5" 3264 "_id": "4a5x7lgWRO85/6Adt1XYRW"
3269 }, 3265 },
3270 { 3266 {
3271 "__type__": "cc.Node", 3267 "__type__": "cc.Node",
3272 "_name": "GraphicsLine", 3268 "_name": "NaviList",
3273 "_objFlags": 0, 3269 "_objFlags": 0,
3274 "_parent": { 3270 "_parent": {
3275 "__id__": 71 3271 "__id__": 70
3276 }, 3272 },
3277 "_children": [], 3273 "_children": [],
3278 "_active": true, 3274 "_active": true,
3279 "_components": [ 3275 "_components": [],
3280 {
3281 "__id__": 73
3282 }
3283 ],
3284 "_prefab": null, 3276 "_prefab": null,
3285 "_opacity": 255, 3277 "_opacity": 255,
3286 "_color": { 3278 "_color": {
...@@ -3292,12 +3284,12 @@ ...@@ -3292,12 +3284,12 @@
3292 }, 3284 },
3293 "_contentSize": { 3285 "_contentSize": {
3294 "__type__": "cc.Size", 3286 "__type__": "cc.Size",
3295 "width": 0, 3287 "width": 1048,
3296 "height": 0 3288 "height": 54
3297 }, 3289 },
3298 "_anchorPoint": { 3290 "_anchorPoint": {
3299 "__type__": "cc.Vec2", 3291 "__type__": "cc.Vec2",
3300 "x": 0.5, 3292 "x": 0,
3301 "y": 0.5 3293 "y": 0.5
3302 }, 3294 },
3303 "_position": { 3295 "_position": {
...@@ -3339,57 +3331,44 @@ ...@@ -3339,57 +3331,44 @@
3339 "_is3DNode": false, 3331 "_is3DNode": false,
3340 "_groupIndex": 0, 3332 "_groupIndex": 0,
3341 "groupIndex": 0, 3333 "groupIndex": 0,
3342 "_id": "02j7W4daNBWoVUjIzaPKpS" 3334 "_id": "248M67U3pPVI1iY71AOoCI"
3343 }, 3335 },
3344 { 3336 {
3345 "__type__": "cc.Graphics", 3337 "__type__": "cc.Mask",
3346 "_name": "", 3338 "_name": "",
3347 "_objFlags": 0, 3339 "_objFlags": 0,
3348 "node": { 3340 "node": {
3349 "__id__": 72 3341 "__id__": 70
3350 }, 3342 },
3351 "_enabled": true, 3343 "_enabled": true,
3352 "_materials": [ 3344 "_materials": [
3353 { 3345 {
3354 "__uuid__": "6f801092-0c37-4f30-89ef-c8d960825b36" 3346 "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
3355 } 3347 }
3356 ], 3348 ],
3357 "_lineWidth": 10, 3349 "_spriteFrame": null,
3358 "_strokeColor": { 3350 "_type": 0,
3359 "__type__": "cc.Color", 3351 "_segments": 64,
3360 "r": 255, 3352 "_N$alphaThreshold": 1,
3361 "g": 255, 3353 "_N$inverted": false,
3362 "b": 255, 3354 "_id": "b6YSVDYp1E8YBnPy3CupxI"
3363 "a": 255
3364 },
3365 "_lineJoin": 2,
3366 "_lineCap": 0,
3367 "_fillColor": {
3368 "__type__": "cc.Color",
3369 "r": 255,
3370 "g": 255,
3371 "b": 255,
3372 "a": 255
3373 },
3374 "_miterLimit": 10,
3375 "_id": "723sSJ34lMq6ZVBc5AiMbz"
3376 }, 3355 },
3377 { 3356 {
3378 "__type__": "cc.Node", 3357 "__type__": "cc.Node",
3379 "_name": "EpisodeListWrapper", 3358 "_name": "LeftIcon",
3380 "_objFlags": 0, 3359 "_objFlags": 0,
3381 "_parent": { 3360 "_parent": {
3382 "__id__": 71 3361 "__id__": 69
3383 }, 3362 },
3384 "_children": [ 3363 "_children": [],
3364 "_active": true,
3365 "_components": [
3385 { 3366 {
3386 "__id__": 75 3367 "__id__": 74
3387 } 3368 }
3388 ], 3369 ],
3389 "_active": true,
3390 "_components": [],
3391 "_prefab": null, 3370 "_prefab": null,
3392 "_opacity": 255, 3371 "_opacity": 0,
3393 "_color": { 3372 "_color": {
3394 "__type__": "cc.Color", 3373 "__type__": "cc.Color",
3395 "r": 255, 3374 "r": 255,
...@@ -3399,18 +3378,18 @@ ...@@ -3399,18 +3378,18 @@
3399 }, 3378 },
3400 "_contentSize": { 3379 "_contentSize": {
3401 "__type__": "cc.Size", 3380 "__type__": "cc.Size",
3402 "width": 800, 3381 "width": 17,
3403 "height": 150 3382 "height": 23
3404 }, 3383 },
3405 "_anchorPoint": { 3384 "_anchorPoint": {
3406 "__type__": "cc.Vec2", 3385 "__type__": "cc.Vec2",
3407 "x": 0, 3386 "x": 0.5,
3408 "y": 0.5 3387 "y": 0.5
3409 }, 3388 },
3410 "_position": { 3389 "_position": {
3411 "__type__": "cc.Vec3", 3390 "__type__": "cc.Vec3",
3412 "x": 0, 3391 "x": -14.5,
3413 "y": 0, 3392 "y": -0.5,
3414 "z": 0 3393 "z": 0
3415 }, 3394 },
3416 "_scale": { 3395 "_scale": {
...@@ -3446,20 +3425,50 @@ ...@@ -3446,20 +3425,50 @@
3446 "_is3DNode": false, 3425 "_is3DNode": false,
3447 "_groupIndex": 0, 3426 "_groupIndex": 0,
3448 "groupIndex": 0, 3427 "groupIndex": 0,
3449 "_id": "55Q3bZ+dxB+o5g/xU/qS+w" 3428 "_id": "55MXsXf2JJ25qncAIA6+o/"
3429 },
3430 {
3431 "__type__": "cc.Sprite",
3432 "_name": "",
3433 "_objFlags": 0,
3434 "node": {
3435 "__id__": 73
3436 },
3437 "_enabled": true,
3438 "_materials": [],
3439 "_srcBlendFactor": 770,
3440 "_dstBlendFactor": 771,
3441 "_spriteFrame": null,
3442 "_type": 0,
3443 "_sizeMode": 1,
3444 "_fillType": 0,
3445 "_fillCenter": {
3446 "__type__": "cc.Vec2",
3447 "x": 0,
3448 "y": 0
3449 },
3450 "_fillStart": 0,
3451 "_fillRange": 0,
3452 "_isTrimmedMode": true,
3453 "_atlas": null,
3454 "_id": "fdkeSUmCJCiYeT1sDA1+XZ"
3450 }, 3455 },
3451 { 3456 {
3452 "__type__": "cc.Node", 3457 "__type__": "cc.Node",
3453 "_name": "EpisodeList", 3458 "_name": "RightIcon",
3454 "_objFlags": 0, 3459 "_objFlags": 0,
3455 "_parent": { 3460 "_parent": {
3456 "__id__": 74 3461 "__id__": 69
3457 }, 3462 },
3458 "_children": [], 3463 "_children": [],
3459 "_active": true, 3464 "_active": true,
3460 "_components": [], 3465 "_components": [
3466 {
3467 "__id__": 76
3468 }
3469 ],
3461 "_prefab": null, 3470 "_prefab": null,
3462 "_opacity": 255, 3471 "_opacity": 0,
3463 "_color": { 3472 "_color": {
3464 "__type__": "cc.Color", 3473 "__type__": "cc.Color",
3465 "r": 255, 3474 "r": 255,
...@@ -3469,18 +3478,18 @@ ...@@ -3469,18 +3478,18 @@
3469 }, 3478 },
3470 "_contentSize": { 3479 "_contentSize": {
3471 "__type__": "cc.Size", 3480 "__type__": "cc.Size",
3472 "width": 0, 3481 "width": 17,
3473 "height": 0 3482 "height": 23
3474 }, 3483 },
3475 "_anchorPoint": { 3484 "_anchorPoint": {
3476 "__type__": "cc.Vec2", 3485 "__type__": "cc.Vec2",
3477 "x": 0, 3486 "x": 0.5,
3478 "y": 0.5 3487 "y": 0.5
3479 }, 3488 },
3480 "_position": { 3489 "_position": {
3481 "__type__": "cc.Vec3", 3490 "__type__": "cc.Vec3",
3482 "x": 0, 3491 "x": 1070.5,
3483 "y": 0, 3492 "y": -0.5,
3484 "z": 0 3493 "z": 0
3485 }, 3494 },
3486 "_scale": { 3495 "_scale": {
...@@ -3516,7 +3525,60 @@ ...@@ -3516,7 +3525,60 @@
3516 "_is3DNode": false, 3525 "_is3DNode": false,
3517 "_groupIndex": 0, 3526 "_groupIndex": 0,
3518 "groupIndex": 0, 3527 "groupIndex": 0,
3519 "_id": "2alW/41MRPD5q10J7LUoMI" 3528 "_id": "c3K7xTUXNMEZkx1EGnKvv+"
3529 },
3530 {
3531 "__type__": "cc.Sprite",
3532 "_name": "",
3533 "_objFlags": 0,
3534 "node": {
3535 "__id__": 75
3536 },
3537 "_enabled": true,
3538 "_materials": [],
3539 "_srcBlendFactor": 770,
3540 "_dstBlendFactor": 771,
3541 "_spriteFrame": null,
3542 "_type": 0,
3543 "_sizeMode": 1,
3544 "_fillType": 0,
3545 "_fillCenter": {
3546 "__type__": "cc.Vec2",
3547 "x": 0,
3548 "y": 0
3549 },
3550 "_fillStart": 0,
3551 "_fillRange": 0,
3552 "_isTrimmedMode": true,
3553 "_atlas": null,
3554 "_id": "6eFbd8rM1GkLH8hJ4bA4t6"
3555 },
3556 {
3557 "__type__": "cc.Widget",
3558 "_name": "",
3559 "_objFlags": 0,
3560 "node": {
3561 "__id__": 69
3562 },
3563 "_enabled": true,
3564 "alignMode": 1,
3565 "_target": null,
3566 "_alignFlags": 9,
3567 "_left": 64,
3568 "_right": 0,
3569 "_top": 523,
3570 "_bottom": 0,
3571 "_verticalCenter": 0,
3572 "_horizontalCenter": 0,
3573 "_isAbsLeft": true,
3574 "_isAbsRight": true,
3575 "_isAbsTop": true,
3576 "_isAbsBottom": true,
3577 "_isAbsHorizontalCenter": true,
3578 "_isAbsVerticalCenter": true,
3579 "_originalWidth": 0,
3580 "_originalHeight": 0,
3581 "_id": "bdQNgiwHBPYo/NXAvMvTJC"
3520 }, 3582 },
3521 { 3583 {
3522 "__type__": "cc.Canvas", 3584 "__type__": "cc.Canvas",
...@@ -3559,6 +3621,7 @@ ...@@ -3559,6 +3621,7 @@
3559 "_oFocusScaleFactorInfo": null, 3621 "_oFocusScaleFactorInfo": null,
3560 "_bShowExitBox": false, 3622 "_bShowExitBox": false,
3561 "_iCurrentNaviNumLoc": 1, 3623 "_iCurrentNaviNumLoc": 1,
3624 "_bIsNaviDataInit": false,
3562 "PFB_NAVI": { 3625 "PFB_NAVI": {
3563 "__uuid__": "67426bbf-20cf-4cd0-8ed8-606c117cb81d" 3626 "__uuid__": "67426bbf-20cf-4cd0-8ed8-606c117cb81d"
3564 }, 3627 },
......
...@@ -15,6 +15,7 @@ cc.Class({ ...@@ -15,6 +15,7 @@ cc.Class({
15 15
16 properties: { 16 properties: {
17 _iCurrentNaviNumLoc: 1, 17 _iCurrentNaviNumLoc: 1,
18 _bIsNaviDataInit: false, //是否初始化Navi
18 PFB_NAVI: { 19 PFB_NAVI: {
19 default: null, 20 default: null,
20 type: cc.Prefab, 21 type: cc.Prefab,
...@@ -65,6 +66,7 @@ cc.Class({ ...@@ -65,6 +66,7 @@ cc.Class({
65 //剧集分类 66 //剧集分类
66 this._nodeEpisodeListWrapper = cc.find("EpisodeArea/EpisodeListWrapper", this.node); 67 this._nodeEpisodeListWrapper = cc.find("EpisodeArea/EpisodeListWrapper", this.node);
67 this._nodeEpisodeList = cc.find("EpisodeList", this._nodeEpisodeListWrapper); 68 this._nodeEpisodeList = cc.find("EpisodeList", this._nodeEpisodeListWrapper);
69 this._nodeEpisodeList.addComponent(TVScrollParameter);
68 70
69 // this.initPrefab(); 71 // this.initPrefab();
70 this.checkPfbReadyAndInitPage(); 72 this.checkPfbReadyAndInitPage();
...@@ -95,10 +97,14 @@ cc.Class({ ...@@ -95,10 +97,14 @@ cc.Class({
95 var oJSONResult = JSON.parse(strResponse); 97 var oJSONResult = JSON.parse(strResponse);
96 this._oEpisode = oJSONResult; 98 this._oEpisode = oJSONResult;
97 if (oJSONResult.businessCode == 'success') { 99 if (oJSONResult.businessCode == 'success') {
98 for (let i = 0; i < 4; i++) { 100 for (let i = 0; i < 20; i++) {
99 let nodeEpisodeListCell = cc.instantiate(this.PFB_EPISODE); 101 if (i >= oJSONResult.resultSet.length) {//数据较少时
102 continue;
103 }
104 let nodeEpisodeCell = cc.instantiate(this.PFB_EPISODE);
100 nodeEpisodeCell.x = nodeEpisodeCell.width / 2 + (i) * (nodeEpisodeCell.width + 20); 105 nodeEpisodeCell.x = nodeEpisodeCell.width / 2 + (i) * (nodeEpisodeCell.width + 20);
101 cc.find("EpisodeNum/Text", nodeEpisodeListCell).getComponent(cc.Label).string = oJSONResult.resultSet[i].name; 106 cc.find("EpisodeNum/Text", nodeEpisodeCell).getComponent(cc.Label).string = oJSONResult.resultSet[i].name;
107 this._nodeEpisodeList.addChild(nodeEpisodeCell, 10, "EpisodeListCell" + i);
102 108
103 let fiEpisodeBlock = nodeEpisodeCell.addComponent(FocusInfo); 109 let fiEpisodeBlock = nodeEpisodeCell.addComponent(FocusInfo);
104 fiEpisodeBlock.init('', true, null, null, 1.0); 110 fiEpisodeBlock.init('', true, null, null, 1.0);
...@@ -301,6 +307,23 @@ cc.Class({ ...@@ -301,6 +307,23 @@ cc.Class({
301 } 307 }
302 } 308 }
303 309
310 if (fiFocusTarget && 0 == fiFocusTarget.node.name.indexOf("EpisodeListCell")) {
311 if (fiFocusTarget.node.x - fiFocusTarget.node.width / 2 + this._nodeEpisodeList.x >= this._nodeEpisodeListWrapper.width) {
312 oScrollParameter = this._nodeEpisodeList.getComponent(TVScrollParameter);
313 oScrollParameter.setHasRelation(true);
314 oScrollParameter.setStep((fiFocusTarget.node.x + fiFocusTarget.node.width / 2 + this._nodeEpisodeList.x) - this._nodeEpisodeListWrapper.width+20);
315 oScrollParameter.setTargetPosition(this._nodeEpisodeList.x - oScrollParameter.getStep());
316 // this._oSceneContext._nodeNaviListX = this._nodeEpisodeList.x - oScrollParameter.getStep();
317 }
318 if (fiFocusTarget.node.x + this._nodeEpisodeList.x < 0) {
319 oScrollParameter = this._nodeEpisodeList.getComponent(TVScrollParameter);
320 oScrollParameter.setHasRelation(true);
321 oScrollParameter.setStep(-fiFocusTarget.node.x + fiFocusTarget.node.width / 2 - this._nodeEpisodeList.x+16);
322 oScrollParameter.setTargetPosition(this._nodeEpisodeList.x + oScrollParameter.getStep())
323 // this._oSceneContext._nodeNaviListX = this._nodeEpisodeList.x + oScrollParameter.getStep();
324 }
325 }
326
304 return [fiFocusTarget, oScrollParameter]; 327 return [fiFocusTarget, oScrollParameter];
305 }, 328 },
306 329
...@@ -317,11 +340,6 @@ cc.Class({ ...@@ -317,11 +340,6 @@ cc.Class({
317 break; 340 break;
318 case cc.macro.KEY.right: 341 case cc.macro.KEY.right:
319 case Common.ANDROID_KEY.right: 342 case Common.ANDROID_KEY.right:
320 let index = this._fiCurrentFocus.node.name.replace('EpisodeListCell', '');
321 if (0 == this._fiCurrentFocus.node.name.indexOf('EpisodeListCell') && index == 3 && this._oSceneContext.currentPage * 4 < this._oEpisode.resultSet.length) {
322 this._oSceneContext.currentPage++;
323 this.moveEpisode();
324 }
325 this.keyDownDirection(Common.MOVE_DIRECTION_RIGHT); 343 this.keyDownDirection(Common.MOVE_DIRECTION_RIGHT);
326 break; 344 break;
327 case cc.macro.KEY.down: 345 case cc.macro.KEY.down:
...@@ -330,11 +348,6 @@ cc.Class({ ...@@ -330,11 +348,6 @@ cc.Class({
330 break; 348 break;
331 case cc.macro.KEY.left: 349 case cc.macro.KEY.left:
332 case Common.ANDROID_KEY.left: 350 case Common.ANDROID_KEY.left:
333 let index2 = this._fiCurrentFocus.node.name.replace('EpisodeListCell', '');
334 if (0 == this._fiCurrentFocus.node.name.indexOf('EpisodeListCell') && index2 == 0 && this._oSceneContext.currentPage > 1) {
335 this._oSceneContext.currentPage--;
336 this.moveEpisode();
337 }
338 this.keyDownDirection(Common.MOVE_DIRECTION_LEFT); 351 this.keyDownDirection(Common.MOVE_DIRECTION_LEFT);
339 break; 352 break;
340 case cc.macro.KEY.enter: 353 case cc.macro.KEY.enter:
...@@ -381,51 +394,6 @@ cc.Class({ ...@@ -381,51 +394,6 @@ cc.Class({
381 } 394 }
382 }, 395 },
383 396
384 //移动剧集
385 moveEpisode: function () {
386 let index = (this._oSceneContext.currentPage - 1) * 4;
387 for (let i = index; i < index + 4; i++) {
388 let nodeEpisodeListCell = this._nodeEpisodeList.getChildByName("EpisodeListCell" + i % 4);
389 // if (i >= this._oEpisode.resultSet.length) {//数据较少时隐藏其他多余预制体
390 // nodeEpisodeListCell.active = false; //
391 // continue;
392 // }
393 nodeEpisodeListCell.active = true; //恢复预制可见及可点击
394 if (this._oEpisode.resultSet[i]) {
395 cc.find("EpisodeNum/Text", nodeEpisodeListCell).getComponent(cc.Label).string = this._oEpisode.resultSet[i].name;
396 if (this._strEpisodeImg) {
397 Network.loadImageInNativeRuntime(
398 Common.TOPDRAW_IMAGE_SERVER + this._strEpisodeImg,
399 function (texture) {
400 nodeEpisodeListCell.getChildByName("Bg").getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(texture);
401 }, null, this
402 );
403 }
404 } else {
405 nodeEpisodeListCell.active = false;
406 }
407 this._cFocus.hide();
408 this.scheduleOnce(() => { //指定0让回调函数在下一帧立即执行
409 this._cFocus.flyFocus(this._fiCurrentFocus, this._nodeEpisodeList.getChildByName("EpisodeListCell0").getComponent(FocusInfo), Common.MOVE_DIRECTION_LEFT, 1.0, null);
410 }, 0);
411 setTimeout(function () { //在隐藏1.2秒焦点,
412 this._cFocus.show();
413 }.bind(this), 400);
414
415 // cc.find("TopArea/Name/NormalName/MidName", nodeGatherDetailListCell).getComponent(cc.Label).string = oJSONResult.resultSet[i].name;
416 // cc.find("TopArea/Name/ActiveName/NameContainer/NameText/NameText1", nodeGatherDetailListCell).getComponent(cc.Label).string = oJSONResult.resultSet[i].name;
417 // cc.find("TopArea/Name/ActiveName/NameContainer/NameText/NameText2", nodeGatherDetailListCell).getComponent(cc.Label).string = oJSONResult.resultSet[i].name;
418 // cc.find("TopArea/Name/ActiveName/NameContainer/NameText/NameText1", nodeGatherDetailListCell).getComponent(cc.Label)._updateRenderData(true);
419 // cc.find("TopArea/Name/ActiveName/NameContainer/NameText/NameText2", nodeGatherDetailListCell).getComponent(cc.Label)._updateRenderData(true);
420 // let fiBlock = nodeEpisodeListCell.getComponent(FocusInfo);
421 // fiBlock.setTVLink(
422 // '{"click":[{"action":"ChangeScene","parameters":{"sceneName":"scenePlayerFullScreen",\
423 // "appId":"' + this._strAppId + '","id":"' + this._iMediaId + '","episodeNum":"'+oJSONResult.resultSet[i].index+'",\
424 // "mediaCode":"'+oJSONResult.resultSet[i].code+'","name":"'+oJSONResult.resultSet[i].name+'"}}]}'
425 // );
426 }
427 },
428
429 doCurrentFocusTVLinkAction: function (strAction) { 397 doCurrentFocusTVLinkAction: function (strAction) {
430 let strTVLink = this._fiCurrentFocus.getTVLink(); 398 let strTVLink = this._fiCurrentFocus.getTVLink();
431 cc.log("tvlink===============" + strTVLink); 399 cc.log("tvlink===============" + strTVLink);
......