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
ab5a301e
Commit
ab5a301e
authored
Dec 12, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
fe633ef8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
JoinShareScene.ts
egret/src/yazuwei/JoinShareScene.ts
+9
-2
No files found.
egret/src/yazuwei/JoinShareScene.ts
View file @
ab5a301e
...
...
@@ -3,6 +3,7 @@ import Scene from "../views/Scene";
import
GameConst
from
"../GameConst"
;
import
{
NetManager
}
from
"../../libs/tw/manager/NetManager"
;
import
{
getlogItem
}
from
"./ConfirmPanel"
;
import
{
GFun
}
from
"../../libs/tc/util/GFun"
;
export
default
class
JoinShareScene
extends
Scene
{
protected
get
skinKey
()
{
return
'JoinShare'
}
...
...
@@ -29,7 +30,7 @@ export default class JoinShareScene extends Scene {
this
[
'sharemask'
].
visible
=
false
;
},
this
);
}
else
{
const
url
=
`
${
window
[
'indexUrl'
]}
?
wayId=3&joinTeamCode=
${
GameConst
.
getQueryString
(
"joinTeamCode"
)}
`
const
url
=
`
${
window
[
'indexUrl'
]}
?
joinTeamCode=
${
GameConst
.
getQueryString
(
"joinTeamCode"
)}
&wayId=3
`
deeplink
(
url
);
// PanelCtrl.instance.show(ModuleTypes.ConfirmPanel);
}
...
...
@@ -43,7 +44,13 @@ export default class JoinShareScene extends Scene {
export
const
deeplink
=
(
activeUrl
)
=>
{
let
state
=
false
;
const
url
=
'esports://openapp?url=http://aghzact.zjkczn.com/h5/defaultActive.html?activeUrl='
+
encodeURIComponent
(
activeUrl
);
let
url
;
if
(
GFun
.
isIOS
)
{
url
=
'esports://openapp?url=http://aghzact.zjkczn.com/h5/defaultActive.html?activeUrl='
+
encodeURIComponent
(
activeUrl
);
}
else
{
url
=
'esports://openapp?url=http://aghzact.zjkczn.com/h5/defaultActive.html?activeUrl='
+
encodeURIComponent
(
encodeURIComponent
(
activeUrl
));
}
console
.
log
(
url
)
window
.
location
.
href
=
url
;
state
=
true
;
...
...
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