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
5d8dabea
Commit
5d8dabea
authored
Dec 10, 2024
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
0277c4cf
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
46 deletions
+23
-46
store.ts
assets/Scripts/store/store.ts
+1
-2
Start.ts
assets/Start/Start.ts
+3
-3
coop_frontVariable.query.json
preview-template/mock/coop_frontVariable.query.json
+1
-30
免登页面.html
免登页面.html
+18
-11
No files found.
assets/Scripts/store/store.ts
View file @
5d8dabea
...
...
@@ -124,8 +124,7 @@ class Store {
this
.
inviteInfo
.
inviteCode
=
genCodeData
.
inviteCode
;
}
this
.
inviteInfo
.
shareUrl
=
`
${
location
.
origin
}${
location
.
pathname
}
`
+
`?appID=
${
getUrlParams
(
"appID"
)}
`
this
.
inviteInfo
.
shareUrl
=
this
.
frontVariable
.
loginUrl
+
`&inviteCode=
${
genCodeData
.
inviteCode
}
`
;
const
path
=
"package/pages/common-activity/index"
+
...
...
assets/Start/Start.ts
View file @
5d8dabea
...
...
@@ -36,7 +36,7 @@ export class Start extends Component{
@
property
(
Label
)
progressTxt
:
Label
=
null
;
onLoad
()
{
async
onLoad
()
{
// game.frameRate = _FPS;
// 预览调试时,显示性能统计面板
...
...
@@ -50,8 +50,8 @@ export class Start extends Component{
MusicBtn
.
open
=
localStorage
.
getItem
(
"MusicStatus"
)
!=
"false"
;
// MusicBtn.open = false;
store
.
updateFrontVariable
();
store
.
genInviteInfo
();
await
store
.
updateFrontVariable
();
await
store
.
genInviteInfo
();
}
...
...
preview-template/mock/coop_frontVariable.query.json
View file @
5d8dabea
...
...
@@ -4,37 +4,8 @@
"code"
:
null
,
"timeStamp"
:
1703644343317
,
"data"
:
{
"taskBrowseImgs"
:
[
{
"image"
:
"https://yun.duiba.com.cn/db_games/ccc_game/template3d/1706506885162/remote/resources/native/0c/0c9b83b7-a00d-47e6-8d95-52e5411a99d4.png"
},
{
"image"
:
"//yun.duiba.com.cn/polaris/1.7daf1cf068b7ed6f80c9bff91236be64624d5ac6.png"
},
{
"image"
:
"https://yun.duiba.com.cn/db_games/ccc_game/template3d/1706506885162/remote/main/native/a8/a89ad700-12a7-4040-94a9-54d0e5048ead.jpg"
}
],
"posterImgs"
:
[
{
"image"
:
"//yun.duiba.com.cn/polaris/poster1.ec41a3aeb83592c3e88901a10cb17106ef17406a.png"
,
"level"
:
"1"
},
{
"image"
:
"https://yun.duiba.com.cn/spark/assets/f77861647e7b55e9c95e9c49d891a21526157a76.jpg"
,
"level"
:
"2"
},
{
"image"
:
"https://yun.duiba.com.cn/db_games/ccc_game/template3d/1706506885162/remote/main/native/1c/1cfbed76f.png"
,
"level"
:
"3"
},
{
"image"
:
"https://yun.duiba.com.cn/db_games/ccc_game/template3d/1706506885162/remote/resources/native/0c/0c9b83b7-a00d-47e6-8d95-52e5411a99d4.png"
,
"level"
:
"1"
}
],
"shareInfo"
:
"{
\"
title
\"
:
\"
分享标题
\"
,
\"
content
\"
:
\"
分享描述
\"
,
\"
thumbnail
\"
:
\"
https://yun.duiba.com.cn/polaris/share.dbc0a949487ba41cacc4dca4fb6254238f223a61.png
\"
,
\"
game_title
\"
:
\"
游戏去炫耀-分享标题
\"
,
\"
game_content
\"
:
\"
游戏去炫耀-分享描述
\"
,
\"
game_thumbnail
\"
:
\"
https://yun.duiba.com.cn/polaris/share.dbc0a949487ba41cacc4dca4fb6254238f223a61.png
\"
}"
,
"
shareOrigin"
:
"https://activity.m.duiba.com.cn
"
,
"
loginUrl"
:
"https://activity.m.duiba.com.cn/customShare/share?id=Did1NTg5NTE
"
,
"appKey"
:
"3wpbSzXKT11j49nkbKxh2zHdfR1a"
}
}
\ No newline at end of file
免登页面.html
View file @
5d8dabea
...
...
@@ -3,10 +3,10 @@
<head>
<meta
charset=
"UTF-8"
>
<title>
Title
</title>
<!-- <script-->
<!-- src="https://yun.duiba.com.cn/polaris/zepto.min.f5f743714a5ee209f7451ba74d0ce24dbefb1d27.js"-->
<!-- crossorigin="anonymous"-->
<!-- ></script>-->
<!-- <script-->
<!-- src="https://yun.duiba.com.cn/polaris/zepto.min.f5f743714a5ee209f7451ba74d0ce24dbefb1d27.js"-->
<!-- crossorigin="anonymous"-->
<!-- ></script>-->
</head>
<body>
...
...
@@ -20,25 +20,32 @@
var
token
=
getUrlParam
(
"token"
);
var
userId
=
getUrlParam
(
"userId"
);
var
inviteCode
=
getUrlParam
(
"inviteCode"
);
// 测试
var
c
f
g
=
{
var
c
onfi
g
=
{
loginUrl
:
"https://activity.m.duibatest.com.cn/customActivity/lshm/autoLogin"
,
redirectUrl
:
"http
s://activity.m.duibatest.com.cn
"
,
redirectUrl
:
"http
://activity.m.duibatest.com.cn/projectx/pd260352d/index.html?appID=19847
"
,
};
cfg
.
inviteCode
=
getUrlParam
(
"inviteCode"
)
// 生产
// var c
f
g = {
// var c
onfi
g = {
// loginUrl: "https://activity.m.duiba.com.cn/customActivity/lshm/autoLogin",
// redirectUrl: "https://activity.m.duibatest.com.cn",
// };
location
.
href
=
cfg
.
loginUrl
+
if
(
inviteCode
)
{
config
.
redirectUrl
+=
(
"&inviteCode="
+
inviteCode
);
}
if
(
token
)
{
config
.
token
+=
(
"&taskToken="
+
token
);
}
location
.
href
=
config
.
loginUrl
+
"?token="
+
token
+
"&userId="
+
userId
+
"&redirectUrl="
+
c
f
g
.
redirectUrl
;
"&redirectUrl="
+
c
onfi
g
.
redirectUrl
;
</script>
</body>
...
...
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