Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
MingSnake_241120
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
SparkProjects
MingSnake_241120
Commits
e6e1cabc
Commit
e6e1cabc
authored
Dec 27, 2024
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
b512e667
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
62 additions
and
7 deletions
+62
-7
shareStore.ts
assets/Scripts/store/shareStore.ts
+1
-1
免登页面.html
免登页面.html
+8
-6
很忙版免登正式.html
很忙版免登正式.html
+53
-0
No files found.
assets/Scripts/store/shareStore.ts
View file @
e6e1cabc
...
...
@@ -52,7 +52,7 @@ class ShareStore {
const
{
success
:
genQrSuc
,
data
:
genQrData
}
=
await
sendWebNet
(
WebNetName
.
genQrCode
,
{
path
:
path
,
type
:
type
,
envVersion
:
"trial"
//
envVersion: "trial"
});
if
(
genQrSuc
)
{
...
...
免登页面.html
View file @
e6e1cabc
...
...
@@ -2,7 +2,7 @@
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<title>
Title
</title>
<title>
零食贪吃蛇
</title>
<!-- <script-->
<!-- src="https://yun.duiba.com.cn/polaris/zepto.min.f5f743714a5ee209f7451ba74d0ce24dbefb1d27.js"-->
<!-- crossorigin="anonymous"-->
...
...
@@ -20,13 +20,13 @@
var
type
=
getUrlParam
(
"type"
)
||
"1"
;
var
token
=
getUrlParam
(
"token"
);
var
userId
=
getUrlParam
(
"user
I
d"
);
var
userId
=
getUrlParam
(
"user
i
d"
);
var
inviteCode
=
getUrlParam
(
"inviteCode"
);
// 测试
var
config
=
{
loginUrl
:
"https://
activity.m.duibatest
.com.cn/customActivity/lshm/autoLogin"
,
redirectUrl
:
"http
://activity.m.duibatest.com.cn/projectx/pd260352d/index.html?appID=19847
"
,
loginUrl
:
"https://
98112.activity-20.m.duiba
.com.cn/customActivity/lshm/autoLogin"
,
redirectUrl
:
"http
s://98112.activity-20.m.duiba.com.cn/projectx/p8ec64a64/index.html?appID=98112
"
,
};
// 生产
...
...
@@ -35,19 +35,21 @@
// redirectUrl: "https://activity.m.duibatest.com.cn",
// };
config
.
redirectUrl
+=
(
"&type="
+
type
);
if
(
inviteCode
)
{
config
.
redirectUrl
+=
(
"&inviteCode="
+
inviteCode
);
}
if
(
token
)
{
config
.
token
+=
(
"&taskToken="
+
token
);
config
.
redirectUrl
+=
(
"&taskToken="
+
token
);
}
location
.
href
=
config
.
loginUrl
+
"?token="
+
token
+
"&type="
+
type
+
"&userId="
+
userId
+
"&redirectUrl="
+
config
.
redirectUrl
;
"&redirectUrl="
+
encodeURIComponent
(
config
.
redirectUrl
)
;
</script>
</body>
...
...
很忙版免登正式.html
0 → 100644
View file @
e6e1cabc
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<title>
零食贪吃蛇
</title>
<!-- <script-->
<!-- src="https://yun.duiba.com.cn/polaris/zepto.min.f5f743714a5ee209f7451ba74d0ce24dbefb1d27.js"-->
<!-- crossorigin="anonymous"-->
<!-- ></script>-->
</head>
<body>
<script>
function
getUrlParam
(
name
)
{
var
search
=
window
.
location
.
search
;
var
matched
=
search
.
slice
(
1
).
match
(
new
RegExp
(
"(^|&)"
+
name
+
"=([^&]*)(&|$)"
,
"i"
));
return
search
.
length
?
matched
&&
matched
[
2
]
:
null
;
}
var
type
=
getUrlParam
(
"type"
)
||
"1"
;
var
token
=
getUrlParam
(
"token"
);
var
userId
=
getUrlParam
(
"userid"
);
var
inviteCode
=
getUrlParam
(
"inviteCode"
);
var
config
=
{
loginUrl
:
"https://98112.activity-20.m.duiba.com.cn/customActivity/lshm/autoLogin"
,
};
// TODO 1是赵一鸣 2是零食很忙
var
projectId
=
(
+
type
==
1
)
?
"p498c9217"
:
"p840c6a47"
;
config
.
redirectUrl
=
"https://98112.activity-20.m.duiba.com.cn/projectx/"
+
projectId
+
"/index.html?appID=98112"
;
config
.
redirectUrl
+=
(
"&type="
+
type
);
if
(
inviteCode
)
{
config
.
redirectUrl
+=
(
"&inviteCode="
+
inviteCode
);
}
if
(
token
)
{
config
.
redirectUrl
+=
(
"&taskToken="
+
token
);
}
location
.
href
=
config
.
loginUrl
+
"?token="
+
token
+
"&type="
+
type
+
"&userId="
+
userId
+
"&redirectUrl="
+
encodeURIComponent
(
config
.
redirectUrl
);
</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