Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Y
yyh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
wildfirecode13
yyh
Commits
48bb8422
Commit
48bb8422
authored
Dec 12, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
4d26669d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
23 deletions
+24
-23
index.html
egret/index.html
+1
-1
Main.ts
egret/src/Main.ts
+2
-5
TransScene.ts
egret/src/yazuwei/TransScene.ts
+21
-17
No files found.
egret/index.html
View file @
48bb8422
...
...
@@ -53,7 +53,7 @@
<script>
// window['pageID'] = 'TeamShareScene';
// window['pageID'] = 'JoinShareScene';
//
window['pageID'] = 'TransScene';
window
[
'pageID'
]
=
'TransScene'
;
// window['pageID'] = 'Share2Scene';
window
[
'TransLink'
]
=
''
;
window
[
'projectId'
]
=
"1"
;
...
...
egret/src/Main.ts
View file @
48bb8422
...
...
@@ -172,7 +172,7 @@ class Main extends MainBase {
if
(
window
[
'pageID'
])
{
Buried
.
init
();
Waiting
.
instance
.
hide
();
if
(
window
[
'pageID'
]
==
'Share2Scene'
)
{
...
...
@@ -185,14 +185,11 @@ class Main extends MainBase {
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
TeamShareScene
);
}
if
(
window
[
'pageID'
]
==
'TransScene'
)
{
yzwNet
.
homeBaseInfo
((
s
)
=>
{
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
TransScene
);
},
window
[
'projectId'
]);
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
TransScene
);
}
return
;
}
loadSvgaRes
(
getResPath
()
+
'resource/assets/svgas/standby.svga'
);
loadSvgaRes
(
getResPath
()
+
'resource/assets/svgas/trans.svga'
);
...
...
egret/src/yazuwei/TransScene.ts
View file @
48bb8422
...
...
@@ -22,13 +22,7 @@ export default class TransScene extends Scene {
constructor
(
data
)
{
super
();
yzwNet
.
accept
((
success
)
=>
{
if
(
success
)
{
}
else
{
location
.
href
=
window
[
'indexUrl'
];
}
},
window
[
'projectId'
],
GameConst
.
getQueryString
(
"shareCode"
));
this
.
initUI
(
data
);
...
...
@@ -37,6 +31,16 @@ export default class TransScene extends Scene {
}
async
initUI
(
data
)
{
this
[
'btn'
].
visible
=
false
;
yzwNet
.
accept
((
success
)
=>
{
if
(
success
)
{
yzwNet
.
homeBaseInfo
((
s
)
=>
{
this
[
'btn'
].
visible
=
true
;
},
window
[
'projectId'
]);
}
else
{
location
.
href
=
window
[
'indexUrl'
];
}
},
window
[
'projectId'
],
GameConst
.
getQueryString
(
"shareCode"
));
if
(
iswx
())
{
NetManager
.
ins
.
showLog
(
getlogItem
(
9
));
}
else
{
...
...
@@ -160,18 +164,18 @@ export default class TransScene extends Scene {
this
[
'shareTips'
].
visible
=
true
;
//进入页面后发送确认消息
// yzwNet.accept((success) => {
// if (success) {
yzwNet
.
openPass
(()
=>
{
this
.
addShareEvent
();
},
window
[
'projectId'
],
GameConst
.
getQueryString
(
"shareCode"
))
// } else {
// location.href = window['indexUrl'];
// }
// if (success) {
yzwNet
.
openPass
(()
=>
{
this
.
addShareEvent
();
},
window
[
'projectId'
],
GameConst
.
getQueryString
(
"shareCode"
))
// } else {
// location.href = window['indexUrl'];
// }
// }, window['projectId'], GameConst.getQueryString("shareCode"));
setTimeout
(()
=>
{
this
.
onshake
();
},
3000
);
//
setTimeout(() => {
//
this.onshake();
//
}, 3000);
},
this
);
}
...
...
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