Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
db-game-template
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
崔立强
db-game-template
Commits
189e5c8e
Commit
189e5c8e
authored
Dec 11, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
198ed8fb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
3 deletions
+19
-3
index.html
egret/index.html
+1
-1
ShareDreamScene.ts
egret/src/ShareDreamScene.ts
+18
-2
No files found.
egret/index.html
View file @
189e5c8e
...
@@ -48,7 +48,7 @@
...
@@ -48,7 +48,7 @@
window
[
'rule'
]
=
'1111<br>2222'
;
window
[
'rule'
]
=
'1111<br>2222'
;
window
[
'projectID'
]
=
'p32804e45'
;
window
[
'projectID'
]
=
'p32804e45'
;
// window.firstScene='admin';
// window.firstScene='admin';
//
window.firstScene='invite';
window
.
firstScene
=
'invite'
;
window
[
'renderMode'
]
=
'webgl'
;
window
[
'renderMode'
]
=
'webgl'
;
window
[
'development'
]
=
true
;
window
[
'development'
]
=
true
;
var
gameId
=
1
;
var
gameId
=
1
;
...
...
egret/src/ShareDreamScene.ts
View file @
189e5c8e
...
@@ -39,13 +39,29 @@ export default class ShareDreamScene extends Scene {
...
@@ -39,13 +39,29 @@ export default class ShareDreamScene extends Scene {
this
[
'shareLayer'
].
visible
=
false
;
this
[
'shareLayer'
].
visible
=
false
;
},
this
);
},
this
);
}
else
{
}
else
{
let
state
=
false
;
console
.
log
(
'唤起app'
);
console
.
log
(
'唤起app'
);
state
=
true
;
const
url
=
'esports://openapp?url=http://aghzact.zjkczn.com/h5/defaultActive.html?activeUrl='
+
encodeURIComponent
(
window
[
'activeUrl'
]);
const
url
=
'esports://openapp?url=http://aghzact.zjkczn.com/h5/defaultActive.html?activeUrl='
+
encodeURIComponent
(
window
[
'activeUrl'
]);
window
.
location
.
href
=
url
;
window
.
location
.
href
=
url
;
setTimeout
(()
=>
{
let
timer
=
setTimeout
(()
=>
{
state
=
false
;
window
.
location
.
href
=
'http://a.app.qq.com/o/simple.jsp?pkgname=com.fan.asiangameshz'
;
window
.
location
.
href
=
'http://a.app.qq.com/o/simple.jsp?pkgname=com.fan.asiangameshz'
;
},
2000
);
},
3000
);
// 唤端成功清除定时器
document
.
addEventListener
(
'visibilitychange'
,
function
()
{
if
(
document
.
visibilityState
===
'hidden'
)
{
if
(
state
)
{
if
(
timer
)
{
clearTimeout
(
timer
)
timer
=
null
;
}
state
=
false
;
}
}
});
}
}
}
}
...
...
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