Commit bf345ca4 authored by 李维's avatar 李维

feat: 更新背景图

parent f9639a72
{
"ver": "2.3.5",
"uuid": "4973a04b-208c-4312-9e02-15621ff127f3",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 132,
"height": 132,
"platformSettings": {},
"subMetas": {
"btn_return": {
"ver": "1.0.4",
"uuid": "a8fcc889-aaa6-4476-b09b-c97850517c48",
"rawTextureUuid": "4973a04b-208c-4312-9e02-15621ff127f3",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": -1,
"trimX": 2,
"trimY": 2,
"width": 128,
"height": 130,
"rawWidth": 132,
"rawHeight": 132,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "29214da6-f773-456d-a74b-e18ede916e6d", "uuid": "66a73419-c675-4d36-ab5d-a66348917e83",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
"premultiplyAlpha": false, "premultiplyAlpha": false,
"genMipmaps": false, "genMipmaps": false,
"packable": true, "packable": true,
"width": 1920, "width": 68,
"height": 1080, "height": 68,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"bg_bg": { "icon_back": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "c8ab631d-9bb9-4c80-aba5-4b643cfa2e18", "uuid": "c45ab752-4f74-431a-addb-8f82a877e9d4",
"rawTextureUuid": "29214da6-f773-456d-a74b-e18ede916e6d", "rawTextureUuid": "66a73419-c675-4d36-ab5d-a66348917e83",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
...@@ -22,10 +22,10 @@ ...@@ -22,10 +22,10 @@
"offsetY": 0, "offsetY": 0,
"trimX": 0, "trimX": 0,
"trimY": 0, "trimY": 0,
"width": 1920, "width": 68,
"height": 1080, "height": 68,
"rawWidth": 1920, "rawWidth": 68,
"rawHeight": 1080, "rawHeight": 68,
"borderTop": 0, "borderTop": 0,
"borderBottom": 0, "borderBottom": 0,
"borderLeft": 0, "borderLeft": 0,
......
...@@ -75,19 +75,19 @@ ...@@ -75,19 +75,19 @@
"__id__": 5 "__id__": 5
}, },
{ {
"__id__": 7 "__id__": 8
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{
"__id__": 12
},
{ {
"__id__": 13 "__id__": 13
}, },
{ {
"__id__": 14 "__id__": 14
},
{
"__id__": 15
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -248,15 +248,18 @@ ...@@ -248,15 +248,18 @@
"_components": [ "_components": [
{ {
"__id__": 6 "__id__": 6
},
{
"__id__": 7
} }
], ],
"_prefab": null, "_prefab": null,
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 255, "r": 248,
"g": 255, "g": 246,
"b": 255, "b": 239,
"a": 255 "a": 255
}, },
"_contentSize": { "_contentSize": {
...@@ -314,10 +317,10 @@ ...@@ -314,10 +317,10 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "c8ab631d-9bb9-4c80-aba5-4b643cfa2e18" "__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 1, "_sizeMode": 0,
"_fillType": 0, "_fillType": 0,
"_fillCenter": { "_fillCenter": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -330,6 +333,33 @@ ...@@ -330,6 +333,33 @@
"_atlas": null, "_atlas": null,
"_id": "39QooNuGdCmrIp8MDNJn8k" "_id": "39QooNuGdCmrIp8MDNJn8k"
}, },
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 45,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 1920,
"_originalHeight": 1080,
"_id": "cazryhJ/ZJoYG3+l8yK2tA"
},
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "back_btn", "_name": "back_btn",
...@@ -340,14 +370,14 @@ ...@@ -340,14 +370,14 @@
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{
"__id__": 8
},
{ {
"__id__": 9 "__id__": 9
}, },
{ {
"__id__": 10 "__id__": 10
},
{
"__id__": 11
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -361,8 +391,8 @@ ...@@ -361,8 +391,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 84, "width": 68,
"height": 84 "height": 68
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -403,7 +433,7 @@ ...@@ -403,7 +433,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 7 "__id__": 8
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -414,7 +444,7 @@ ...@@ -414,7 +444,7 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "a8fcc889-aaa6-4476-b09b-c97850517c48" "__uuid__": "c45ab752-4f74-431a-addb-8f82a877e9d4"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 0, "_sizeMode": 0,
...@@ -435,15 +465,15 @@ ...@@ -435,15 +465,15 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 7 "__id__": 8
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
"_target": null, "_target": null,
"_alignFlags": 9, "_alignFlags": 9,
"_left": 50, "_left": 58,
"_right": 0, "_right": 0,
"_top": 50, "_top": 58,
"_bottom": 0, "_bottom": 0,
"_verticalCenter": 0, "_verticalCenter": 0,
"_horizontalCenter": 0, "_horizontalCenter": 0,
...@@ -462,7 +492,7 @@ ...@@ -462,7 +492,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 7 "__id__": 8
}, },
"_enabled": true, "_enabled": true,
"_normalMaterial": null, "_normalMaterial": null,
...@@ -471,7 +501,7 @@ ...@@ -471,7 +501,7 @@
"zoomScale": 1.2, "zoomScale": 1.2,
"clickEvents": [ "clickEvents": [
{ {
"__id__": 11 "__id__": 12
} }
], ],
"_N$interactable": true, "_N$interactable": true,
...@@ -527,7 +557,7 @@ ...@@ -527,7 +557,7 @@
"hoverSprite": null, "hoverSprite": null,
"_N$disabledSprite": null, "_N$disabledSprite": null,
"_N$target": { "_N$target": {
"__id__": 7 "__id__": 8
}, },
"_id": "9070kAWoFNx6i0chGOvL8F" "_id": "9070kAWoFNx6i0chGOvL8F"
}, },
......
...@@ -91,7 +91,7 @@ export default class middleLayer extends cc.Component { ...@@ -91,7 +91,7 @@ export default class middleLayer extends cc.Component {
callBack((responseData.data)); callBack((responseData.data));
} }
}; };
const url = `${this.baseUrl}${uri}${queryStr}`; const url = `${this.BASE_URL}${uri}${queryStr}`;
console.log('url = ' + url); console.log('url = ' + url);
xhr.open('GET', url, true); xhr.open('GET', url, true);
xhr.send(); xhr.send();
...@@ -99,7 +99,7 @@ export default class middleLayer extends cc.Component { ...@@ -99,7 +99,7 @@ export default class middleLayer extends cc.Component {
callNetworkApiPost(uri, data, callBack) { callNetworkApiPost(uri, data, callBack) {
const xhr = new XMLHttpRequest(); const xhr = new XMLHttpRequest();
const url = `${this.baseUrl}${uri}`; const url = `${this.BASE_URL}${uri}`;
xhr.open("POST", url, true); xhr.open("POST", url, true);
xhr.setRequestHeader('content-type', 'application/json'); xhr.setRequestHeader('content-type', 'application/json');
xhr.onreadystatechange = () => { xhr.onreadystatechange = () => {
...@@ -151,7 +151,7 @@ export default class middleLayer extends cc.Component { ...@@ -151,7 +151,7 @@ export default class middleLayer extends cc.Component {
}); });
} }
start() { async start() {
console.log("on midlleLayer start"); console.log("on midlleLayer start");
// 节点放到最上层 // 节点放到最上层
this.node.zIndex = 9999; this.node.zIndex = 9999;
...@@ -205,6 +205,8 @@ export default class middleLayer extends cc.Component { ...@@ -205,6 +205,8 @@ export default class middleLayer extends cc.Component {
// 运行主场景 // 运行主场景
this.runMainScene(); this.runMainScene();
await this.getGameList();
// this.homework_id = homework_id; // this.homework_id = homework_id;
// this.syllabus_id = syllabus_id; // this.syllabus_id = syllabus_id;
// this.role = role; // this.role = role;
...@@ -231,6 +233,15 @@ export default class middleLayer extends cc.Component { ...@@ -231,6 +233,15 @@ export default class middleLayer extends cc.Component {
// token.string = this.token; // token.string = this.token;
} }
getGameList() {
const uri = '/api/courseware/v2/39657/list';
const course_id = 39657;
this.callNetworkApiGet(uri, {}, (data) => {
console.log('data', data);
});
}
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment