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",
"uuid": "29214da6-f773-456d-a74b-e18ede916e6d",
"uuid": "66a73419-c675-4d36-ab5d-a66348917e83",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1920,
"height": 1080,
"width": 68,
"height": 68,
"platformSettings": {},
"subMetas": {
"bg_bg": {
"icon_back": {
"ver": "1.0.4",
"uuid": "c8ab631d-9bb9-4c80-aba5-4b643cfa2e18",
"rawTextureUuid": "29214da6-f773-456d-a74b-e18ede916e6d",
"uuid": "c45ab752-4f74-431a-addb-8f82a877e9d4",
"rawTextureUuid": "66a73419-c675-4d36-ab5d-a66348917e83",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......@@ -22,10 +22,10 @@
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1920,
"height": 1080,
"rawWidth": 1920,
"rawHeight": 1080,
"width": 68,
"height": 68,
"rawWidth": 68,
"rawHeight": 68,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
......
......@@ -75,19 +75,19 @@
"__id__": 5
},
{
"__id__": 7
"__id__": 8
}
],
"_active": true,
"_components": [
{
"__id__": 12
},
{
"__id__": 13
},
{
"__id__": 14
},
{
"__id__": 15
}
],
"_prefab": null,
......@@ -248,15 +248,18 @@
"_components": [
{
"__id__": 6
},
{
"__id__": 7
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"r": 248,
"g": 246,
"b": 239,
"a": 255
},
"_contentSize": {
......@@ -314,10 +317,10 @@
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "c8ab631d-9bb9-4c80-aba5-4b643cfa2e18"
"__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91"
},
"_type": 0,
"_sizeMode": 1,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
......@@ -330,6 +333,33 @@
"_atlas": null,
"_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",
"_name": "back_btn",
......@@ -340,14 +370,14 @@
"_children": [],
"_active": true,
"_components": [
{
"__id__": 8
},
{
"__id__": 9
},
{
"__id__": 10
},
{
"__id__": 11
}
],
"_prefab": null,
......@@ -361,8 +391,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 84,
"height": 84
"width": 68,
"height": 68
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -403,7 +433,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
"__id__": 8
},
"_enabled": true,
"_materials": [
......@@ -414,7 +444,7 @@
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "a8fcc889-aaa6-4476-b09b-c97850517c48"
"__uuid__": "c45ab752-4f74-431a-addb-8f82a877e9d4"
},
"_type": 0,
"_sizeMode": 0,
......@@ -435,15 +465,15 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
"__id__": 8
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 9,
"_left": 50,
"_left": 58,
"_right": 0,
"_top": 50,
"_top": 58,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
......@@ -462,7 +492,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
"__id__": 8
},
"_enabled": true,
"_normalMaterial": null,
......@@ -471,7 +501,7 @@
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 11
"__id__": 12
}
],
"_N$interactable": true,
......@@ -527,7 +557,7 @@
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": {
"__id__": 7
"__id__": 8
},
"_id": "9070kAWoFNx6i0chGOvL8F"
},
......
......@@ -91,7 +91,7 @@ export default class middleLayer extends cc.Component {
callBack((responseData.data));
}
};
const url = `${this.baseUrl}${uri}${queryStr}`;
const url = `${this.BASE_URL}${uri}${queryStr}`;
console.log('url = ' + url);
xhr.open('GET', url, true);
xhr.send();
......@@ -99,7 +99,7 @@ export default class middleLayer extends cc.Component {
callNetworkApiPost(uri, data, callBack) {
const xhr = new XMLHttpRequest();
const url = `${this.baseUrl}${uri}`;
const url = `${this.BASE_URL}${uri}`;
xhr.open("POST", url, true);
xhr.setRequestHeader('content-type', 'application/json');
xhr.onreadystatechange = () => {
......@@ -151,7 +151,7 @@ export default class middleLayer extends cc.Component {
});
}
start() {
async start() {
console.log("on midlleLayer start");
// 节点放到最上层
this.node.zIndex = 9999;
......@@ -205,6 +205,8 @@ export default class middleLayer extends cc.Component {
// 运行主场景
this.runMainScene();
await this.getGameList();
// this.homework_id = homework_id;
// this.syllabus_id = syllabus_id;
// this.role = role;
......@@ -231,6 +233,15 @@ export default class middleLayer extends cc.Component {
// 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