Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
middleLayer_for_jxw_demo
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
middleLayer_for_jxw_demo
Commits
bf345ca4
Commit
bf345ca4
authored
Aug 21, 2025
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 更新背景图
parent
f9639a72
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
76 additions
and
71 deletions
+76
-71
bg_bg.jpeg
...ddleLayer_for_jxw_demo/pages/gamecenter/assets/bg_bg.jpeg
+0
-0
btn_return.png
...Layer_for_jxw_demo/pages/gamecenter/assets/btn_return.png
+0
-0
btn_return.png.meta
..._for_jxw_demo/pages/gamecenter/assets/btn_return.png.meta
+0
-36
icon_back.png
...eLayer_for_jxw_demo/pages/gamecenter/assets/icon_back.png
+0
-0
icon_back.png.meta
...r_for_jxw_demo/pages/gamecenter/assets/icon_back.png.meta
+10
-10
gamecenter.fire
...middleLayer_for_jxw_demo/pages/gamecenter/gamecenter.fire
+52
-22
middleLayer.ts
assets/middleLayer_for_jxw_demo/script/middleLayer.ts
+14
-3
No files found.
assets/middleLayer_for_jxw_demo/pages/gamecenter/assets/bg_bg.jpeg
deleted
100644 → 0
View file @
f9639a72
65.3 KB
assets/middleLayer_for_jxw_demo/pages/gamecenter/assets/btn_return.png
deleted
100644 → 0
View file @
f9639a72
3.89 KB
assets/middleLayer_for_jxw_demo/pages/gamecenter/assets/btn_return.png.meta
deleted
100644 → 0
View file @
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
assets/middleLayer_for_jxw_demo/pages/gamecenter/assets/icon_back.png
0 → 100644
View file @
bf345ca4
944 Bytes
assets/middleLayer_for_jxw_demo/pages/gamecenter/assets/
bg_bg.jpe
g.meta
→
assets/middleLayer_for_jxw_demo/pages/gamecenter/assets/
icon_back.pn
g.meta
View file @
bf345ca4
{
"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": "c
8ab631d-9bb9-4c80-aba5-4b643cfa2e18
",
"rawTextureUuid": "
29214da6-f773-456d-a74b-e18ede916e6d
",
"uuid": "c
45ab752-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,
...
...
assets/middleLayer_for_jxw_demo/pages/gamecenter/gamecenter.fire
View file @
bf345ca4
...
...
@@ -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": 2
55
,
"g": 2
55
,
"b": 2
55
,
"r": 2
48
,
"g": 2
46
,
"b": 2
39
,
"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": 5
0
,
"_left": 5
8
,
"_right": 0,
"_top": 5
0
,
"_top": 5
8
,
"_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__": 1
1
"__id__": 1
2
}
],
"_N$interactable": true,
...
...
@@ -527,7 +557,7 @@
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": {
"__id__":
7
"__id__":
8
},
"_id": "9070kAWoFNx6i0chGOvL8F"
},
...
...
assets/middleLayer_for_jxw_demo/script/middleLayer.ts
View file @
bf345ca4
...
...
@@ -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
);
});
}
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment