Commit 83daffdd authored by 范雪寒's avatar 范雪寒

feat: 培生趣鼠开屏页

parent cb96afe0
......@@ -17,7 +17,7 @@
"__id__": 2
},
{
"__id__": 10
"__id__": 13
}
],
"_active": true,
......@@ -76,18 +76,21 @@
},
{
"__id__": 5
},
{
"__id__": 7
}
],
"_active": true,
"_components": [
{
"__id__": 7
"__id__": 10
},
{
"__id__": 8
"__id__": 11
},
{
"__id__": 9
"__id__": 12
}
],
"_prefab": null,
......@@ -330,6 +333,162 @@
"_N$affectedByScale": false,
"_id": "29Y+oTmsNPB6uSBOKjIYkA"
},
{
"__type__": "cc.Node",
"_name": "welcome",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 8
}
],
"_active": true,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 2000,
"height": 1200
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "81BkZtZH5PyIX4DdJB5noW"
},
{
"__type__": "cc.Node",
"_name": "middleLayer_for_PSQS",
"_objFlags": 0,
"_parent": {
"__id__": 7
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 9
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 2000,
"height": 1200
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "bb8HNIma9I+ZsL75MyleQD"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "ee891320-3743-42a5-b4c8-31d986e4cbff"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "36AG+ndXNJRouyaJjjgy16"
},
{
"__type__": "cc.Canvas",
"_name": "",
......@@ -395,7 +554,7 @@
"_active": true,
"_components": [
{
"__id__": 11
"__id__": 14
}
],
"_prefab": null,
......@@ -451,7 +610,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
"__id__": 13
},
"_enabled": true,
"cacertFile": {
......
......@@ -10,6 +10,18 @@ cc.Class({
this.baseUrl = middleLayerData.baseUrl;
this.middleLayerName = middleLayerData.middleLayerName;
cc.debug.setDisplayStats(false);
const welcomeNode = cc.find(`Canvas/welcome/${this.middleLayerName}`);
if (welcomeNode) {
welcomeNode.active = true;
const canvas = cc.find('Canvas');
canvas.getComponent(cc.Widget).updateAlignment();
welcomeNode.scale = math.max(
canvas.width / welcomeNode.width,
canvas.height / welcomeNode.height
);
}
const uri = `/api/template/v1/${this.middleLayerName}`;
this.callNetworkApiGet(this.baseUrl, uri, {}, (respData) => {
......@@ -79,7 +91,7 @@ cc.Class({
} else {
return JSON.stringify({
baseUrl: "http://staging-openapi.iteachabc.com/",
middleLayerName: "middleLayer_for_NGT",
middleLayerName: "middleLayer_for_PSQS",
});
}
},
......
{
"ver": "2.3.5",
"uuid": "2d4fadbc-b6c0-4edd-9a0b-799b5553c02a",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 2280,
"height": 1242,
"platformSettings": {},
"subMetas": {
"welcome": {
"ver": "1.0.4",
"uuid": "ee891320-3743-42a5-b4c8-31d986e4cbff",
"rawTextureUuid": "2d4fadbc-b6c0-4edd-9a0b-799b5553c02a",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 2280,
"height": 1242,
"rawWidth": 2280,
"rawHeight": 1242,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
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