恢复部分数据
Showing
15 changed files
with
499 additions
and
0 deletions
assets/Script/data.meta
0 → 100644
assets/Script/data/GameLobbyCategoryJson.js
0 → 100644
1 | cc.Class({ | ||
2 | extends: cc.Component, | ||
3 | |||
4 | statics: { | ||
5 | gameCategory: { | ||
6 | "businessCode": "success", | ||
7 | "count": 10, | ||
8 | "currentTime": 1567477099396, | ||
9 | "description": "", | ||
10 | "resultSet": [ | ||
11 | { | ||
12 | "id": 233, | ||
13 | "title": "火箭小黄人", | ||
14 | "packageName":"com.topdraw.xhx.bird", | ||
15 | "image": [ | ||
16 | { | ||
17 | "bg": "game/bg_xyx_10", | ||
18 | "fileUrl": "game/xyx_10" | ||
19 | } | ||
20 | ] | ||
21 | }, | ||
22 | { | ||
23 | "id": 233, | ||
24 | "title": "接糖果", | ||
25 | "packageName":"com.topdraw.xhx.candy", | ||
26 | "image": [ | ||
27 | { | ||
28 | "bg": "game/bg_xyx_5", | ||
29 | "fileUrl": "game/xyx_5" | ||
30 | } | ||
31 | ] | ||
32 | }, | ||
33 | { | ||
34 | "id": 233, | ||
35 | "title": "欢乐叠蛋糕", | ||
36 | "packageName":"com.topdraw.xhx.cake", | ||
37 | "image": [ | ||
38 | { | ||
39 | "bg": "game/bg_xyx_1", | ||
40 | "fileUrl": "game/xyx_1" | ||
41 | } | ||
42 | ] | ||
43 | }, | ||
44 | { | ||
45 | "id": 233, | ||
46 | "title": "记忆翻牌", | ||
47 | "packageName":"com.topdraw.xhx.fanpai", | ||
48 | "image": [ | ||
49 | { | ||
50 | "bg": "game/bg_xyx_2", | ||
51 | "fileUrl": "game/xyx_2" | ||
52 | } | ||
53 | ] | ||
54 | }, | ||
55 | { | ||
56 | "id": 233, | ||
57 | "title": "飞檐走壁", | ||
58 | "packageName":"com.topdraw.xhx.feiyanzoubi", | ||
59 | "image": [ | ||
60 | { | ||
61 | "bg": "game/bg_xyx_9", | ||
62 | "fileUrl": "game/xyx_9" | ||
63 | } | ||
64 | ] | ||
65 | }, | ||
66 | { | ||
67 | "id": 233, | ||
68 | "title": "旋转海盗", | ||
69 | "packageName":"com.topdraw.xhx.haidao", | ||
70 | "image": [ | ||
71 | { | ||
72 | "bg": "game/bg_xyx_8", | ||
73 | "fileUrl": "game/xyx_8" | ||
74 | } | ||
75 | ] | ||
76 | }, | ||
77 | { | ||
78 | "id": 233, | ||
79 | "title": "奔跑吧小马宝莉", | ||
80 | "packageName":"com.topdraw.xhx.run", | ||
81 | "image": [ | ||
82 | { | ||
83 | "bg": "game/bg_xyx_7", | ||
84 | "fileUrl": "game/xyx_7" | ||
85 | } | ||
86 | ] | ||
87 | }, | ||
88 | { | ||
89 | "id": 233, | ||
90 | "title": "猜猜我是谁", | ||
91 | "packageName":"com.topdraw.xhx.guess", | ||
92 | "image": [ | ||
93 | { | ||
94 | "bg": "game/bg_xyx_3", | ||
95 | "fileUrl": "game/xyx_3" | ||
96 | } | ||
97 | ] | ||
98 | }, | ||
99 | { | ||
100 | "id": 233, | ||
101 | "title": "它的颜色", | ||
102 | "packageName":"com.topdraw.xhx.guesscolor", | ||
103 | "image": [ | ||
104 | { | ||
105 | "bg": "game/bg_xyx_4", | ||
106 | "fileUrl": "game/xyx_4" | ||
107 | } | ||
108 | ] | ||
109 | }, | ||
110 | { | ||
111 | "id": 233, | ||
112 | "title": "数一数", | ||
113 | "packageName":"com.topdraw.xhx.shuyishu", | ||
114 | "image": [ | ||
115 | { | ||
116 | "bg": "game/bg_xyx_6", | ||
117 | "fileUrl": "game/xyx_6" | ||
118 | } | ||
119 | ] | ||
120 | } | ||
121 | ] | ||
122 | }, | ||
123 | gameCategory2: { | ||
124 | "businessCode": "success", | ||
125 | "count": 10, | ||
126 | "currentTime": 1567477099396, | ||
127 | "description": "", | ||
128 | "resultSet": [ | ||
129 | { | ||
130 | "id": 233, | ||
131 | "title": "火箭小黄人", | ||
132 | "packageName":"com.topdraw.xhx.bird", | ||
133 | "image": [ | ||
134 | { | ||
135 | "bg": "game/bg_xyx_10", | ||
136 | "fileUrl": "game/xyx_10" | ||
137 | } | ||
138 | ] | ||
139 | }, | ||
140 | { | ||
141 | "id": 233, | ||
142 | "title": "接糖果", | ||
143 | "packageName":"com.topdraw.xhx.candy", | ||
144 | "image": [ | ||
145 | { | ||
146 | "bg": "game/bg_xyx_5", | ||
147 | "fileUrl": "game/xyx_5" | ||
148 | } | ||
149 | ] | ||
150 | }, | ||
151 | { | ||
152 | "id": 233, | ||
153 | "title": "欢乐叠蛋糕", | ||
154 | "packageName":"com.topdraw.xhx.cake", | ||
155 | "image": [ | ||
156 | { | ||
157 | "bg": "game/bg_xyx_1", | ||
158 | "fileUrl": "game/xyx_1" | ||
159 | } | ||
160 | ] | ||
161 | }, | ||
162 | { | ||
163 | "id": 233, | ||
164 | "title": "记忆翻牌", | ||
165 | "packageName":"com.topdraw.xhx.fanpai", | ||
166 | "image": [ | ||
167 | { | ||
168 | "bg": "game/bg_xyx_2", | ||
169 | "fileUrl": "game/xyx_2" | ||
170 | } | ||
171 | ] | ||
172 | }, | ||
173 | { | ||
174 | "id": 233, | ||
175 | "title": "飞檐走壁", | ||
176 | "packageName":"com.topdraw.xhx.feiyanzoubi", | ||
177 | "image": [ | ||
178 | { | ||
179 | "bg": "game/bg_xyx_9", | ||
180 | "fileUrl": "game/xyx_9" | ||
181 | } | ||
182 | ] | ||
183 | }, | ||
184 | { | ||
185 | "id": 233, | ||
186 | "title": "旋转海盗", | ||
187 | "packageName":"com.topdraw.xhx.haidao", | ||
188 | "image": [ | ||
189 | { | ||
190 | "bg": "game/bg_xyx_8", | ||
191 | "fileUrl": "game/xyx_8" | ||
192 | } | ||
193 | ] | ||
194 | }, | ||
195 | |||
196 | ] | ||
197 | }, | ||
198 | gameCategory3: { | ||
199 | "businessCode": "success", | ||
200 | "count": 10, | ||
201 | "currentTime": 1567477099396, | ||
202 | "description": "", | ||
203 | "resultSet": [ | ||
204 | |||
205 | { | ||
206 | "id": 233, | ||
207 | "title": "飞檐走壁", | ||
208 | "packageName":"com.topdraw.xhx.feiyanzoubi", | ||
209 | "image": [ | ||
210 | { | ||
211 | "bg": "game/bg_xyx_9", | ||
212 | "fileUrl": "game/xyx_9" | ||
213 | } | ||
214 | ] | ||
215 | }, | ||
216 | { | ||
217 | "id": 233, | ||
218 | "title": "旋转海盗", | ||
219 | "packageName":"com.topdraw.xhx.haidao", | ||
220 | "image": [ | ||
221 | { | ||
222 | "bg": "game/bg_xyx_8", | ||
223 | "fileUrl": "game/xyx_8" | ||
224 | } | ||
225 | ] | ||
226 | }, | ||
227 | { | ||
228 | "id": 233, | ||
229 | "title": "奔跑吧小马宝莉", | ||
230 | "packageName":"com.topdraw.xhx.run", | ||
231 | "image": [ | ||
232 | { | ||
233 | "bg": "game/bg_xyx_7", | ||
234 | "fileUrl": "game/xyx_7" | ||
235 | } | ||
236 | ] | ||
237 | }, | ||
238 | { | ||
239 | "id": 233, | ||
240 | "title": "猜猜我是谁", | ||
241 | "packageName":"com.topdraw.xhx.guess", | ||
242 | "image": [ | ||
243 | { | ||
244 | "bg": "game/bg_xyx_3", | ||
245 | "fileUrl": "game/xyx_3" | ||
246 | } | ||
247 | ] | ||
248 | }, | ||
249 | { | ||
250 | "id": 233, | ||
251 | "title": "它的颜色", | ||
252 | "packageName":"com.topdraw.xhx.guesscolor", | ||
253 | "image": [ | ||
254 | { | ||
255 | "bg": "game/bg_xyx_4", | ||
256 | "fileUrl": "game/xyx_4" | ||
257 | } | ||
258 | ] | ||
259 | }, | ||
260 | { | ||
261 | "id": 233, | ||
262 | "title": "数一数", | ||
263 | "packageName":"com.topdraw.xhx.shuyishu", | ||
264 | "image": [ | ||
265 | { | ||
266 | "bg": "game/bg_xyx_6", | ||
267 | "fileUrl": "game/xyx_6" | ||
268 | } | ||
269 | ] | ||
270 | } | ||
271 | ] | ||
272 | } | ||
273 | } | ||
274 | |||
275 | }); |
assets/Script/data/TestLayout.js
0 → 100644
1 | //模拟动态数据 | ||
2 | |||
3 | cc.Class({ | ||
4 | extends: cc.Component, | ||
5 | |||
6 | statics: { | ||
7 | layout4Page: { | ||
8 | id: 121,//每个页面对应一个pageId,后台创建下发生成 | ||
9 | name: "首页",//page layout名称 | ||
10 | code: "eb954b1e-712e-415c-ba27-ddcf60f64adf",//每个页面对应一个pageCode,后台创建生成 | ||
11 | layout: "absolute",//页面整理布局,非必填字段 | ||
12 | children: [ | ||
13 | { | ||
14 | "name": "Navigator",/* 左侧导航 */ | ||
15 | "layout": "vertical",//浮动式垂直布局 | ||
16 | "position": [44, 98],//框架的起始坐标 | ||
17 | "childrenSize": [159, 72],//子元素尺寸 | ||
18 | "childrenMargin": [0, 0, 3, 0],//子元素边距 | ||
19 | "dataContainer": "promotion_list",//列表名称 | ||
20 | "data": {/* 对于数据比较少的采取这种方式或者本地数据 */ | ||
21 | "name": "Navigator", | ||
22 | "resultSet": [ | ||
23 | { | ||
24 | "name": "recommend",//项名称 填写比较规范 | ||
25 | "tvlink": '{"click": [{"action": "changeLayout","parameters": {"layoutPath": "layout/waterfall_recommend.json"}}]}',//项动作 | ||
26 | "type": "promotion_item",//项类型 非必填 | ||
27 | "imageURL": "image/navigator/recommend.png",//项图片路径 | ||
28 | "top": 120, | ||
29 | "left": 100, | ||
30 | }, | ||
31 | { | ||
32 | "name": "three2six", | ||
33 | //"tvlink": '{"click": [{"action": "changeLayout","parameters": {"layoutPath": "layout/waterfall_three2six.json"}}]}', | ||
34 | "tvlink": '{"click": [{"action": "ChangeScene","parameters": {"sceneName":"sceneGameLobby"}}]}', | ||
35 | "type": "promotion_item", | ||
36 | "imageURL": "image/navigator/three2six.png", | ||
37 | "top": 240, | ||
38 | "left": 100, | ||
39 | }, | ||
40 | { | ||
41 | "name": "primarySchool", | ||
42 | // "tvlink": '{"click": [{"action": "changeLayout","parameters": {"layoutPath": "layout/waterfall_primarySchool.json"}}]}', | ||
43 | "tvlink": '{"click": [{"action": "ChangeScene","parameters": {"sceneName":"sceneGame"}}]}', | ||
44 | "type": "promotion_item", | ||
45 | "imageURL": "image/navigator/primary.png", | ||
46 | "top": 360, | ||
47 | "left": 100, | ||
48 | }, | ||
49 | { | ||
50 | "name": "course", | ||
51 | "tvlink": '{"click": [{"action": "changeLayout","parameters": {"layoutPath": "layout/waterfall_course.json"}}]}', | ||
52 | "type": "promotion_item", | ||
53 | "imageURL": "image/navigator/course.png", | ||
54 | "top": 480, | ||
55 | "left": 100, | ||
56 | }, | ||
57 | { | ||
58 | "name": "parent", | ||
59 | "tvlink": '{"click": [{"action": "changeLayout","parameters": {"layoutPath": "layout/waterfall_parent.json"}}]}', | ||
60 | "type": "promotion_item", | ||
61 | "imageURL": "image/navigator/parent.png", | ||
62 | "top": 600, | ||
63 | "left": 100, | ||
64 | } | ||
65 | ] | ||
66 | }, | ||
67 | // "dataSrc" : "layout/navigator.json", | ||
68 | "dataTmpl": "tmplNavigator",//数据渲染jsrender模板 | ||
69 | "cellName": "navigator_list_cell"//渲染元素class和id前缀 | ||
70 | }, | ||
71 | { | ||
72 | "name": "Additional",/* 我的、搜索、历史 - 在右上角 */ | ||
73 | "layout": "absolute",//绝对布局 | ||
74 | "position": [0, 0],//框架的起点坐标 | ||
75 | "focusstatus": 2,//列表元素焦点状态位,默认是0 | ||
76 | "dataContainer": "addition_list",//列表容器id | ||
77 | "data": {//数据列表 | ||
78 | "name": "Addition",//模块名称 | ||
79 | "resultSet": [ | ||
80 | { | ||
81 | "name": "收藏", | ||
82 | "left": 1104, | ||
83 | "top": 35, | ||
84 | "width": 38, | ||
85 | "height": 38, | ||
86 | "tvlink": '{"click":[{"action":"ChangeScene","parameters":{"sceneName":"sceneDiary"}}]}', | ||
87 | "type" : "promotion_item", | ||
88 | "imageURL": "image/addition/my.png" | ||
89 | }, | ||
90 | { | ||
91 | "name": "历史", | ||
92 | "left": 1158, | ||
93 | "top": 35, | ||
94 | "width": 38, | ||
95 | "height": 38, | ||
96 | "tvlink": '{"click":[{"action":"ChangeScene","parameters":{"sceneName":"sceneHistory"}}]}', | ||
97 | "type" : "promotion_item", | ||
98 | "imageURL": "image/addition/history.png" | ||
99 | }, | ||
100 | { | ||
101 | "name": "搜索", | ||
102 | "left": 1213, | ||
103 | "top": 35, | ||
104 | "width": 38, | ||
105 | "height": 38, | ||
106 | "tvlink": '{"click":[{"action":"ChangeScene","parameters":{"sceneName":"sceneSearch"}}]}', | ||
107 | "type" : "promotion_item", | ||
108 | "imageURL": "image/addition/search.png" | ||
109 | } | ||
110 | ] | ||
111 | }, | ||
112 | //"dataSrc" : "layout/addition.json", | ||
113 | "dataTmpl": "tmplAddition", | ||
114 | "cellName": "addition_list_cell" | ||
115 | }, | ||
116 | { | ||
117 | "name": "WaterFall",/* 右侧瀑布流 */ | ||
118 | "layout": "abosolute", | ||
119 | "position": [207, 78], | ||
120 | "width": 1100,//框架宽度 | ||
121 | "height": 642,//框架高度 | ||
122 | "extraClass": "move_transition", | ||
123 | "dataContainer": "waterfall_list_wrapper", | ||
124 | "data": { | ||
125 | "name": "WaterFallList", | ||
126 | "resultSet": [ | ||
127 | { | ||
128 | "name": "WaterFallList", | ||
129 | "layout": "absolute", | ||
130 | "position": [20, 20],//这里是根据上下文拿 | ||
131 | "disable": true,//是否是焦点控件 | ||
132 | "containerId": "waterfall_list",//个性化元素id | ||
133 | "dataContainer": "waterfall_list", | ||
134 | "hasChildFrame": true,//是否有子框架 | ||
135 | "frozen": true,//是否冻结获得的框架数据,在后续适当时机再解除冻结,继续渲染框架和数据 true 冻结 false 不冻结 | ||
136 | "data": [], | ||
137 | "dataSrc": "layout/waterfall_recommend.json",//在没有data的情况下,dataSrc生效,并且成为请求数据路径的参考,是否要在远程服务器地址,视页面情况而定 | ||
138 | "dataTmpl": "tmplPromotionGroup",//渲染jsrender模板 | ||
139 | "cellName": "group_list",//同上 | ||
140 | "childLayout": "absolute",//子元素布局,子元素框架可继承父元素框架 | ||
141 | "childDataTmpl": "tmplPromotionGroupCell",//子元素渲染的jsrender模板 | ||
142 | "childFramePath": "layout/recommend/"//子元素渲染框架路径 | ||
143 | } | ||
144 | ] | ||
145 | }, | ||
146 | "dataTmpl": "tmplPromotionGroupCell2",//jsrender渲染模板 | ||
147 | "cellName": "waterfall_list"//同上 | ||
148 | |||
149 | } | ||
150 | ] | ||
151 | }, | ||
152 | |||
153 | } | ||
154 | }); |
assets/Script/data/TestLayout.js.meta
0 → 100644
assets/Script/data/waterfall_course.js
0 → 100644
This diff is collapsed.
Click to expand it.
assets/Script/data/waterfall_course.js.meta
0 → 100644
assets/Script/data/waterfall_parent.js
0 → 100644
This diff is collapsed.
Click to expand it.
assets/Script/data/waterfall_parent.js.meta
0 → 100644
This diff is collapsed.
Click to expand it.
assets/Script/data/waterfall_recommend.js
0 → 100644
This diff is collapsed.
Click to expand it.
assets/Script/data/waterfall_three2six.js
0 → 100644
This diff is collapsed.
Click to expand it.
-
Please register or sign in to post a comment