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
c6d85829
Commit
c6d85829
authored
Dec 07, 2019
by
XieChuanJin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1111
parent
da77b23e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
5 deletions
+28
-5
Main.ts
egret/src/Main.ts
+3
-5
t.html
t.html
+25
-0
No files found.
egret/src/Main.ts
View file @
c6d85829
...
...
@@ -123,11 +123,9 @@ class Main extends eui.UILayer {
this
.
btnGoto
.
onOnceTap
(
this
,
(
resume
)
=>
{
Buried
.
doClickBuried
(
8
);
let
url
=
MConfigs
.
toAppUrl
;
if
(
url
.
indexOf
(
"?"
)
>=
0
)
{
url
+=
"&assistItemId="
+
this
.
getAssistItemId
();
}
else
{
url
+=
"?assistItemId="
+
this
.
getAssistItemId
();
}
let
activityUrl
=
url
.
split
(
"MK_URL="
)[
1
].
split
(
"&MK_TYPE="
)[
0
];
let
param
=
encodeURIComponent
(
"?assistItemId="
+
this
.
getAssistItemId
());
url
=
url
.
replace
(
activityUrl
,
activityUrl
+
param
);
window
.
location
.
href
=
url
;
});
}
...
...
t.html
View file @
c6d85829
...
...
@@ -116,6 +116,31 @@
}
});
</script>
14:41
<script>
function
requirelogin
()
{
var
ua
=
navigator
.
userAgent
.
toLocaleLowerCase
();
if
(
ua
.
match
(
/android/
))
{
window
.
NEWClientJs
.
clearMenuDataBean
();
}
var
param
=
window
.
location
.
href
.
split
(
"assistItemId="
)[
1
].
split
(
"&"
)[
0
];
loginForComm
(
"https://activity.m.duiba.com.cn/customShare/share?id=3701"
,
"http://activity.m.duiba.com.cn/customActivity/cmbc/autoLogin/xmdxq"
+
param
?
"?assistItemId="
+
param
:
""
);
}
function
loginForComm
(
beforeUrl
,
toUrl
)
{
var
p
=
{
'beforeUrl'
:
beforeUrl
,
//跳转失败地址
'toUrl'
:
toUrl
//跳转地址
};
cmbcParams
=
p
;
setWebitEvent
(
"setFuncParams()"
,
"loginForComm"
);
}
</script>
</body>
</html>
\ No newline at end of file
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