Commit 1f689abd 1f689abd6eabcdeb57a7c68bdc784a4604f60a2c by 金学艇

恢复部分数据

1 parent e363b03b
{
"ver": "1.0.1",
"uuid": "4ca2da2d-f9f4-4ba7-82d0-f754665fe7d7",
"isSubpackage": false,
"subpackageName": "",
"subMetas": {}
}
\ No newline at end of file
cc.Class({
extends: cc.Component,
statics: {
gameCategory: {
"businessCode": "success",
"count": 10,
"currentTime": 1567477099396,
"description": "",
"resultSet": [
{
"id": 233,
"title": "火箭小黄人",
"packageName":"com.topdraw.xhx.bird",
"image": [
{
"bg": "game/bg_xyx_10",
"fileUrl": "game/xyx_10"
}
]
},
{
"id": 233,
"title": "接糖果",
"packageName":"com.topdraw.xhx.candy",
"image": [
{
"bg": "game/bg_xyx_5",
"fileUrl": "game/xyx_5"
}
]
},
{
"id": 233,
"title": "欢乐叠蛋糕",
"packageName":"com.topdraw.xhx.cake",
"image": [
{
"bg": "game/bg_xyx_1",
"fileUrl": "game/xyx_1"
}
]
},
{
"id": 233,
"title": "记忆翻牌",
"packageName":"com.topdraw.xhx.fanpai",
"image": [
{
"bg": "game/bg_xyx_2",
"fileUrl": "game/xyx_2"
}
]
},
{
"id": 233,
"title": "飞檐走壁",
"packageName":"com.topdraw.xhx.feiyanzoubi",
"image": [
{
"bg": "game/bg_xyx_9",
"fileUrl": "game/xyx_9"
}
]
},
{
"id": 233,
"title": "旋转海盗",
"packageName":"com.topdraw.xhx.haidao",
"image": [
{
"bg": "game/bg_xyx_8",
"fileUrl": "game/xyx_8"
}
]
},
{
"id": 233,
"title": "奔跑吧小马宝莉",
"packageName":"com.topdraw.xhx.run",
"image": [
{
"bg": "game/bg_xyx_7",
"fileUrl": "game/xyx_7"
}
]
},
{
"id": 233,
"title": "猜猜我是谁",
"packageName":"com.topdraw.xhx.guess",
"image": [
{
"bg": "game/bg_xyx_3",
"fileUrl": "game/xyx_3"
}
]
},
{
"id": 233,
"title": "它的颜色",
"packageName":"com.topdraw.xhx.guesscolor",
"image": [
{
"bg": "game/bg_xyx_4",
"fileUrl": "game/xyx_4"
}
]
},
{
"id": 233,
"title": "数一数",
"packageName":"com.topdraw.xhx.shuyishu",
"image": [
{
"bg": "game/bg_xyx_6",
"fileUrl": "game/xyx_6"
}
]
}
]
},
gameCategory2: {
"businessCode": "success",
"count": 10,
"currentTime": 1567477099396,
"description": "",
"resultSet": [
{
"id": 233,
"title": "火箭小黄人",
"packageName":"com.topdraw.xhx.bird",
"image": [
{
"bg": "game/bg_xyx_10",
"fileUrl": "game/xyx_10"
}
]
},
{
"id": 233,
"title": "接糖果",
"packageName":"com.topdraw.xhx.candy",
"image": [
{
"bg": "game/bg_xyx_5",
"fileUrl": "game/xyx_5"
}
]
},
{
"id": 233,
"title": "欢乐叠蛋糕",
"packageName":"com.topdraw.xhx.cake",
"image": [
{
"bg": "game/bg_xyx_1",
"fileUrl": "game/xyx_1"
}
]
},
{
"id": 233,
"title": "记忆翻牌",
"packageName":"com.topdraw.xhx.fanpai",
"image": [
{
"bg": "game/bg_xyx_2",
"fileUrl": "game/xyx_2"
}
]
},
{
"id": 233,
"title": "飞檐走壁",
"packageName":"com.topdraw.xhx.feiyanzoubi",
"image": [
{
"bg": "game/bg_xyx_9",
"fileUrl": "game/xyx_9"
}
]
},
{
"id": 233,
"title": "旋转海盗",
"packageName":"com.topdraw.xhx.haidao",
"image": [
{
"bg": "game/bg_xyx_8",
"fileUrl": "game/xyx_8"
}
]
},
]
},
gameCategory3: {
"businessCode": "success",
"count": 10,
"currentTime": 1567477099396,
"description": "",
"resultSet": [
{
"id": 233,
"title": "飞檐走壁",
"packageName":"com.topdraw.xhx.feiyanzoubi",
"image": [
{
"bg": "game/bg_xyx_9",
"fileUrl": "game/xyx_9"
}
]
},
{
"id": 233,
"title": "旋转海盗",
"packageName":"com.topdraw.xhx.haidao",
"image": [
{
"bg": "game/bg_xyx_8",
"fileUrl": "game/xyx_8"
}
]
},
{
"id": 233,
"title": "奔跑吧小马宝莉",
"packageName":"com.topdraw.xhx.run",
"image": [
{
"bg": "game/bg_xyx_7",
"fileUrl": "game/xyx_7"
}
]
},
{
"id": 233,
"title": "猜猜我是谁",
"packageName":"com.topdraw.xhx.guess",
"image": [
{
"bg": "game/bg_xyx_3",
"fileUrl": "game/xyx_3"
}
]
},
{
"id": 233,
"title": "它的颜色",
"packageName":"com.topdraw.xhx.guesscolor",
"image": [
{
"bg": "game/bg_xyx_4",
"fileUrl": "game/xyx_4"
}
]
},
{
"id": 233,
"title": "数一数",
"packageName":"com.topdraw.xhx.shuyishu",
"image": [
{
"bg": "game/bg_xyx_6",
"fileUrl": "game/xyx_6"
}
]
}
]
}
}
});
{
"ver": "1.0.5",
"uuid": "947bbf75-2ed3-4a65-bec1-5f050733126d",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
//模拟动态数据
cc.Class({
extends: cc.Component,
statics: {
layout4Page: {
id: 121,//每个页面对应一个pageId,后台创建下发生成
name: "首页",//page layout名称
code: "eb954b1e-712e-415c-ba27-ddcf60f64adf",//每个页面对应一个pageCode,后台创建生成
layout: "absolute",//页面整理布局,非必填字段
children: [
{
"name": "Navigator",/* 左侧导航 */
"layout": "vertical",//浮动式垂直布局
"position": [44, 98],//框架的起始坐标
"childrenSize": [159, 72],//子元素尺寸
"childrenMargin": [0, 0, 3, 0],//子元素边距
"dataContainer": "promotion_list",//列表名称
"data": {/* 对于数据比较少的采取这种方式或者本地数据 */
"name": "Navigator",
"resultSet": [
{
"name": "recommend",//项名称 填写比较规范
"tvlink": '{"click": [{"action": "changeLayout","parameters": {"layoutPath": "layout/waterfall_recommend.json"}}]}',//项动作
"type": "promotion_item",//项类型 非必填
"imageURL": "image/navigator/recommend.png",//项图片路径
"top": 120,
"left": 100,
},
{
"name": "three2six",
//"tvlink": '{"click": [{"action": "changeLayout","parameters": {"layoutPath": "layout/waterfall_three2six.json"}}]}',
"tvlink": '{"click": [{"action": "ChangeScene","parameters": {"sceneName":"sceneGameLobby"}}]}',
"type": "promotion_item",
"imageURL": "image/navigator/three2six.png",
"top": 240,
"left": 100,
},
{
"name": "primarySchool",
// "tvlink": '{"click": [{"action": "changeLayout","parameters": {"layoutPath": "layout/waterfall_primarySchool.json"}}]}',
"tvlink": '{"click": [{"action": "ChangeScene","parameters": {"sceneName":"sceneGame"}}]}',
"type": "promotion_item",
"imageURL": "image/navigator/primary.png",
"top": 360,
"left": 100,
},
{
"name": "course",
"tvlink": '{"click": [{"action": "changeLayout","parameters": {"layoutPath": "layout/waterfall_course.json"}}]}',
"type": "promotion_item",
"imageURL": "image/navigator/course.png",
"top": 480,
"left": 100,
},
{
"name": "parent",
"tvlink": '{"click": [{"action": "changeLayout","parameters": {"layoutPath": "layout/waterfall_parent.json"}}]}',
"type": "promotion_item",
"imageURL": "image/navigator/parent.png",
"top": 600,
"left": 100,
}
]
},
// "dataSrc" : "layout/navigator.json",
"dataTmpl": "tmplNavigator",//数据渲染jsrender模板
"cellName": "navigator_list_cell"//渲染元素class和id前缀
},
{
"name": "Additional",/* 我的、搜索、历史 - 在右上角 */
"layout": "absolute",//绝对布局
"position": [0, 0],//框架的起点坐标
"focusstatus": 2,//列表元素焦点状态位,默认是0
"dataContainer": "addition_list",//列表容器id
"data": {//数据列表
"name": "Addition",//模块名称
"resultSet": [
{
"name": "收藏",
"left": 1104,
"top": 35,
"width": 38,
"height": 38,
"tvlink": '{"click":[{"action":"ChangeScene","parameters":{"sceneName":"sceneDiary"}}]}',
"type" : "promotion_item",
"imageURL": "image/addition/my.png"
},
{
"name": "历史",
"left": 1158,
"top": 35,
"width": 38,
"height": 38,
"tvlink": '{"click":[{"action":"ChangeScene","parameters":{"sceneName":"sceneHistory"}}]}',
"type" : "promotion_item",
"imageURL": "image/addition/history.png"
},
{
"name": "搜索",
"left": 1213,
"top": 35,
"width": 38,
"height": 38,
"tvlink": '{"click":[{"action":"ChangeScene","parameters":{"sceneName":"sceneSearch"}}]}',
"type" : "promotion_item",
"imageURL": "image/addition/search.png"
}
]
},
//"dataSrc" : "layout/addition.json",
"dataTmpl": "tmplAddition",
"cellName": "addition_list_cell"
},
{
"name": "WaterFall",/* 右侧瀑布流 */
"layout": "abosolute",
"position": [207, 78],
"width": 1100,//框架宽度
"height": 642,//框架高度
"extraClass": "move_transition",
"dataContainer": "waterfall_list_wrapper",
"data": {
"name": "WaterFallList",
"resultSet": [
{
"name": "WaterFallList",
"layout": "absolute",
"position": [20, 20],//这里是根据上下文拿
"disable": true,//是否是焦点控件
"containerId": "waterfall_list",//个性化元素id
"dataContainer": "waterfall_list",
"hasChildFrame": true,//是否有子框架
"frozen": true,//是否冻结获得的框架数据,在后续适当时机再解除冻结,继续渲染框架和数据 true 冻结 false 不冻结
"data": [],
"dataSrc": "layout/waterfall_recommend.json",//在没有data的情况下,dataSrc生效,并且成为请求数据路径的参考,是否要在远程服务器地址,视页面情况而定
"dataTmpl": "tmplPromotionGroup",//渲染jsrender模板
"cellName": "group_list",//同上
"childLayout": "absolute",//子元素布局,子元素框架可继承父元素框架
"childDataTmpl": "tmplPromotionGroupCell",//子元素渲染的jsrender模板
"childFramePath": "layout/recommend/"//子元素渲染框架路径
}
]
},
"dataTmpl": "tmplPromotionGroupCell2",//jsrender渲染模板
"cellName": "waterfall_list"//同上
}
]
},
}
});
{
"ver": "1.0.5",
"uuid": "ad5a92b2-a39c-4f97-bc28-be933f018df5",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.0.5",
"uuid": "aa753a4e-3b13-4828-ad1b-a7d1af1e6272",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.0.5",
"uuid": "97fdacf1-0a54-46e5-960d-8017fba2261f",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.0.5",
"uuid": "499fb139-3263-492e-94a2-495a8db820e9",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.0.5",
"uuid": "8d5835ea-26bc-4227-abd5-be997edcff8d",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.0.5",
"uuid": "bb5c5a5e-89a9-4ed1-8918-b65df56166ad",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file