Commit 6dae2e0f 6dae2e0f163187accda208ec3ce1a3618167eba0 by jinwawa

complete SceneRecommend

0 parents
Showing 112 changed files with 2888 additions and 0 deletions
1 #/////////////////////////////////////////////////////////////////////////////
2 # Fireball Projects
3 #/////////////////////////////////////////////////////////////////////////////
4
5 /library/
6 /temp/
7 /local/
8 /build/
9
10 #/////////////////////////////////////////////////////////////////////////////
11 # npm files
12 #/////////////////////////////////////////////////////////////////////////////
13
14 npm-debug.log
15 node_modules/
16
17 #/////////////////////////////////////////////////////////////////////////////
18 # Logs and databases
19 #/////////////////////////////////////////////////////////////////////////////
20
21 *.log
22 *.sql
23 *.sqlite
24
25 #/////////////////////////////////////////////////////////////////////////////
26 # files for debugger
27 #/////////////////////////////////////////////////////////////////////////////
28
29 *.sln
30 *.csproj
31 *.pidb
32 *.unityproj
33 *.suo
34
35 #/////////////////////////////////////////////////////////////////////////////
36 # OS generated files
37 #/////////////////////////////////////////////////////////////////////////////
38
39 .DS_Store
40 ehthumbs.db
41 Thumbs.db
42
43 #/////////////////////////////////////////////////////////////////////////////
44 # WebStorm files
45 #/////////////////////////////////////////////////////////////////////////////
46
47 .idea/
48
49 #//////////////////////////
50 # VS Code files
51 #//////////////////////////
52
53 .vscode/
1 # hello-world
2 Hello world new project template.
1 {
2 "ver": "1.0.1",
3 "uuid": "29f52784-2fca-467b-92e7-8fd9ef8c57b7",
4 "isGroup": false,
5 "subMetas": {}
6 }
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "ver": "1.2.0",
3 "uuid": "2d2f792f-a40c-49bb-a189-ed176a246e49",
4 "asyncLoadAssets": false,
5 "autoReleaseAssets": false,
6 "subMetas": {}
7 }
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "ver": "1.0.1",
3 "uuid": "4734c20c-0db8-4eb2-92ea-e692f4d70934",
4 "isGroup": false,
5 "subMetas": {}
6 }
...\ No newline at end of file ...\ No newline at end of file
1 cc.Class({
2 extends: cc.Layout,
3
4 properties: {
5
6 },
7
8 _doLayoutDirty: function () {
9 this._layoutDirty = true;
10 //-----------------------------------------------
11 var children = this.node.children;
12 for (var i = 0; i < children.length; ++i) {
13 var child = children[i];
14 child.zIndex=10;
15 }
16 //-----------------------------------------------
17 },
18
19 });
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "ver": "1.0.5",
3 "uuid": "e24450be-ee0f-4078-8526-2d1821a7bc96",
4 "isPlugin": false,
5 "loadPluginInWeb": true,
6 "loadPluginInNative": true,
7 "loadPluginInEditor": false,
8 "subMetas": {}
9 }
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "ver": "1.0.5",
3 "uuid": "bb57216f-4ed7-4f39-ac79-58d24574a43b",
4 "isPlugin": false,
5 "loadPluginInWeb": true,
6 "loadPluginInNative": true,
7 "loadPluginInEditor": false,
8 "subMetas": {}
9 }
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "ver": "1.0.5",
3 "uuid": "280c3aec-6492-4a9d-9f51-a9b00b570b4a",
4 "isPlugin": false,
5 "loadPluginInWeb": true,
6 "loadPluginInNative": true,
7 "loadPluginInEditor": false,
8 "subMetas": {}
9 }
...\ No newline at end of file ...\ No newline at end of file
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": [166, 94],//子元素尺寸
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 "type": "promotion_item",
35 "imageURL": "image/navigator/three2six.png",
36 "top": 240,
37 "left": 100,
38 },
39 {
40 "name": "primarySchool",
41 "tvlink": '{"click": [{"action": "changeLayout","parameters": {"layoutPath": "layout/waterfall_primarySchool.json"}}]}',
42 "type": "promotion_item",
43 "imageURL": "image/navigator/primary.png",
44 "top": 360,
45 "left": 100,
46 },
47 {
48 "name": "course",
49 "tvlink": '{"click": [{"action": "changeLayout","parameters": {"layoutPath": "layout/waterfall_course.json"}}]}',
50 "type": "promotion_item",
51 "imageURL": "image/navigator/course.png",
52 "top": 480,
53 "left": 100,
54 },
55 {
56 "name": "parent",
57 "tvlink": '{"click": [{"action": "changeLayout","parameters": {"layoutPath": "layout/waterfall_parent.json"}}]}',
58 "type": "promotion_item",
59 "imageURL": "image/navigator/parent.png",
60 "top": 600,
61 "left": 100,
62 }
63 ]
64 },
65 // "dataSrc" : "layout/navigator.json",
66 "dataTmpl": "tmplNavigator",//数据渲染jsrender模板
67 "cellName": "navigator_list_cell"//渲染元素class和id前缀
68 },
69 {
70 "name": "Additional",/* 我的、搜索、历史 - 在右上角 */
71 "layout": "absolute",//绝对布局
72 "position": [0, 0],//框架的起点坐标
73 "focusstatus": 2,//列表元素焦点状态位,默认是0
74 "dataContainer": "addition_list",//列表容器id
75 "data": {//数据列表
76 "name": "Addition",//模块名称
77 "resultSet": [
78 {
79 "name": "我的",
80 "left": 822,
81 "top": 19,
82 "width": 137,
83 "height": 65,
84 "tvlink": "{click: [{action: 'changeUI',parameters: {uiName: 'collection'}}]}",
85 "type" : "promotion_item",
86 "imageURL": "image/addition/my.png"
87 },
88 {
89 "name": "历史",
90 "left": 965,
91 "top": 19,
92 "width": 137,
93 "height": 65,
94 "tvlink": "{click: [{action: 'changeUI',parameters: {uiName: 'history'}}]}",
95 "type" : "promotion_item",
96 "imageURL": "image/addition/history.png"
97 },
98 {
99 "name": "搜索",
100 "left": 1108,
101 "top": 19,
102 "width": 137,
103 "height": 65,
104 "tvlink": "{click: [{action: 'changeUI',parameters: {uiName: 'search'}}]}",
105 "type" : "promotion_item",
106 "imageURL": "image/addition/search.png"
107 }
108 ]
109 },
110 //"dataSrc" : "layout/addition.json",
111 "dataTmpl": "tmplAddition",
112 "cellName": "addition_list_cell"
113 },
114 {
115 "name": "WaterFall",/* 右侧瀑布流 */
116 "layout": "abosolute",
117 "position": [207, 78],
118 "width": 1100,//框架宽度
119 "height": 642,//框架高度
120 "extraClass": "move_transition",
121 "dataContainer": "waterfall_list_wrapper",
122 "data": {
123 "name": "WaterFallList",
124 "resultSet": [
125 {
126 "name": "WaterFallList",
127 "layout": "absolute",
128 "position": [20, 20],//这里是根据上下文拿
129 "disable": true,//是否是焦点控件
130 "containerId": "waterfall_list",//个性化元素id
131 "dataContainer": "waterfall_list",
132 "hasChildFrame": true,//是否有子框架
133 "frozen": true,//是否冻结获得的框架数据,在后续适当时机再解除冻结,继续渲染框架和数据 true 冻结 false 不冻结
134 "data": [],
135 "dataSrc": "layout/waterfall_recommend.json",//在没有data的情况下,dataSrc生效,并且成为请求数据路径的参考,是否要在远程服务器地址,视页面情况而定
136 "dataTmpl": "tmplPromotionGroup",//渲染jsrender模板
137 "cellName": "group_list",//同上
138 "childLayout": "absolute",//子元素布局,子元素框架可继承父元素框架
139 "childDataTmpl": "tmplPromotionGroupCell",//子元素渲染的jsrender模板
140 "childFramePath": "layout/recommend/"//子元素渲染框架路径
141 }
142 ]
143 },
144 "dataTmpl": "tmplPromotionGroupCell2",//jsrender渲染模板
145 "cellName": "waterfall_list"//同上
146
147 }
148 ]
149 },
150
151 }
152 });
1 {
2 "ver": "1.0.5",
3 "uuid": "ad5a92b2-a39c-4f97-bc28-be933f018df5",
4 "isPlugin": false,
5 "loadPluginInWeb": true,
6 "loadPluginInNative": true,
7 "loadPluginInEditor": false,
8 "subMetas": {}
9 }
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "ver": "1.0.1",
3 "uuid": "61ec49b6-05b5-4ed9-a3d4-e5a49ec26335",
4 "isSubpackage": false,
5 "subpackageName": "",
6 "subMetas": {}
7 }
...\ No newline at end of file ...\ No newline at end of file
1 cc.Class({
2 extends: cc.Component,
3
4 properties: {
5
6 //键值由具体场景决定
7 _aSceneContext:{default:[]},
8
9 /*
10 {
11 categoryId:123,
12 history:[]
13 }
14 /*/
15 _aSceneParameter:{default:[]},
16 _bBackStatus:false,
17 _iDefaultCollectionId:-1,
18
19 _iTotalFrames:0,
20 },
21
22 // use this for initialization
23 onLoad: function () {
24 this._aSceneContext=[];
25 this._aSceneParameter=[];
26 },
27
28 getSceneContext:function(){
29 return this._aSceneContext;
30 },
31 popSceneContext:function(){
32 return this._aSceneContext.pop();
33 },
34 getTopSceneContext:function(){
35 return this._aSceneContext[this._aSceneContext.length-1];
36 },
37 setSceneContext:function(aSceneContext){
38 this._aSceneContext=aSceneContext;
39 },
40 getSceneParameter:function(){
41 return this._aSceneParameter;
42 },
43 popSceneParameter:function(){
44 return this._aSceneParameter.pop();
45 },
46 getTopSceneParameter:function(){
47 return this._aSceneParameter[this._aSceneParameter.length-1];
48 },
49 setSceneParameter:function(aSceneParameter){
50 this._aSceneParameter=aSceneParameter;
51 },
52 getBackStatus:function(){
53 return this._bBackStatus;
54 },
55
56 setBackStatus:function(bBackStatus){
57 this._bBackStatus=bBackStatus;
58 },
59
60 getDefaultCollectionId:function(){
61 return this._iDefaultCollectionId;
62 },
63
64 setDefaultCollectionId:function(iCollectionId){
65 this._iDefaultCollectionId=iCollectionId;
66 },
67
68 setTotalFrames:function(iFrames){
69 this._iTotalFrames=iFrames;
70 },
71
72 getTotalFrames:function(){
73 return this._iTotalFrames;
74 }
75
76 // called every frame, uncomment this function to activate update callback
77 // update: function (dt) {
78
79 // },
80 });
1 {
2 "ver": "1.0.5",
3 "uuid": "9e3446c8-49f7-4eeb-8b1d-eb7f6c0e2fd8",
4 "isPlugin": false,
5 "loadPluginInWeb": true,
6 "loadPluginInNative": true,
7 "loadPluginInEditor": false,
8 "subMetas": {}
9 }
...\ No newline at end of file ...\ No newline at end of file
1 //公用参数
2
3 cc.Class({
4 extends: cc.Component,
5 statics: {
6 CARTOON_SPECIAL: '0',
7
8 //各应用基础分类
9 SONG_CATEGORY:"20",
10 ENHLISH_CATEGORY:"34",
11 STORY_CATEGORY:"43",
12 SCIENCE_CATEGORY:"46",
13 EDUCATION_CATEGORY:"35",
14 CLASSICAL_CATEGORY:"32",
15 ART_CATEGORY:"65",
16 //各应用appId
17 SONG_APPID:"td9c60ab5ba1f3c44c",
18 ENHLISH_APPID:"tdde7add064d218a84",
19 STORY_APPID:"td16283e54e262f207",
20 SCIENCE_APPID:"td9eeab808e4d1a4b7",
21 EDUCATION_APPID:"td8765403b3f38d1a8",
22 CLASSICAL_APPID:"td7a74235419ac55ee",
23 ART_APPID:"tdd72ee5abf9a38754",
24 CARTOON_APPID:"tda7e47f868313d9f5",
25 //各应用免费分类id
26 SONG_FREE_CID:"143",
27 ENGLISH_FREE_CID:"149",
28 STORY_FREE_CID:"152",
29 SCIENCE_FREE_CID:"158",
30 EDUCATION_FREE_CID:"155",
31 CLASSICAL_FREE_CID:"146",
32 ART_FREE_CID:"161",
33
34 },
35 });
1 {
2 "ver": "1.0.5",
3 "uuid": "764bc77a-675b-4ee3-8a09-865c957071d7",
4 "isPlugin": false,
5 "loadPluginInWeb": true,
6 "loadPluginInNative": true,
7 "loadPluginInEditor": false,
8 "subMetas": {}
9 }
...\ No newline at end of file ...\ No newline at end of file
1 //修改Network,解决闪屏问题
2 var Network = require('Network');
3 cc.Class({
4 extends: Network,
5
6 properties: {
7
8 },
9
10 // use this for initialization
11 onLoad: function () {
12
13 },
14
15
16 statics: {
17 //_count: 0,
18
19 /*
20 var txt = document.getElementById('txt');
21 //1.创建XMLHttpRequest对象
22 var xhr = null;
23 if(window.XMLHttpRequest) {
24 xhr = new XMLHttpRequest();
25 }else {
26 xhr = new ActiveXObject('Microsoft.XMLHTTP');
27 }
28 //2.打开与服务器的链接
29 xhr.open('get',url,false);
30 //3.发送给服务器
31 xhr.send(null);
32 //4.响应就绪(同步请求)
33 var json = JSON.parse(xhr.responseText);
34 txt.innerHTML = json;
35 cc.log('其他程序');
36 */
37
38
39
40 //ajax请求函数
41 ajax: function (strMethod, strURL, astrContentType, oDataOrPostBody, onSuccess, onError, oScope, oAdditionalData) {
42 var xlr = null;
43 var oResult = {};
44
45
46
47 if (window.XMLHttpRequest) {// code for IE7, Firefox, Opera, etc.
48 xlr = new XMLHttpRequest(); //Log.info('XMLHttpRequest');
49 } else if (window.ActiveXObject) {// code for IE6, IE5
50 xlr = new ActiveXObject("Microsoft.XMLHTTP"); //Log.info('ActiveXObject');
51 }
52
53 if (!xlr) {
54 cc.log("Your browser does not support XMLHTTP, using iframe instead..");
55 //退化到使用iframe 在cocos中无用 //这里两个函数名需要字符串输入
56 //iframeRequest(strMethod, strURL, astrContentType, oDataOrPostBody, onSuccess, onError, oAdditionalData)
57 return;
58 }
59
60 function onStateChange() {
61 if (xlr.readyState == 4) {// 4 = "loaded"
62 if (xlr.status == 200) {// 200 = OK
63 if (null != oScope) {
64 onSuccess.call(oScope, xlr.responseText, oAdditionalData);
65 } else {
66 onSuccess(xlr.responseText, oAdditionalData);
67 }
68 } else {
69 if (null != oScope) {
70 onError.call(oScope, xlr.responseText, oAdditionalData);
71 } else {
72 onError(xlr.responseText, oAdditionalData);
73 }
74 }
75 xlr = null;
76 }
77 }
78
79
80
81 strMethod = strMethod.toUpperCase();
82 var strDataOrPostBody = '';
83 if (strMethod == "GET") {
84
85 //以下这段可使用正则表达式改造
86 if (oDataOrPostBody) {
87 if (strURL.indexOf('?') > 0) { //有问号
88 if (strURL.indexOf('=') > strURL.indexOf('?') //并且有等号在问号右边
89 && strURL.lastIndexOf('&') != strURL.length - 1) //最后一个不是&
90 {
91 strURL = strURL.concat('&');
92 } else { //光有问号没等号
93 cc.log('Unavailable Request URL!');
94 return;
95 }
96 } else {//没问号
97 strURL = strURL.concat('?');
98 }
99
100 if (typeof oDataOrPostBody == "string") {
101 strDataOrPostBody = oDataOrPostBody;
102 } else if (oDataOrPostBody instanceof Object) {
103 for (var key in oDataOrPostBody) {
104 strDataOrPostBody = strDataOrPostBody.concat(key).concat('=').concat(oDataOrPostBody[key]).concat('&');
105 }
106 strDataOrPostBody = strDataOrPostBody.substring(0, strDataOrPostBody.length - 1);
107 //strDataOrPostBody.TrimEnd('&');
108 } else {
109 cc.log('Unavailable Parameters!');
110 return;
111 }
112 }
113
114 strURL = strURL.concat(strDataOrPostBody);
115 }
116
117 xlr.onreadystatechange = onStateChange;
118
119 xlr.open(strMethod, strURL, true);
120
121 var isWWWFormURLEncoded = false;
122 if (astrContentType) {
123 for (var i = 0; i < astrContentType.length; i++) {
124 xlr.setRequestHeader('Content-type', astrContentType[i]);
125 if (astrContentType[i] == 'application/x-www-form-urlencoded') {
126 isWWWFormURLEncoded = true;
127 break;
128 }
129 }
130 }
131 //xlr.setRequestHeader('Connection', 'close');
132
133 switch (strMethod) {
134 case 'GET':
135 xlr.send(null);
136 break;
137 case 'POST':
138 if (isWWWFormURLEncoded) {
139
140 }
141 if (oDataOrPostBody) {
142 /*
143 if (isWWWFormURLEncoded) {
144 var fd=new FormData();
145 if (typeof oDataOrPostBody == "string") {
146 strDataOrPostBody = oDataOrPostBody;
147
148 var aParameters1=oDataOrPostBody.split('&');
149 for (var i=0;i<aParameters1.length;i++){
150 var aPairs1=aParameters1.split('=');
151 if (aPairs1[0] && aPairs1[1]){
152 fd.append(aPairs1[0],aPairs1[1]);
153 }
154 }
155
156 } else if (oDataOrPostBody instanceof Object) {
157 for (var key in oDataOrPostBody) {
158 fd.append(key,oDataOrPostBody[key]);
159 }
160 //strDataOrPostBody.TrimEnd('&');
161 //strDataOrPostBody = strDataOrPostBody.substring(0, strDataOrPostBody.length - 1);
162 } else {
163 console.log("Unavailable Parameters!");
164 return
165 }
166 xlr.send(fd);
167 }else{*/
168 if (typeof oDataOrPostBody == "string") {
169 strDataOrPostBody = oDataOrPostBody;
170
171 } else if (oDataOrPostBody instanceof Object) {
172 for (var key in oDataOrPostBody) {
173 strDataOrPostBody = strDataOrPostBody.concat(key).concat('=').concat(oDataOrPostBody[key]).concat('&');
174 }
175 //strDataOrPostBody.TrimEnd('&');
176 strDataOrPostBody = strDataOrPostBody.substring(0, strDataOrPostBody.length - 1);
177 } else {
178 oResult.businessCode = 'success';
179 oResult.description = 'Unavailable Parameters!';
180 return oResult;
181 }
182 xlr.send(strDataOrPostBody);
183 //}
184 } else {
185 xlr.send(null);
186 }
187
188 break;
189 }
190
191
192 // cc.director.on(cc.Director.EVENT_BEFORE_SCENE_LOADING, function () {
193 // // cc.log("运行新场景之前所触发的事件------------->");
194 // xlr.abort();
195 // });
196
197 },
198 loadImageInJSRuntime: function (strURL, iRequestId, onSuccess, onError, oScope) {
199 cc.loader.load(
200 {
201 url: strURL,
202 isCrossOrigin: false,
203 type: 'jpg' //防止跨域问题
204 },
205 function (err, texture) {
206 if (!err) {
207 if (null != oScope) {
208 onSuccess.call(oScope, texture, iRequestId);
209 } else {
210 onSuccess(texture);
211 }
212 } else {
213 if (null != oScope) {
214 onError.call(oScope, err, iRequestId);
215 } else {
216 onError(err);
217 }
218 }
219 }
220 );
221
222 },
223
224 loadImageInNativeRuntime: function (strURL, iRequestId, onSuccess, onError, oScope) {
225 cc.loader.load(strURL, function (err, texture) {
226 if (null != oScope) {
227 onSuccess.call(oScope, texture, iRequestId);
228 } else {
229 onSuccess(texture);
230 }
231 cc.log('Should load a texture from external url: ' + (texture instanceof cc.Texture2D));
232 });
233 },
234
235 },
236
237
238 // called every frame, uncomment this function to activate update callback
239 // update: function (dt) {
240
241 // },
242 });
1 {
2 "ver": "1.0.5",
3 "uuid": "77b9f0db-8832-41b4-b51f-ca5fd671b093",
4 "isPlugin": false,
5 "loadPluginInWeb": true,
6 "loadPluginInNative": true,
7 "loadPluginInEditor": false,
8 "subMetas": {}
9 }
...\ No newline at end of file ...\ No newline at end of file
1 cc.Class({
2 extends: cc.Component,
3
4 properties: {
5
6 },
7
8 // use this for initialization
9 onLoad: function () {
10
11 },
12
13 statics: {
14
15 SCREEN_WIDTH: 1280.0,
16 SCREEN_HEIGHT: 720.0,
17
18 MOVE_DIRECTION_UP: 0,
19 MOVE_DIRECTION_RIGHT: 1,
20 MOVE_DIRECTION_DOWN: 2,
21 MOVE_DIRECTION_LEFT: 3,
22
23 FOCUS_FLY_DURATION: 0.3,
24 FOCUS_BREATH_DURATION: 0.8,
25
26 //Action Tag
27 FEATURE_NODE_TRANSFER: 1,
28 FOCUS_CELL_TRANSFER: 1,
29 FOCUS_CONTAINER_TRANSFER: 1,
30 FOCUS_CONTAINER_BREATH: 2,
31 FOCUS_CONTAINER_JOGGLE: 3,
32
33 OVERLENGTH_MOVING: 4,
34
35 SCROLL_BY_FOCUS_CHANGE: 5,
36
37 API_SORT_ASC: 'asc',
38 API_SORT_DESC: 'desc',
39
40 FEMALE: 0,
41 MALE: 1,
42 BAND: 2,
43
44 ANDROID_KEY: {
45 back: 6,
46 up: 1003,
47 right: 1001,
48 down: 1004,
49 left: 1000,
50 enter: 1005
51 },
52
53 BUSINESS_PARAMETER: {
54 // {:,
55
56 },
57
58 //天津少儿2.0测试接口
59 // TOPDRAW_API_SERVER:'http://202.99.114.74:52118/hyperion.chimera/',
60 // TOPDRAW_API_SERVER2:'http://202.99.114.74:52118/hyperion.archer/',
61 // TOPDRAW_IMAGE_SERVER:'http://202.99.114.74:52118/hyperion.resource/',
62
63 //新部署测试接口
64 TOPDRAW_API_SERVER: 'http://139.196.192.242:8080/hyperion.chimera/',
65 TOPDRAW_API_SERVER2: 'http://139.196.192.242:8080/hyperion.archer/',
66 TOPDRAW_IMAGE_SERVER: 'http://139.196.192.242:8080/hyperion.resource/',
67 // TOPDRAW_API_SERVER : "http://111.11.189.12:8080/hyperion.chimera/", //暂且取用EPG数据
68 // TOPDRAW_IMAGE_SERVER : "http://111.11.189.12:8080/hyperion.resource/",
69 // TOPDRAW_API_SERVER2:'http://111.11.189.12:8080/hyperion.archer/',
70 TEST_API_TOKEN: 'dd4b1968eb5b417e834c2687e23d2471',
71
72 //教育
73 TOPDRAW_API_SERVER_EDU: 'http://139.196.4.234:38080/hyperion.chimera/',
74 TOPDRAW_IMAGE_SERVER_EDU: 'http://139.196.4.234:38080/eduHall/pages/index/',
75 TOPDRAW_IMAGE_SERVER_EDU_RIGHT: 'http://139.196.4.234:38080/hyperion.resource/',
76 TEST_API_TOKEN_EDU: 'b4863228c5ef4593991ad4cc83f0cabf',
77
78 BI_BASE_PATH: 'http://139.196.192.242:82/1.gif',
79
80 TV_LINK_ACTION_CLICK: 100,
81 TV_LINK_ACTION_HOVER: 101,
82
83 // TEST_API_TOKEN:'8a56a215e7be4cf6910990d4d7c95e2c',
84 USER_ID: '1',
85 AUTH_STATUS: 0,
86 DEBUG_MODE: 0,//0非调试模式,1调试模式
87 APP_VERSION_NAME: '1.0.0',
88
89 g_strCurrentSceneName: "",
90
91 loadRes: function (strResourceURL,/*iResourceIndex,*/onSuccess, onError, oScope) {
92 cc.loader.loadRes(strResourceURL,
93 function (error, loadedResource) {
94 if (error) {
95 if (null != oScope) {
96 onError.call(oScope, error);
97 } else {
98 onError(error);
99 }
100 } else {
101 if (null != oScope) {
102 onSuccess.call(oScope, loadedResource/*,iResourceIndex*/);
103 } else {
104 onSuccess(loadedResource/*,iResourceIndex*/);
105 }
106 }
107 }
108 );
109
110 },
111
112 setTimeout: function (onTimeComplete, iDuration, oScope, argements) {
113
114 /*
115 window.setTimeout(onTimeComplete,iDuration,);
116
117
118 cc.loader.loadRes(strResourceURL,
119 function(error,loadedResource){
120 if (error){
121 if(null!=oScope){
122 onError.call(oScope,error);
123 }else{
124 onError(error);
125 }
126 }else{
127 if(null!=oScope){
128 onSuccess.call(oScope,loadedResource);
129 }else{
130 onSuccess(loadedResource);
131 }
132 }
133 }
134 );
135 */
136 },
137 getAbsolutePositionX: function (node) {
138
139 },
140 getAbsolutePositionY: function (node) {
141
142 },
143 promiseAjax: function () {
144
145 },
146
147 getNodePath: function (node) {
148 let strPath = "";
149 while (node.parent && node.parent.parent) {//不算TopCanvas
150 strPath = "/" + node.name + strPath;
151 node = node.parent;
152 }
153 return strPath.substring(1);
154 },
155 getX: function (tempNode) {
156 let fCenterX = 0;
157 while (tempNode.parent.parent) {//不算TopCanvas
158 //cc.log(tempNode.name+" X: "+tempNode.x)
159 fCenterX += tempNode.x;
160 tempNode = tempNode.parent;
161 }
162 return fCenterX;
163 },
164 getY: function (tempNode) {
165 let fCenterY = 0;
166 while (tempNode.parent.parent) {//不算TopCanvas
167 //cc.log(tempNode.name+" Y: "+tempNode.y)
168 fCenterY += tempNode.y;
169 tempNode = tempNode.parent;
170 }
171 return fCenterY;
172 },
173
174
175 /**
176 * 用于合并对象 By Eva
177 * @param target
178 * @param firstSource
179 * @returns {any}
180 */
181 assign: function (target, firstSource) {
182 if (target === undefined || target === null)
183 throw new TypeError("Cannot convert first argument to object");
184 var to = Object(target);
185 for (var i = 1; i < arguments.length; i++) {
186 var nextSource = arguments[i];
187 if (nextSource === undefined || nextSource === null) continue;
188 var keysArray = Object.keys(Object(nextSource));
189 for (var nextIndex = 0, len = keysArray.length; nextIndex < len; nextIndex++) {
190 var nextKey = keysArray[nextIndex];
191 var desc = Object.getOwnPropertyDescriptor(nextSource, nextKey);
192 if (desc !== undefined && desc.enumerable) to[nextKey] = nextSource[nextKey];
193 }
194 }
195 return to;
196 },
197
198
199 }
200 // called every frame, uncomment this function to activate update callback
201 // update: function (dt) {
202
203 // },
204 });
1 {
2 "ver": "1.0.5",
3 "uuid": "23d179fb-41db-4a22-9803-860d7e587a34",
4 "isPlugin": false,
5 "loadPluginInWeb": true,
6 "loadPluginInNative": true,
7 "loadPluginInEditor": false,
8 "subMetas": {}
9 }
...\ No newline at end of file ...\ No newline at end of file
1 var Common = require('Common');
2 var FocusInfo = require('FocusInfo');
3
4 cc.Class({
5 extends: cc.Component,
6 properties: {
7 // TODO: to be a real Component?
8 //_fLeft:0,
9 //_fTop:0,
10 //_fWidth:0,
11 //_fHeight:0,
12 //_oFocusNode:null,//deprecated
13 _strTVLink: '',
14 _bEnable: false,
15 _fScaleFactor: 1.06,
16 },
17
18 //ctor: function (fLeft,fTop,fWidth,fHeight,oFocusNode,strTVLink,bEnable,fnOnFocus,fnOnBlur) {
19 ctor: function () {
20 //this._fLeft=arguments[0];
21 //this._fTop=arguments[1];
22 //this._fWidth=arguments[2];
23 //this._fHeight=arguments[3];
24 //this._oFocusNode=arguments[4];
25 this._strTVLink = arguments[0];
26 this._bEnable = arguments[1];
27 this._fnOnFocus = arguments[2];
28 this._fnOnBlur = arguments[3];
29 //this._fLeft=fLeft;
30 //this._fTop=fTop;
31 //this._fWidth=fWidth;
32 //this._fHeight=fHeight;
33 //this._oFocusNode=oFocusNode;
34 },
35
36 init: function (/*fLeft,fTop,fWidth,fHeight,oFocusNode,*/strTVLink, bEnable, fnOnFocus, fnOnBlur, fScaleFactor) {
37 //this._fLeft=arguments[0];
38 //this._fTop=arguments[1];
39 //this._fWidth=arguments[2];
40 //this._fHeight=arguments[3];
41 //this._oFocusNode=arguments[4];
42 this._strTVLink = strTVLink;
43 this._bEnable = bEnable;
44 this._fnOnFocus = fnOnFocus;
45 this._fnOnBlur = fnOnBlur;
46 this._fScaleFactor = fScaleFactor;
47 //this._fLeft=fLeft;
48 //this._fTop=fTop;
49 //this._fWidth=fWidth;
50 //this._fHeight=fHeight;
51 //this._oFocusNode=oFocusNode;
52 },
53
54 // use this for initialization
55 onLoad: function () {
56 //气泡式向上传递 通常收不到
57 //this.node.on('foucs', this._fnOnFocus || function(){},this);
58 //this.node.on('blur', this._fnOnBlur || function(){},this);
59 },
60
61 getLeft: function () {
62 //return this._fLeft;
63 return Common.SCREEN_WIDTH / 2 + (this.getX() - this.node.width / 2);
64 },
65
66 //setLeft:function(fLeft){
67 // this._fLeft=fLeft;
68 //},
69
70 getTop: function () {
71 //return this._fTop;
72 return Common.SCREEN_HEIGHT / 2 - (this.getY() + this.node.height / 2);
73 },
74
75 getX: function () {
76 return Common.getX(this.node);
77 },
78 getY: function () {
79 return Common.getY(this.node);
80 },
81 //setTop:function(fTop){
82 // this._fTop=fTop;
83 //},
84 getWidth: function () {
85 //return this._fWidth;
86 return this.node.width;
87 },
88 setWidth: function (fWidth) {
89 // this._fWidth=fWidth;
90 this.node.width = fWidth;
91 },
92 getHeight: function () {
93 //return this._fHeight;
94 return this.node.height;
95 },
96 //setHeight:function(fHeight){
97 // this._fHeight=fHeight;
98 //},
99 //getFocusNode:function(){
100 // return this._oFocusNode;
101 //},
102 //setFocusNode:function(oFocusNode){
103 // this._oFocusNode=oFocusNode;
104 //},
105 getTVLink: function () {
106 return this._strTVLink;
107 },
108 setTVLink: function (strTVLink) {
109 this._strTVLink = strTVLink;
110 },
111 getEnable: function () {
112 return this._bEnable;
113 },
114 setEnable: function (bEnable) {
115 this._bEnable = bEnable;
116 },
117 onFocus: function (fiFrom) {
118 if (this._fnOnFocus) {
119 this._fnOnFocus(fiFrom);
120 }
121 },
122 onBlur: function (fiTo) {
123 if (this._fnOnBlur) {
124 this._fnOnBlur(fiTo);
125 }
126 },
127 getScaleFactor: function () {
128 return this._fScaleFactor;
129 },
130 setScaleFactor: function (fScaleFactor) {
131 this._fScaleFactor = fScaleFactor;
132 },
133
134 onEnable: function () { //修改节点的active属性为true时会执行挂载组件的onEnable方法
135 //注意:子节点有ListView要慎用!会使所有未初始化数据的子节点也改变焦点状态
136 // cc.log("执行FocusInfo中onEnable方法");
137 if (0 != this.node.name.indexOf('RoleInstallListCell') && 0 != this.node.name.indexOf('AchievementListCell')) {
138 this._bEnable = true;
139 }
140 },
141
142 onDisable: function () { //修改节点的active属性为false时会执行挂载组件的onDisable方法
143 // cc.log("执行FocusInfo中onDisable方法" + this.node.name);
144 this._bEnable = false;
145 },
146
147 onDestroy: function () {
148 // cc.log("节点销毁-------->" + this.node.name);
149 cc.director.emit('stop_render'); //分发事件
150
151 // this.node.removeComponent(FocusInfo);
152 },
153
154 });
1 {
2 "ver": "1.0.5",
3 "uuid": "af6c2393-5eef-4d0c-830e-ddcae637d713",
4 "isPlugin": false,
5 "loadPluginInWeb": true,
6 "loadPluginInNative": true,
7 "loadPluginInEditor": false,
8 "subMetas": {}
9 }
...\ No newline at end of file ...\ No newline at end of file
1 //全局类
2
3 window.APP_VERSION="";
4 window.FISRST_IN=true;
5
6 window.testJsLog=function(strDesc,isTrue){
7 cc.log(strDesc+"/////////////////////////Globals---->testJsLog"+isTrue);
8 }
1 {
2 "ver": "1.0.5",
3 "uuid": "fd60ed02-fd3e-4f8a-9168-fcbc22d30a65",
4 "isPlugin": false,
5 "loadPluginInWeb": true,
6 "loadPluginInNative": true,
7 "loadPluginInEditor": false,
8 "subMetas": {}
9 }
...\ No newline at end of file ...\ No newline at end of file
1 var Network = require('Network');
2 var Common = require('Common');
3 cc.Class({
4 extends: cc.Component,
5
6 properties: {
7 // foo: {
8 // default: null, // The default value will be used only when the component attaching
9 // to a node for the first time
10 // url: cc.Texture2D, // optional, default is typeof default
11 // serializable: true, // optional, default is true
12 // visible: true, // optional, default is true
13 // displayName: 'Foo', // optional
14 // readonly: false, // optional, default is false
15 // },
16 // ...
17 _iLogCount:0,
18 _oScene:null,
19
20 },
21
22 init: function (oScene) {
23 this._oScene=oScene;
24 },
25 // use this for initialization
26 onLoad: function () {
27 //设置本身节点的宽高透明
28 this.node.x=0;
29 this.node.y=0;
30 this.node.width=Common.SCREEN_WIDTH;
31 this.node.height=Common.SCREEN_HEIGHT;
32
33 let nodeLogMask=new cc.Node('LogMask');
34 nodeLogMask.x=0;
35 nodeLogMask.y=0;
36
37 this.node.addChild(nodeLogMask,10);
38
39 //设置为全屏遮罩
40 // let urlSplash = cc.url.raw('resources/Texture/splash_black.png');
41 // let textureFocus = cc.textureCache.addImage(urlSplash);
42
43 let spriteSplash=nodeLogMask.addComponent(cc.Sprite);
44 // spriteSplash.spriteFrame = new cc.SpriteFrame(textureFocus);
45 //TODO:2.0移除cc.textureCache
46 // cc.loader.loadRes("Texture/ui/splash_black",cc.SpriteFrame,function(error,spriteFrame){
47 // spriteSplash.spriteFrame=spriteFrame;
48 // });
49 //因为纹理2*2所以这里写死了
50 nodeLogMask.setScale(Common.SCREEN_WIDTH/2,Common.SCREEN_HEIGHT/2);
51 nodeLogMask.opacity=100;
52 // nodeLogMask.setLocalZOrder(400);//2.0中所有子节点都会在父节点之后渲染
53
54 let nodeLogList=new cc.Node('LogList');
55 nodeLogList.x = 20 - Common.SCREEN_WIDTH/2;
56 nodeLogList.y = Common.SCREEN_HEIGHT/2 - 20;
57 nodeLogList.setAnchorPoint(0,1);
58 this.node.addChild(nodeLogList,10);
59 // nodeLogList.setLocalZOrder(402);
60 this._nodeLogList = nodeLogList;
61
62 //this.node.color=new cc.Color(0, 0, 0); //黑色
63 //this.node.cascadeOpacity=false;
64
65 //this.node.parent=this._oScene.node;
66
67 //this.node.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(Texture2D.);
68
69 //parentNode.cascadeOpacity=false;
70 },
71
72 //statics: {
73
74
75 serverD:function(strInfo){
76
77 },
78 screenD:function(strInfo){
79 this.flushLogToScreen(strInfo,'Debug');
80 },
81 serverI:function(strInfo){
82
83 },
84 screenI:function(strInfo){
85
86 this.flushLogToScreen(strInfo,'Info');
87 },
88 serverW:function(strInfo){
89
90 },
91 screenW:function(strInfo){
92
93 this.flushLogToScreen(strInfo,'Warning');
94 },
95 serverE:function(strInfo){
96
97 },
98 screenE:function(strInfo){
99
100 this.flushLogToScreen(strInfo,'Error');
101 },
102
103 flushLogToScreen:function(strInfo, strLevel){
104 let nodeInfo=new cc.Node('log_info_'+this._iLogCount);
105 let lblInfo=nodeInfo.addComponent(cc.Label);
106 this._iLogCount++;
107 //if _iLogCount>20
108 lblInfo.string=strLevel+':'+strInfo;//+(nodeInfo.width/2-Common.SCREEN_WIDTH/2);
109 lblInfo.fontSize=18;
110 lblInfo.lineHeight=20;
111 //nodeInfo.parent=this.node;
112 nodeInfo.parent=this._nodeLogList;
113 switch(strLevel){
114 case 'Debug':
115 nodeInfo.color=new cc.color(51,255,255,255);
116 break;
117 case 'Info':
118 nodeInfo.color=new cc.color(51,255,51,255);
119 break;
120 case 'Warning':
121 nodeInfo.color=new cc.color(255,255,51,255);
122 break;
123 case 'Error':
124 nodeInfo.color=new cc.color(255,51,51,255);
125 break;
126 default:
127 nodeInfo.color=new cc.color(255,255,255,255);
128
129 }
130
131 //nodeInfo.color=new cc.color(255,255,255,255);
132 nodeInfo.height=20;
133 nodeInfo.setAnchorPoint(0,1);
134 nodeInfo.y = -(this._iLogCount-1)*20;
135 // nodeInfo.setLocalZOrder(401);
136 this._nodeLogList.y = this._nodeLogList.y + ((this._iLogCount - parseInt(Common.SCREEN_HEIGHT/20)+1)>0 ? 20 : 0);
137 },
138 clearLogOnScreen : function () {
139 this._nodeLogList.destroy();
140 this._iLogCount = 0;
141 let nodeLogList=new cc.Node('LogList');
142 nodeLogList.x = 20 - Common.SCREEN_WIDTH/2;
143 nodeLogList.y = Common.SCREEN_HEIGHT/2 - 20;
144 nodeLogList.setAnchorPoint(0,1);
145 this.node.addChild(nodeLogList,10);
146 // nodeLogList.setLocalZOrder(402);
147 this._nodeLogList = nodeLogList;
148 },
149 flushLogToServer:function(){
150
151
152 }
153 //TODO:需要加一个清除(所有条目全删除)和删除日志(一条一条删除)的函数
154 //}
155 // called every frame, uncomment this function to activate update callback
156 // update: function (dt) {
157
158 // },
159 });
1 {
2 "ver": "1.0.5",
3 "uuid": "575ad62c-3a8f-452a-a7cf-8447bf43ac47",
4 "isPlugin": false,
5 "loadPluginInWeb": true,
6 "loadPluginInNative": true,
7 "loadPluginInEditor": false,
8 "subMetas": {}
9 }
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "ver": "1.0.5",
3 "uuid": "e213e4ae-14f8-406c-afba-9ad9aea75e06",
4 "isPlugin": false,
5 "loadPluginInWeb": true,
6 "loadPluginInNative": true,
7 "loadPluginInEditor": false,
8 "subMetas": {}
9 }
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "ver": "1.0.5",
3 "uuid": "445864d0-7911-43e7-ab0a-a27ad0ae4705",
4 "isPlugin": false,
5 "loadPluginInWeb": true,
6 "loadPluginInNative": true,
7 "loadPluginInEditor": false,
8 "subMetas": {}
9 }
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "ver": "1.0.5",
3 "uuid": "a4e1b66d-6337-472f-bbf7-6d1a4a4c4b98",
4 "isPlugin": false,
5 "loadPluginInWeb": true,
6 "loadPluginInNative": true,
7 "loadPluginInEditor": false,
8 "subMetas": {}
9 }
...\ No newline at end of file ...\ No newline at end of file
1 cc.Class({
2 extends: cc.Component,
3
4 properties: {
5 _fStep:1,
6 _bHasRelation:true,
7 _oNode:null, //deprecated
8 _iDirection:0,
9 _fTargetPosition:0,
10 },
11
12 //ctor: function (fStep,bHasRelation,iDirection) {
13 ctor: function () {
14 this._fStep=arguments[0];
15 this._bHasRelation=arguments[1];
16 //this._oNode=arguments[2];
17 this._iDirection=arguments[2];
18
19 //this._fStep=fStep;
20 //this._bHasRelation=bHasRelation;
21 //this._oNode=oNode;
22 //this._iDirection=iDirection;
23 },
24 init: function (fStep,bHasRelation,iDirection) {
25 this._fStep=fStep;
26 this._bHasRelation=bHasRelation;
27 //this._oNode=oNode;
28 this._iDirection=iDirection;
29
30 },
31 getStep:function(){
32 return this._fStep;
33 },
34 setStep:function(fStep){
35 this._fStep=fStep;
36 },
37 getHasRelation:function(){
38 return this._bHasRelation;
39 },
40 setHasRelation:function(bHasRelation){
41 this._bHasRelation=bHasRelation;
42 },
43 /*
44 getNode:function(){
45 return this._oNode;
46 },
47 setNode:function(oNode){
48 this._oNode=oNode;
49 },*/
50 getDirection:function(){
51 return this._iDirection;
52 },
53 setDirection:function(iDirection){
54 this._iDirection=iDirection;
55 },
56 getTargetNode:function(){
57 return this._oTargetNode;
58 },
59 setTargetNode:function(oTargetNode){
60 this._oTargetNode=oTargetNode;
61 },
62 //明确目标位置 比设置Step更为有效
63 getTargetPosition:function(){
64 return this._fTargetPosition;
65 },
66 setTargetPosition:function(fTargetPosition){
67 this._fTargetPosition=fTargetPosition;
68 }
69 });
1 {
2 "ver": "1.0.5",
3 "uuid": "2970f50b-b098-424a-8197-5208a926b646",
4 "isPlugin": false,
5 "loadPluginInWeb": true,
6 "loadPluginInNative": true,
7 "loadPluginInEditor": false,
8 "subMetas": {}
9 }
...\ No newline at end of file ...\ No newline at end of file
1 //测试界面
2 var TVCanvas = require('TVCanvas');
3 cc.Class({
4 extends: cc.Component,
5
6 properties: {
7 testSprite:cc.Sprite,
8 test:cc.Label,
9 },
10
11 onLoad: function () {
12 //获取页面背景
13 // this.getPageBg(this, "background");
14 },
15
16 // TestLog:function(){
17 // cc.log("测试js中Test->TestLog发送方法。。。。");
18 // },
19 });
1 {
2 "ver": "1.0.5",
3 "uuid": "ac4e29c4-f16f-41cb-9dbc-8432082945c4",
4 "isPlugin": false,
5 "loadPluginInWeb": true,
6 "loadPluginInNative": true,
7 "loadPluginInEditor": false,
8 "subMetas": {}
9 }
...\ No newline at end of file ...\ No newline at end of file
1 //工具
2
3 //导出变量给PersoanlListView使用
4 // module.exports.foo = function (strResponse) { //require 实际上获取的是目标脚本内的 module.exports 变量
5 //注意:一旦使用exports导出则static内函数全部获取不到
6 // var utils = new Utils();
7 // utils.setTest(strResponse);
8 // };
9
10 cc.Class({
11 extends: cc.Component,
12
13 properties: {
14
15 },
16
17 onLoad: function () {
18 // this._aCategoryMediaId.join(","); //将数组转化为','相隔的字符串
19 // if (typeof (oResult[i].images) != 'undefined' && oResult[i].images.map.normal != null) {//typeOf获取一个变量是否存在,即使oResult[i].images不存在(未声明)也不会出错
20 // var index = oResult[i].images.map.normal[0];
21 // fileURL = oResult[i].images.list[index].fileUrl;
22 // }
23 // cc.log("时间测试:" + this.formatDate(1522031521000));
24 // this._graphicsLine = cc.find('ScrollContent/GraphicsLine', this.node).getComponent(cc.Graphics);
25 // this._graphicsLine.roundRect(borderX, borderY, oResult[i].width, oResult[i].height, 20);//圆角矩形路径
26 // this._graphicsLine.stroke(); //绘制路径
27 // if (oJSONResult.resultSet[0].score) {
28 // cc.find("LeftGroup/Score", this.node).getComponent(cc.Label).string = parseInt(oJSONResult.resultSet[0].score * 10) / 10 + "分";
29 // }
30
31 //Label下一帧才刷新大小
32 //目前用户可以自行在设置 label 所有属性后在执行一次 label._updateRenderData(true); 就能带当帧获取大小
33 },
34
35 statics: {
36 /**
37 * 移除元素
38 */
39 indexOfArr: function (arr, val) {
40 for (var i = 0; i < arr.length; i++) {
41 if (arr[i] == val) { return i; }
42 }
43 return -1;
44 },
45
46 remove: function (arr, val) {
47 var index = this.indexOfArr(arr, val);
48 // cc.log("index:"+index);
49 if (index > -1) { arr.splice(index, 1); }
50 },
51
52 /**
53 * 将时间字符串转成年月日
54 * @param {*} date
55 */
56 formatDate: function (date) {
57 date = new Date(date);
58 var y = date.getFullYear();
59 var m = date.getMonth() + 1;
60 var d = date.getDate();
61 var h = date.getHours();
62 var m1 = date.getMinutes();
63 var s = date.getSeconds();
64 m = m < 10 ? ("0" + m) : m;
65 d = d < 10 ? ("0" + d) : d;
66 // return y+"-"+m+"-"+d+" "+h+":"+m1+":"+s;
67 return y + "-" + m + "-" + d;
68 },
69
70 // 提取url中的解析字符串
71 //使用 var params = UrlParamHash(url);
72 // var fr= params['fr']; //fr = iks
73 UrlParamHash: function (url) {
74 if(typeof(url)=='undefined') return;
75 var params = [], h;
76 var hash = url.slice(url.indexOf("?") + 1).split(/[&,']/); //以'或&分割,将变量放在数组里面,形如[fr=iks,word=slice,ie=gbk]
77 for (var i = 0; i < hash.length; i++) {
78 h = hash[i].split("="); //形如[fr,iks]
79 params[h[0]] = h[1];
80 }
81 return params;
82 },
83
84 //秒数转分钟 200.617083--03:21
85 formatSecond2Minute: function (second) {
86 var mm = Math.floor(second / 60);
87 if (mm < 10) mm = "0" + mm;
88 var ss = (second % 60).toFixed(0);
89 if (ss < 10) ss = "0" + ss;
90 return mm + ":" + ss;
91 },
92
93 //加载资源并且设置资源可以自动释放
94 loadRes: function (url, type, completeCallback) {
95 return cc.loader.loadRes(url, type, function (err, res) {
96 if (completeCallback) {
97 completeCallback(err, res);
98 }
99 if (!err) {
100 cc.loader.setAutoReleaseRecursively(res, true);
101 }
102
103 });
104 },
105
106 //判断是不是移动端
107 isMobile:function(){
108 if(/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)) { //Web端不支持JSB
109 return true;
110 } else {
111 return false;
112 }
113 },
114
115 //筛选得到图片
116 getImageByTag: function (oData, strTag, index) {
117 var val = oData.images;
118 strTag = strTag || "normal";
119 index = index || 0;
120 var strUrl = null;
121 if (val && val != '' && val != 'null') {
122 if (val.list && val.list instanceof Array && val.list.length > 0
123 && val.map[strTag] && val.map[strTag] instanceof Array && val.map[strTag].length > 0
124 ) {
125 if (val.list[val.map[strTag][index]].fileUrl) {
126 strUrl = Common.TOPDRAW_IMAGE_SERVER + val.list[val.map[strTag][index]].fileUrl;
127 }
128 }
129 }
130 return strUrl;
131 },
132
133 },
134
135 });
1 {
2 "ver": "1.0.5",
3 "uuid": "118fab66-2ecc-4316-9d2b-0455ee265dba",
4 "isPlugin": false,
5 "loadPluginInWeb": true,
6 "loadPluginInNative": true,
7 "loadPluginInEditor": false,
8 "subMetas": {}
9 }
...\ No newline at end of file ...\ No newline at end of file
1 //推荐页
2 var Common = require('Common');
3 var Network = require('Network');
4
5 cc.Class({
6 extends: cc.Component,
7
8 properties: {
9 id: 0,
10 pic: cc.Sprite,
11 activeName1: cc.Label,
12 activeName2: cc.Label,
13 normalName: cc.Label,
14 },
15
16 // data: {id,iconSF,itemName,itemPrice}
17 init: function (data, funCallback) {
18 // cc.log("pfbRecommend->init: "+data.tvlink);
19 // this.id = data.id;
20 // this.node.width = data.width;
21 // this.node.height = data.height;
22 // this.node.getChildByName('Pic').width = data.width;
23 // this.node.getChildByName('Pic').height = data.height;
24 if (data.imageURL) {
25 var self = this;
26 Network.loadImageInNativeRuntime(
27 Common.TOPDRAW_IMAGE_SERVER_EDU + data.imageURL,
28 function (texture) {
29 self.pic.spriteFrame = new cc.SpriteFrame(texture,cc.rect(0,0,self.node.width,self.node.height));
30
31 if (null != funCallback && typeof funCallback == 'function') {
32 funCallback.call();
33 }
34 }, null, this
35 );
36 }
37 // this.node.getComponent(cc.Widget).top = data.top;
38 // this.node.getComponent(cc.Widget).left = data.left;
39
40 if (data.title_visible == 1) { //前三个不需要显示文字
41 cc.find('Name', this.node).active = true;
42 cc.find('Name', this.node).width = data.width - 10;
43 cc.find('Name/TextBg', this.node).width = data.width;
44 cc.find('Name/NormalName', this.node).width = data.width - 10;
45 cc.find('Name/ActiveName', this.node).width = data.width - 10;
46 cc.find('Name/ActiveName/NameContainer', this.node).width = data.width - 10;
47 cc.find('Name/ActiveName/NameContainer/NameText', this.node).width = data.width - 10;
48 this.normalName.node.width = data.width - 10;
49 this.activeName1.string = data.title;
50 this.activeName2.string = data.title;
51 this.normalName.string = data.title;
52 this.activeName1._updateRenderData(true);
53 this.activeName2._updateRenderData(true);
54 this.normalName._updateRenderData(true);
55
56 //调整文字位置
57 let nodeCellName = this.node.getChildByName('Name');
58 let nodeScreenTitleText = cc.find('ActiveName/NameContainer/NameText', nodeCellName);
59 let nodeScreenTitleText1 = nodeScreenTitleText.getChildByName('NameText1');
60 if (nodeScreenTitleText1.width > nodeScreenTitleText.width) {
61 this.normalName.overflow = cc.Label.Overflow.CLAMP;
62 this.normalName.enableWrapText = false;
63 this.normalName.horizontalAlign = cc.Label.HorizontalAlign.LEFT;
64 }
65 }
66 },
67
68 setUIWithFocus: function () {
69 let nodeCellName = this.node.getChildByName('Name');
70 cc.find("NormalName", nodeCellName).opacity = 255;
71 //超出滚动
72 let nodeScreenTitleText = cc.find('ActiveName/NameContainer/NameText', nodeCellName);
73
74 let fOriginalX = nodeScreenTitleText.x;
75 let fOriginalY = nodeScreenTitleText.y;
76
77 let nodeScreenTitleText1 = nodeScreenTitleText.getChildByName('NameText1');
78 let nodeScreenTitleText2 = nodeScreenTitleText.getChildByName('NameText2');
79 nodeScreenTitleText2.x = nodeScreenTitleText1.x + nodeScreenTitleText1.width + 10;//TODO:补丁,解决滚动重叠
80 cc.log(nodeScreenTitleText1.width + "------------" + nodeScreenTitleText.width);
81 if (nodeScreenTitleText1.width > nodeScreenTitleText.width) {
82 cc.find("ActiveName/NameContainer", nodeCellName).opacity = 255;
83 cc.find("NormalName", nodeCellName).opacity = 0;
84 let fEndPositionDelta = (nodeScreenTitleText1.width + 30);
85 //下方时长和字有关系,才能速度一样
86 var ftaScreenTitleMoveToTarget = cc.moveTo(10 * (nodeScreenTitleText1.width / nodeScreenTitleText.width), fOriginalX - fEndPositionDelta, fOriginalY);
87 var ftaScreenTitleMoveToBack = cc.moveTo(0, fOriginalX, fOriginalY);
88 var sequenceMediaTitle = cc.sequence(ftaScreenTitleMoveToTarget, ftaScreenTitleMoveToBack);
89 var repeatScreenTitle = cc.repeat(sequenceMediaTitle, 10);
90 repeatScreenTitle.setTag(Common.OVERLENGTH_MOVING);
91 nodeScreenTitleText.runAction(repeatScreenTitle);
92 nodeScreenTitleText2.active = true;
93 }
94 },
95
96 setUIWithoutFocus: function () {
97 let nodeCellName = this.node.getChildByName('Name');
98 cc.find("NormalName", nodeCellName).opacity = 255;
99 //如有滚动停止滚动
100 let nodeScreenTitleText = cc.find('ActiveName/NameContainer/NameText', nodeCellName);
101 if (null != nodeScreenTitleText.getActionByTag(Common.OVERLENGTH_MOVING)) {
102 nodeScreenTitleText.stopActionByTag(Common.OVERLENGTH_MOVING);
103 nodeScreenTitleText.getChildByName('NameText2').active = false;
104 cc.find("ActiveName/NameContainer", nodeCellName).opacity = 0;
105 }
106 nodeScreenTitleText.x = 0;
107 },
108 });
1 {
2 "ver": "1.0.5",
3 "uuid": "43a14b47-14de-42be-b1fc-5b7cfcc31cf8",
4 "isPlugin": false,
5 "loadPluginInWeb": true,
6 "loadPluginInNative": true,
7 "loadPluginInEditor": false,
8 "subMetas": {}
9 }
...\ No newline at end of file ...\ No newline at end of file
1 //推荐页
2 var Common = require('Common');
3 var Network = require('Network');
4
5 cc.Class({
6 extends: cc.Component,
7
8 properties: {
9 id: 0,
10 pic: cc.Sprite,
11 activeName1: cc.Label,
12 activeName2: cc.Label,
13 normalName: cc.Label,
14 },
15
16 // data: {id,iconSF,itemName,itemPrice}
17 init: function (data, funCallback) {
18 // cc.log("pfbRecommend->init: "+data.tvlink);
19 // this.id = data.id;
20 // this.node.width = data.width;
21 // this.node.height = data.height;
22 // this.node.getChildByName('Pic').width = data.width;
23 // this.node.getChildByName('Pic').height = data.height;
24 if (data.image[0].fileUrl) {
25 var self = this;
26 Network.loadImageInNativeRuntime(
27 Common.TOPDRAW_IMAGE_SERVER_EDU_RIGHT + data.image[0].fileUrl,
28 function (texture) {
29 self.pic.spriteFrame = new cc.SpriteFrame(texture);
30
31 if (null != funCallback && typeof funCallback == 'function') {
32 funCallback.call();
33 }
34 }, null, this
35 );
36 }
37 // this.node.getComponent(cc.Widget).top = data.top;
38 // this.node.getComponent(cc.Widget).left = data.left;
39
40 // if (data.title_visible == 1) { //前三个不需要显示文字
41 // cc.find('Name', this.node).active = true;
42 // cc.find('Name', this.node).width = data.width - 10;
43 // cc.find('Name/TextBg', this.node).width = data.width;
44 // cc.find('Name/NormalName', this.node).width = data.width - 10;
45 // cc.find('Name/ActiveName', this.node).width = data.width - 10;
46 // cc.find('Name/ActiveName/NameContainer', this.node).width = data.width - 10;
47 // cc.find('Name/ActiveName/NameContainer/NameText', this.node).width = data.width - 10;
48 // this.normalName.node.width = data.width - 10;
49 // this.activeName1.string = data.title;
50 // this.activeName2.string = data.title;
51 // this.normalName.string = data.title;
52 // this.activeName1._updateRenderData(true);
53 // this.activeName2._updateRenderData(true);
54 // this.normalName._updateRenderData(true);
55
56 // //调整文字位置
57 // let nodeCellName = this.node.getChildByName('Name');
58 // let nodeScreenTitleText = cc.find('ActiveName/NameContainer/NameText', nodeCellName);
59 // let nodeScreenTitleText1 = nodeScreenTitleText.getChildByName('NameText1');
60 // if (nodeScreenTitleText1.width > nodeScreenTitleText.width) {
61 // this.normalName.overflow = cc.Label.Overflow.CLAMP;
62 // this.normalName.enableWrapText = false;
63 // this.normalName.horizontalAlign = cc.Label.HorizontalAlign.LEFT;
64 // }
65 // }
66 },
67
68 setUIWithFocus: function () {
69 let nodeCellName = this.node.getChildByName('Name');
70 cc.find("NormalName", nodeCellName).opacity = 255;
71 //超出滚动
72 let nodeScreenTitleText = cc.find('ActiveName/NameContainer/NameText', nodeCellName);
73
74 let fOriginalX = nodeScreenTitleText.x;
75 let fOriginalY = nodeScreenTitleText.y;
76
77 let nodeScreenTitleText1 = nodeScreenTitleText.getChildByName('NameText1');
78 let nodeScreenTitleText2 = nodeScreenTitleText.getChildByName('NameText2');
79 nodeScreenTitleText2.x = nodeScreenTitleText1.x + nodeScreenTitleText1.width + 10;//TODO:补丁,解决滚动重叠
80 cc.log(nodeScreenTitleText1.width + "------------" + nodeScreenTitleText.width);
81 if (nodeScreenTitleText1.width > nodeScreenTitleText.width) {
82 cc.find("ActiveName/NameContainer", nodeCellName).opacity = 255;
83 cc.find("NormalName", nodeCellName).opacity = 0;
84 let fEndPositionDelta = (nodeScreenTitleText1.width + 30);
85 //下方时长和字有关系,才能速度一样
86 var ftaScreenTitleMoveToTarget = cc.moveTo(10 * (nodeScreenTitleText1.width / nodeScreenTitleText.width), fOriginalX - fEndPositionDelta, fOriginalY);
87 var ftaScreenTitleMoveToBack = cc.moveTo(0, fOriginalX, fOriginalY);
88 var sequenceMediaTitle = cc.sequence(ftaScreenTitleMoveToTarget, ftaScreenTitleMoveToBack);
89 var repeatScreenTitle = cc.repeat(sequenceMediaTitle, 10);
90 repeatScreenTitle.setTag(Common.OVERLENGTH_MOVING);
91 nodeScreenTitleText.runAction(repeatScreenTitle);
92 nodeScreenTitleText2.active = true;
93 }
94 },
95
96 setUIWithoutFocus: function () {
97 let nodeCellName = this.node.getChildByName('Name');
98 cc.find("NormalName", nodeCellName).opacity = 255;
99 //如有滚动停止滚动
100 let nodeScreenTitleText = cc.find('ActiveName/NameContainer/NameText', nodeCellName);
101 if (null != nodeScreenTitleText.getActionByTag(Common.OVERLENGTH_MOVING)) {
102 nodeScreenTitleText.stopActionByTag(Common.OVERLENGTH_MOVING);
103 nodeScreenTitleText.getChildByName('NameText2').active = false;
104 cc.find("ActiveName/NameContainer", nodeCellName).opacity = 0;
105 }
106 nodeScreenTitleText.x = 0;
107 },
108 });
1 {
2 "ver": "1.0.5",
3 "uuid": "4e3e0b43-0b64-4a48-b6fb-9cd3d734de73",
4 "isPlugin": false,
5 "loadPluginInWeb": true,
6 "loadPluginInNative": true,
7 "loadPluginInEditor": false,
8 "subMetas": {}
9 }
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "ver": "1.0.5",
3 "uuid": "aa753a4e-3b13-4828-ad1b-a7d1af1e6272",
4 "isPlugin": false,
5 "loadPluginInWeb": true,
6 "loadPluginInNative": true,
7 "loadPluginInEditor": false,
8 "subMetas": {}
9 }
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "ver": "1.0.5",
3 "uuid": "97fdacf1-0a54-46e5-960d-8017fba2261f",
4 "isPlugin": false,
5 "loadPluginInWeb": true,
6 "loadPluginInNative": true,
7 "loadPluginInEditor": false,
8 "subMetas": {}
9 }
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "ver": "1.0.5",
3 "uuid": "499fb139-3263-492e-94a2-495a8db820e9",
4 "isPlugin": false,
5 "loadPluginInWeb": true,
6 "loadPluginInNative": true,
7 "loadPluginInEditor": false,
8 "subMetas": {}
9 }
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "ver": "1.0.5",
3 "uuid": "8d5835ea-26bc-4227-abd5-be997edcff8d",
4 "isPlugin": false,
5 "loadPluginInWeb": true,
6 "loadPluginInNative": true,
7 "loadPluginInEditor": false,
8 "subMetas": {}
9 }
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "ver": "1.0.5",
3 "uuid": "bb5c5a5e-89a9-4ed1-8918-b65df56166ad",
4 "isPlugin": false,
5 "loadPluginInWeb": true,
6 "loadPluginInNative": true,
7 "loadPluginInEditor": false,
8 "subMetas": {}
9 }
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "ver": "1.0.1",
3 "uuid": "7b81d4e8-ec84-4716-968d-500ac1d78a54",
4 "isGroup": false,
5 "subMetas": {}
6 }
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "ver": "2.3.1",
3 "uuid": "6aa0aa6a-ebee-4155-a088-a687a6aadec4",
4 "type": "sprite",
5 "wrapMode": "clamp",
6 "filterMode": "bilinear",
7 "premultiplyAlpha": false,
8 "platformSettings": {},
9 "subMetas": {
10 "HelloWorld": {
11 "ver": "1.0.4",
12 "uuid": "31bc895a-c003-4566-a9f3-2e54ae1c17dc",
13 "rawTextureUuid": "6aa0aa6a-ebee-4155-a088-a687a6aadec4",
14 "trimType": "auto",
15 "trimThreshold": 1,
16 "rotated": false,
17 "offsetX": 0,
18 "offsetY": 0,
19 "trimX": 0,
20 "trimY": 0,
21 "width": 195,
22 "height": 270,
23 "rawWidth": 195,
24 "rawHeight": 270,
25 "borderTop": 0,
26 "borderBottom": 0,
27 "borderLeft": 0,
28 "borderRight": 0,
29 "subMetas": {}
30 }
31 }
32 }
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "ver": "2.3.1",
3 "uuid": "7b058b45-1d99-4a6f-af75-477dcbaa56dd",
4 "type": "sprite",
5 "wrapMode": "clamp",
6 "filterMode": "bilinear",
7 "premultiplyAlpha": false,
8 "platformSettings": {},
9 "subMetas": {
10 "bg": {
11 "ver": "1.0.4",
12 "uuid": "eab92123-65ec-44fd-b9af-7b80346d5e64",
13 "rawTextureUuid": "7b058b45-1d99-4a6f-af75-477dcbaa56dd",
14 "trimType": "auto",
15 "trimThreshold": 1,
16 "rotated": false,
17 "offsetX": 0,
18 "offsetY": 0,
19 "trimX": 0,
20 "trimY": 0,
21 "width": 1280,
22 "height": 2885,
23 "rawWidth": 1280,
24 "rawHeight": 2885,
25 "borderTop": 0,
26 "borderBottom": 0,
27 "borderLeft": 0,
28 "borderRight": 0,
29 "subMetas": {}
30 }
31 }
32 }
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "ver": "2.3.1",
3 "uuid": "90871d77-34d5-4fa5-8b14-0fc3d0acdf3d",
4 "type": "sprite",
5 "wrapMode": "clamp",
6 "filterMode": "bilinear",
7 "premultiplyAlpha": false,
8 "platformSettings": {},
9 "subMetas": {
10 "history": {
11 "ver": "1.0.4",
12 "uuid": "8c0c790b-4b85-43a1-8b6c-a8686b700df6",
13 "rawTextureUuid": "90871d77-34d5-4fa5-8b14-0fc3d0acdf3d",
14 "trimType": "auto",
15 "trimThreshold": 1,
16 "rotated": false,
17 "offsetX": 0,
18 "offsetY": 0,
19 "trimX": 0,
20 "trimY": 0,
21 "width": 108,
22 "height": 48,
23 "rawWidth": 108,
24 "rawHeight": 48,
25 "borderTop": 0,
26 "borderBottom": 0,
27 "borderLeft": 0,
28 "borderRight": 0,
29 "subMetas": {}
30 }
31 }
32 }
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "ver": "2.3.1",
3 "uuid": "bd1dfb5f-c75a-4fac-b539-585b0b231a4b",
4 "type": "sprite",
5 "wrapMode": "clamp",
6 "filterMode": "bilinear",
7 "premultiplyAlpha": false,
8 "platformSettings": {},
9 "subMetas": {
10 "logo": {
11 "ver": "1.0.4",
12 "uuid": "1af31773-8501-40fe-96e5-ec700c03162c",
13 "rawTextureUuid": "bd1dfb5f-c75a-4fac-b539-585b0b231a4b",
14 "trimType": "auto",
15 "trimThreshold": 1,
16 "rotated": false,
17 "offsetX": 0,
18 "offsetY": -17,
19 "trimX": 2,
20 "trimY": 38,
21 "width": 649,
22 "height": 466,
23 "rawWidth": 653,
24 "rawHeight": 508,
25 "borderTop": 0,
26 "borderBottom": 0,
27 "borderLeft": 0,
28 "borderRight": 0,
29 "subMetas": {}
30 }
31 }
32 }
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "ver": "2.3.1",
3 "uuid": "723c70d3-74ee-4a9e-9eb0-12e04f587bc7",
4 "type": "sprite",
5 "wrapMode": "clamp",
6 "filterMode": "bilinear",
7 "premultiplyAlpha": false,
8 "platformSettings": {},
9 "subMetas": {
10 "my": {
11 "ver": "1.0.4",
12 "uuid": "e74a5b86-b958-43cf-a583-6ebdeb00e071",
13 "rawTextureUuid": "723c70d3-74ee-4a9e-9eb0-12e04f587bc7",
14 "trimType": "auto",
15 "trimThreshold": 1,
16 "rotated": false,
17 "offsetX": 0,
18 "offsetY": 0,
19 "trimX": 0,
20 "trimY": 0,
21 "width": 127,
22 "height": 48,
23 "rawWidth": 127,
24 "rawHeight": 48,
25 "borderTop": 0,
26 "borderBottom": 0,
27 "borderLeft": 0,
28 "borderRight": 0,
29 "subMetas": {}
30 }
31 }
32 }
...\ No newline at end of file ...\ No newline at end of file
1 [
2 {
3 "__type__": "cc.Prefab",
4 "_name": "",
5 "_objFlags": 0,
6 "_native": "",
7 "data": {
8 "__id__": 1
9 },
10 "optimizationPolicy": 0,
11 "asyncLoadAssets": false,
12 "readonly": false
13 },
14 {
15 "__type__": "cc.Node",
16 "_name": "pfbShowCategory",
17 "_objFlags": 0,
18 "_parent": null,
19 "_children": [
20 {
21 "__id__": 2
22 }
23 ],
24 "_active": true,
25 "_level": 1,
26 "_components": [
27 {
28 "__id__": 5
29 },
30 {
31 "__id__": 6
32 }
33 ],
34 "_prefab": {
35 "__id__": 7
36 },
37 "_opacity": 255,
38 "_color": {
39 "__type__": "cc.Color",
40 "r": 255,
41 "g": 255,
42 "b": 255,
43 "a": 255
44 },
45 "_contentSize": {
46 "__type__": "cc.Size",
47 "width": 40,
48 "height": 36
49 },
50 "_anchorPoint": {
51 "__type__": "cc.Vec2",
52 "x": 0.5,
53 "y": 0.5
54 },
55 "_position": {
56 "__type__": "cc.Vec3",
57 "x": 0,
58 "y": 0,
59 "z": 0
60 },
61 "_scale": {
62 "__type__": "cc.Vec3",
63 "x": 1,
64 "y": 1,
65 "z": 1
66 },
67 "_eulerAngles": {
68 "__type__": "cc.Vec3",
69 "x": 0,
70 "y": 0,
71 "z": 0
72 },
73 "_skewX": 0,
74 "_skewY": 0,
75 "_is3DNode": false,
76 "groupIndex": 0,
77 "_rotationX": 0,
78 "_rotationY": 0,
79 "_id": ""
80 },
81 {
82 "__type__": "cc.Node",
83 "_name": "Pic",
84 "_objFlags": 0,
85 "_parent": {
86 "__id__": 1
87 },
88 "_children": [],
89 "_active": true,
90 "_level": 2,
91 "_components": [
92 {
93 "__id__": 3
94 }
95 ],
96 "_prefab": {
97 "__id__": 4
98 },
99 "_opacity": 255,
100 "_color": {
101 "__type__": "cc.Color",
102 "r": 255,
103 "g": 255,
104 "b": 255,
105 "a": 255
106 },
107 "_contentSize": {
108 "__type__": "cc.Size",
109 "width": 40,
110 "height": 36
111 },
112 "_anchorPoint": {
113 "__type__": "cc.Vec2",
114 "x": 0.5,
115 "y": 0.5
116 },
117 "_position": {
118 "__type__": "cc.Vec3",
119 "x": 0,
120 "y": 0,
121 "z": 0
122 },
123 "_scale": {
124 "__type__": "cc.Vec3",
125 "x": 1,
126 "y": 1,
127 "z": 1
128 },
129 "_eulerAngles": {
130 "__type__": "cc.Vec3",
131 "x": 0,
132 "y": 0,
133 "z": 0
134 },
135 "_skewX": 0,
136 "_skewY": 0,
137 "_is3DNode": false,
138 "groupIndex": 0,
139 "_rotationX": 0,
140 "_rotationY": 0,
141 "_id": ""
142 },
143 {
144 "__type__": "cc.Sprite",
145 "_name": "",
146 "_objFlags": 0,
147 "node": {
148 "__id__": 2
149 },
150 "_enabled": true,
151 "_materials": [
152 {
153 "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
154 }
155 ],
156 "_srcBlendFactor": 770,
157 "_dstBlendFactor": 771,
158 "_spriteFrame": null,
159 "_type": 0,
160 "_sizeMode": 1,
161 "_fillType": 0,
162 "_fillCenter": {
163 "__type__": "cc.Vec2",
164 "x": 0,
165 "y": 0
166 },
167 "_fillStart": 0,
168 "_fillRange": 0,
169 "_isTrimmedMode": true,
170 "_atlas": null,
171 "_id": ""
172 },
173 {
174 "__type__": "cc.PrefabInfo",
175 "root": {
176 "__id__": 1
177 },
178 "asset": {
179 "__uuid__": "0a9ac85b-6d8a-498b-92ce-d1b35b092920"
180 },
181 "fileId": "cahAospA9KiZ8bJwfuwSSJ",
182 "sync": false
183 },
184 {
185 "__type__": "cc.Widget",
186 "_name": "",
187 "_objFlags": 0,
188 "node": {
189 "__id__": 1
190 },
191 "_enabled": true,
192 "alignMode": 1,
193 "_target": null,
194 "_alignFlags": 9,
195 "_left": -20,
196 "_right": 0,
197 "_top": 702,
198 "_bottom": 0,
199 "_verticalCenter": 0,
200 "_horizontalCenter": 0,
201 "_isAbsLeft": true,
202 "_isAbsRight": true,
203 "_isAbsTop": true,
204 "_isAbsBottom": true,
205 "_isAbsHorizontalCenter": true,
206 "_isAbsVerticalCenter": true,
207 "_originalWidth": 0,
208 "_originalHeight": 0,
209 "_id": ""
210 },
211 {
212 "__type__": "43a14tHFN5CvrH8W3z8wxz4",
213 "_name": "",
214 "_objFlags": 0,
215 "node": {
216 "__id__": 1
217 },
218 "_enabled": true,
219 "id": 0,
220 "pic": {
221 "__id__": 3
222 },
223 "activeName1": null,
224 "activeName2": null,
225 "normalName": null,
226 "_id": ""
227 },
228 {
229 "__type__": "cc.PrefabInfo",
230 "root": {
231 "__id__": 1
232 },
233 "asset": {
234 "__uuid__": "0a9ac85b-6d8a-498b-92ce-d1b35b092920"
235 },
236 "fileId": "f3FKYd7SJEvrs4s48MPI1G",
237 "sync": false
238 }
239 ]
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "ver": "1.2.0",
3 "uuid": "0a9ac85b-6d8a-498b-92ce-d1b35b092920",
4 "optimizationPolicy": "AUTO",
5 "asyncLoadAssets": false,
6 "readonly": false,
7 "subMetas": {}
8 }
...\ No newline at end of file ...\ No newline at end of file
1 [
2 {
3 "__type__": "cc.Prefab",
4 "_name": "",
5 "_objFlags": 0,
6 "_native": "",
7 "data": {
8 "__id__": 1
9 },
10 "optimizationPolicy": 0,
11 "asyncLoadAssets": false,
12 "readonly": false
13 },
14 {
15 "__type__": "cc.Node",
16 "_name": "pfbShowCategory",
17 "_objFlags": 0,
18 "_parent": null,
19 "_children": [
20 {
21 "__id__": 2
22 }
23 ],
24 "_active": true,
25 "_level": 1,
26 "_components": [
27 {
28 "__id__": 5
29 },
30 {
31 "__id__": 6
32 }
33 ],
34 "_prefab": {
35 "__id__": 7
36 },
37 "_opacity": 255,
38 "_color": {
39 "__type__": "cc.Color",
40 "r": 255,
41 "g": 255,
42 "b": 255,
43 "a": 255
44 },
45 "_contentSize": {
46 "__type__": "cc.Size",
47 "width": 40,
48 "height": 36
49 },
50 "_anchorPoint": {
51 "__type__": "cc.Vec2",
52 "x": 0.5,
53 "y": 0.5
54 },
55 "_position": {
56 "__type__": "cc.Vec3",
57 "x": 0,
58 "y": 0,
59 "z": 0
60 },
61 "_scale": {
62 "__type__": "cc.Vec3",
63 "x": 1,
64 "y": 1,
65 "z": 1
66 },
67 "_eulerAngles": {
68 "__type__": "cc.Vec3",
69 "x": 0,
70 "y": 0,
71 "z": 0
72 },
73 "_skewX": 0,
74 "_skewY": 0,
75 "_is3DNode": false,
76 "groupIndex": 0,
77 "_rotationX": 0,
78 "_rotationY": 0,
79 "_id": ""
80 },
81 {
82 "__type__": "cc.Node",
83 "_name": "Pic",
84 "_objFlags": 0,
85 "_parent": {
86 "__id__": 1
87 },
88 "_children": [],
89 "_active": true,
90 "_level": 2,
91 "_components": [
92 {
93 "__id__": 3
94 }
95 ],
96 "_prefab": {
97 "__id__": 4
98 },
99 "_opacity": 255,
100 "_color": {
101 "__type__": "cc.Color",
102 "r": 255,
103 "g": 255,
104 "b": 255,
105 "a": 255
106 },
107 "_contentSize": {
108 "__type__": "cc.Size",
109 "width": 40,
110 "height": 40
111 },
112 "_anchorPoint": {
113 "__type__": "cc.Vec2",
114 "x": 0.5,
115 "y": 0.5
116 },
117 "_position": {
118 "__type__": "cc.Vec3",
119 "x": 0,
120 "y": 0,
121 "z": 0
122 },
123 "_scale": {
124 "__type__": "cc.Vec3",
125 "x": 1,
126 "y": 1,
127 "z": 1
128 },
129 "_eulerAngles": {
130 "__type__": "cc.Vec3",
131 "x": 0,
132 "y": 0,
133 "z": 0
134 },
135 "_skewX": 0,
136 "_skewY": 0,
137 "_is3DNode": false,
138 "groupIndex": 0,
139 "_rotationX": 0,
140 "_rotationY": 0,
141 "_id": ""
142 },
143 {
144 "__type__": "cc.Sprite",
145 "_name": "",
146 "_objFlags": 0,
147 "node": {
148 "__id__": 2
149 },
150 "_enabled": true,
151 "_materials": [
152 {
153 "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
154 }
155 ],
156 "_srcBlendFactor": 770,
157 "_dstBlendFactor": 771,
158 "_spriteFrame": {
159 "__uuid__": "410fb916-8721-4663-bab8-34397391ace7"
160 },
161 "_type": 0,
162 "_sizeMode": 0,
163 "_fillType": 0,
164 "_fillCenter": {
165 "__type__": "cc.Vec2",
166 "x": 0,
167 "y": 0
168 },
169 "_fillStart": 0,
170 "_fillRange": 0,
171 "_isTrimmedMode": true,
172 "_atlas": null,
173 "_id": ""
174 },
175 {
176 "__type__": "cc.PrefabInfo",
177 "root": {
178 "__id__": 1
179 },
180 "asset": {
181 "__uuid__": "9058dd42-455f-43f3-93b4-ed587f2159bd"
182 },
183 "fileId": "cahAospA9KiZ8bJwfuwSSJ",
184 "sync": false
185 },
186 {
187 "__type__": "cc.Widget",
188 "_name": "",
189 "_objFlags": 0,
190 "node": {
191 "__id__": 1
192 },
193 "_enabled": true,
194 "alignMode": 1,
195 "_target": null,
196 "_alignFlags": 9,
197 "_left": -20,
198 "_right": 0,
199 "_top": 702,
200 "_bottom": 0,
201 "_verticalCenter": 0,
202 "_horizontalCenter": 0,
203 "_isAbsLeft": true,
204 "_isAbsRight": true,
205 "_isAbsTop": true,
206 "_isAbsBottom": true,
207 "_isAbsHorizontalCenter": true,
208 "_isAbsVerticalCenter": true,
209 "_originalWidth": 0,
210 "_originalHeight": 0,
211 "_id": ""
212 },
213 {
214 "__type__": "4e3e0tDC2RKSLb7nNPXNN5z",
215 "_name": "",
216 "_objFlags": 0,
217 "node": {
218 "__id__": 1
219 },
220 "_enabled": true,
221 "id": 0,
222 "pic": {
223 "__id__": 3
224 },
225 "activeName1": null,
226 "activeName2": null,
227 "normalName": null,
228 "_id": ""
229 },
230 {
231 "__type__": "cc.PrefabInfo",
232 "root": {
233 "__id__": 1
234 },
235 "asset": {
236 "__uuid__": "9058dd42-455f-43f3-93b4-ed587f2159bd"
237 },
238 "fileId": "f3FKYd7SJEvrs4s48MPI1G",
239 "sync": false
240 }
241 ]
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "ver": "1.2.0",
3 "uuid": "9058dd42-455f-43f3-93b4-ed587f2159bd",
4 "optimizationPolicy": "AUTO",
5 "asyncLoadAssets": false,
6 "readonly": false,
7 "subMetas": {}
8 }
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "ver": "2.3.1",
3 "uuid": "f35038d7-351f-431f-87db-d06c657b0216",
4 "type": "sprite",
5 "wrapMode": "clamp",
6 "filterMode": "bilinear",
7 "premultiplyAlpha": false,
8 "platformSettings": {},
9 "subMetas": {
10 "search": {
11 "ver": "1.0.4",
12 "uuid": "2724fd4d-8592-497d-9ab1-4e33968c0e89",
13 "rawTextureUuid": "f35038d7-351f-431f-87db-d06c657b0216",
14 "trimType": "auto",
15 "trimThreshold": 1,
16 "rotated": false,
17 "offsetX": 0,
18 "offsetY": 0,
19 "trimX": 0,
20 "trimY": 0,
21 "width": 108,
22 "height": 48,
23 "rawWidth": 108,
24 "rawHeight": 48,
25 "borderTop": 0,
26 "borderBottom": 0,
27 "borderLeft": 0,
28 "borderRight": 0,
29 "subMetas": {}
30 }
31 }
32 }
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "ver": "2.3.1",
3 "uuid": "a8027877-d8d6-4645-97a0-52d4a0123dba",
4 "type": "sprite",
5 "wrapMode": "clamp",
6 "filterMode": "bilinear",
7 "premultiplyAlpha": false,
8 "platformSettings": {},
9 "subMetas": {
10 "singleColor": {
11 "ver": "1.0.4",
12 "uuid": "410fb916-8721-4663-bab8-34397391ace7",
13 "rawTextureUuid": "a8027877-d8d6-4645-97a0-52d4a0123dba",
14 "trimType": "auto",
15 "trimThreshold": 1,
16 "rotated": false,
17 "offsetX": 0,
18 "offsetY": 0,
19 "trimX": 0,
20 "trimY": 0,
21 "width": 2,
22 "height": 2,
23 "rawWidth": 2,
24 "rawHeight": 2,
25 "borderTop": 0,
26 "borderBottom": 0,
27 "borderLeft": 0,
28 "borderRight": 0,
29 "subMetas": {}
30 }
31 }
32 }
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "ver": "1.0.1",
3 "uuid": "8465620c-9347-477f-be29-e246c6679147",
4 "isSubpackage": false,
5 "subpackageName": "",
6 "subMetas": {}
7 }
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "ver": "2.3.1",
3 "uuid": "af74e7fc-dc2d-4e3b-9e98-c77ca9ee7ebe",
4 "type": "sprite",
5 "wrapMode": "clamp",
6 "filterMode": "bilinear",
7 "premultiplyAlpha": false,
8 "platformSettings": {},
9 "subMetas": {
10 "HelloWorld": {
11 "ver": "1.0.4",
12 "uuid": "837c982b-9cd1-4e5a-a97b-7ea38b39a2ed",
13 "rawTextureUuid": "af74e7fc-dc2d-4e3b-9e98-c77ca9ee7ebe",
14 "trimType": "auto",
15 "trimThreshold": 1,
16 "rotated": false,
17 "offsetX": 0,
18 "offsetY": 0,
19 "trimX": 0,
20 "trimY": 0,
21 "width": 195,
22 "height": 270,
23 "rawWidth": 195,
24 "rawHeight": 270,
25 "borderTop": 0,
26 "borderBottom": 0,
27 "borderLeft": 0,
28 "borderRight": 0,
29 "subMetas": {}
30 }
31 }
32 }
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "ver": "2.3.1",
3 "uuid": "9ab1d077-e501-4d49-af8d-66fa45d8d195",
4 "type": "sprite",
5 "wrapMode": "clamp",
6 "filterMode": "bilinear",
7 "premultiplyAlpha": false,
8 "platformSettings": {},
9 "subMetas": {
10 "history": {
11 "ver": "1.0.4",
12 "uuid": "b9b775dd-436b-455f-bf36-de112de109e8",
13 "rawTextureUuid": "9ab1d077-e501-4d49-af8d-66fa45d8d195",
14 "trimType": "auto",
15 "trimThreshold": 1,
16 "rotated": false,
17 "offsetX": 0,
18 "offsetY": 0,
19 "trimX": 0,
20 "trimY": 0,
21 "width": 108,
22 "height": 48,
23 "rawWidth": 108,
24 "rawHeight": 48,
25 "borderTop": 0,
26 "borderBottom": 0,
27 "borderLeft": 0,
28 "borderRight": 0,
29 "subMetas": {}
30 }
31 }
32 }
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "ver": "2.3.1",
3 "uuid": "ed1ff055-a16b-4f2a-9caf-e715e5273b95",
4 "type": "sprite",
5 "wrapMode": "clamp",
6 "filterMode": "bilinear",
7 "premultiplyAlpha": false,
8 "platformSettings": {},
9 "subMetas": {
10 "my": {
11 "ver": "1.0.4",
12 "uuid": "244ccc93-62bc-4f79-81ba-2fd341419b2e",
13 "rawTextureUuid": "ed1ff055-a16b-4f2a-9caf-e715e5273b95",
14 "trimType": "auto",
15 "trimThreshold": 1,
16 "rotated": false,
17 "offsetX": 0,
18 "offsetY": 0,
19 "trimX": 0,
20 "trimY": 0,
21 "width": 127,
22 "height": 48,
23 "rawWidth": 127,
24 "rawHeight": 48,
25 "borderTop": 0,
26 "borderBottom": 0,
27 "borderLeft": 0,
28 "borderRight": 0,
29 "subMetas": {}
30 }
31 }
32 }
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "ver": "2.3.1",
3 "uuid": "64db64a5-a07f-4743-abae-863219e4ed59",
4 "type": "sprite",
5 "wrapMode": "clamp",
6 "filterMode": "bilinear",
7 "premultiplyAlpha": false,
8 "platformSettings": {},
9 "subMetas": {
10 "search": {
11 "ver": "1.0.4",
12 "uuid": "622d4902-61b7-4461-a5fe-bdeaa3f44ce2",
13 "rawTextureUuid": "64db64a5-a07f-4743-abae-863219e4ed59",
14 "trimType": "auto",
15 "trimThreshold": 1,
16 "rotated": false,
17 "offsetX": 0,
18 "offsetY": 0,
19 "trimX": 0,
20 "trimY": 0,
21 "width": 108,
22 "height": 48,
23 "rawWidth": 108,
24 "rawHeight": 48,
25 "borderTop": 0,
26 "borderBottom": 0,
27 "borderLeft": 0,
28 "borderRight": 0,
29 "subMetas": {}
30 }
31 }
32 }
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "ver": "1.0.1",
3 "uuid": "8aafcb6f-79a9-4274-a8e6-11535d7db5c7",
4 "isSubpackage": false,
5 "subpackageName": "",
6 "subMetas": {}
7 }
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "ver": "1.0.1",
3 "uuid": "7a0fdfb4-67d2-4ce5-881f-27ba48398963",
4 "isSubpackage": false,
5 "subpackageName": "",
6 "subMetas": {}
7 }
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "ver": "2.3.1",
3 "uuid": "07c42853-44f6-44fd-b4a7-96c657273d5b",
4 "type": "sprite",
5 "wrapMode": "clamp",
6 "filterMode": "bilinear",
7 "premultiplyAlpha": false,
8 "platformSettings": {},
9 "subMetas": {
10 "1": {
11 "ver": "1.0.4",
12 "uuid": "2f12d7cb-336d-4d50-8523-d7336a40a1b6",
13 "rawTextureUuid": "07c42853-44f6-44fd-b4a7-96c657273d5b",
14 "trimType": "auto",
15 "trimThreshold": 1,
16 "rotated": false,
17 "offsetX": 0,
18 "offsetY": 0,
19 "trimX": 0,
20 "trimY": 0,
21 "width": 51,
22 "height": 51,
23 "rawWidth": 51,
24 "rawHeight": 51,
25 "borderTop": 0,
26 "borderBottom": 0,
27 "borderLeft": 0,
28 "borderRight": 0,
29 "subMetas": {}
30 }
31 }
32 }
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "ver": "2.3.1",
3 "uuid": "a17484ab-98b9-45a7-96c5-e2f115f20b9c",
4 "type": "sprite",
5 "wrapMode": "clamp",
6 "filterMode": "bilinear",
7 "premultiplyAlpha": false,
8 "platformSettings": {},
9 "subMetas": {
10 "2": {
11 "ver": "1.0.4",
12 "uuid": "d0f889f0-abdf-4e0b-b995-80b7e4d958db",
13 "rawTextureUuid": "a17484ab-98b9-45a7-96c5-e2f115f20b9c",
14 "trimType": "auto",
15 "trimThreshold": 1,
16 "rotated": false,
17 "offsetX": 0,
18 "offsetY": 12,
19 "trimX": 0,
20 "trimY": 3,
21 "width": 1,
22 "height": 16,
23 "rawWidth": 1,
24 "rawHeight": 46,
25 "borderTop": 0,
26 "borderBottom": 0,
27 "borderLeft": 0,
28 "borderRight": 0,
29 "subMetas": {}
30 }
31 }
32 }
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "ver": "2.3.1",
3 "uuid": "9009b50c-a6e9-4eea-b016-3b716af19308",
4 "type": "sprite",
5 "wrapMode": "clamp",
6 "filterMode": "bilinear",
7 "premultiplyAlpha": false,
8 "platformSettings": {},
9 "subMetas": {
10 "3": {
11 "ver": "1.0.4",
12 "uuid": "57330949-d587-439b-b54a-d4a951b04b3f",
13 "rawTextureUuid": "9009b50c-a6e9-4eea-b016-3b716af19308",
14 "trimType": "auto",
15 "trimThreshold": 1,
16 "rotated": false,
17 "offsetX": 0,
18 "offsetY": 0,
19 "trimX": 0,
20 "trimY": 0,
21 "width": 51,
22 "height": 51,
23 "rawWidth": 51,
24 "rawHeight": 51,
25 "borderTop": 0,
26 "borderBottom": 0,
27 "borderLeft": 0,
28 "borderRight": 0,
29 "subMetas": {}
30 }
31 }
32 }
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "ver": "2.3.1",
3 "uuid": "56f3cca9-2ea8-4982-a749-08244c283d8e",
4 "type": "sprite",
5 "wrapMode": "clamp",
6 "filterMode": "bilinear",
7 "premultiplyAlpha": false,
8 "platformSettings": {},
9 "subMetas": {
10 "4": {
11 "ver": "1.0.4",
12 "uuid": "d9cd3cd3-7f7c-4094-9580-346e8b03a3b4",
13 "rawTextureUuid": "56f3cca9-2ea8-4982-a749-08244c283d8e",
14 "trimType": "auto",
15 "trimThreshold": 1,
16 "rotated": false,
17 "offsetX": -14,
18 "offsetY": 0,
19 "trimX": 1,
20 "trimY": 0,
21 "width": 16,
22 "height": 1,
23 "rawWidth": 46,
24 "rawHeight": 1,
25 "borderTop": 0,
26 "borderBottom": 0,
27 "borderLeft": 0,
28 "borderRight": 0,
29 "subMetas": {}
30 }
31 }
32 }
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "ver": "2.3.1",
3 "uuid": "53e675f3-1400-4b57-b9fc-6a3f6a65da90",
4 "type": "sprite",
5 "wrapMode": "clamp",
6 "filterMode": "bilinear",
7 "premultiplyAlpha": false,
8 "platformSettings": {},
9 "subMetas": {
10 "6": {
11 "ver": "1.0.4",
12 "uuid": "f976c075-cfeb-40be-8911-9eea7ed9b7bd",
13 "rawTextureUuid": "53e675f3-1400-4b57-b9fc-6a3f6a65da90",
14 "trimType": "auto",
15 "trimThreshold": 1,
16 "rotated": false,
17 "offsetX": 14,
18 "offsetY": 0,
19 "trimX": 29,
20 "trimY": 0,
21 "width": 16,
22 "height": 1,
23 "rawWidth": 46,
24 "rawHeight": 1,
25 "borderTop": 0,
26 "borderBottom": 0,
27 "borderLeft": 0,
28 "borderRight": 0,
29 "subMetas": {}
30 }
31 }
32 }
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "ver": "2.3.1",
3 "uuid": "3c0252ba-5da0-4511-8d70-05afc35020c0",
4 "type": "sprite",
5 "wrapMode": "clamp",
6 "filterMode": "bilinear",
7 "premultiplyAlpha": false,
8 "platformSettings": {},
9 "subMetas": {
10 "7": {
11 "ver": "1.0.4",
12 "uuid": "cac1da50-9322-4dd7-ad51-a4494493aceb",
13 "rawTextureUuid": "3c0252ba-5da0-4511-8d70-05afc35020c0",
14 "trimType": "auto",
15 "trimThreshold": 1,
16 "rotated": false,
17 "offsetX": 0,
18 "offsetY": 0,
19 "trimX": 0,
20 "trimY": 0,
21 "width": 51,
22 "height": 51,
23 "rawWidth": 51,
24 "rawHeight": 51,
25 "borderTop": 0,
26 "borderBottom": 0,
27 "borderLeft": 0,
28 "borderRight": 0,
29 "subMetas": {}
30 }
31 }
32 }
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "ver": "2.3.1",
3 "uuid": "8d4922f8-8db2-46a0-a7ba-3ecc252a9318",
4 "type": "sprite",
5 "wrapMode": "clamp",
6 "filterMode": "bilinear",
7 "premultiplyAlpha": false,
8 "platformSettings": {},
9 "subMetas": {
10 "8": {
11 "ver": "1.0.4",
12 "uuid": "86da34f4-416e-4542-be45-cebb63e5e69a",
13 "rawTextureUuid": "8d4922f8-8db2-46a0-a7ba-3ecc252a9318",
14 "trimType": "auto",
15 "trimThreshold": 1,
16 "rotated": false,
17 "offsetX": 0,
18 "offsetY": -16,
19 "trimX": 0,
20 "trimY": 32,
21 "width": 1,
22 "height": 14,
23 "rawWidth": 1,
24 "rawHeight": 46,
25 "borderTop": 0,
26 "borderBottom": 0,
27 "borderLeft": 0,
28 "borderRight": 0,
29 "subMetas": {}
30 }
31 }
32 }
...\ No newline at end of file ...\ No newline at end of file
No preview for this file type
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.