Commit 5d8dabea authored by haiyoucuv's avatar haiyoucuv

init

parent 0277c4cf
...@@ -124,8 +124,7 @@ class Store { ...@@ -124,8 +124,7 @@ class Store {
this.inviteInfo.inviteCode = genCodeData.inviteCode; this.inviteInfo.inviteCode = genCodeData.inviteCode;
} }
this.inviteInfo.shareUrl = `${location.origin}${location.pathname}` this.inviteInfo.shareUrl = this.frontVariable.loginUrl
+ `?appID=${getUrlParams("appID")}`
+ `&inviteCode=${genCodeData.inviteCode}`; + `&inviteCode=${genCodeData.inviteCode}`;
const path = "package/pages/common-activity/index" + const path = "package/pages/common-activity/index" +
......
...@@ -36,7 +36,7 @@ export class Start extends Component{ ...@@ -36,7 +36,7 @@ export class Start extends Component{
@property(Label) @property(Label)
progressTxt: Label = null; progressTxt: Label = null;
onLoad() { async onLoad() {
// game.frameRate = _FPS; // game.frameRate = _FPS;
// 预览调试时,显示性能统计面板 // 预览调试时,显示性能统计面板
...@@ -50,8 +50,8 @@ export class Start extends Component{ ...@@ -50,8 +50,8 @@ export class Start extends Component{
MusicBtn.open = localStorage.getItem("MusicStatus") != "false"; MusicBtn.open = localStorage.getItem("MusicStatus") != "false";
// MusicBtn.open = false; // MusicBtn.open = false;
store.updateFrontVariable(); await store.updateFrontVariable();
store.genInviteInfo(); await store.genInviteInfo();
} }
......
...@@ -4,37 +4,8 @@ ...@@ -4,37 +4,8 @@
"code": null, "code": null,
"timeStamp": 1703644343317, "timeStamp": 1703644343317,
"data": { "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\"}", "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" "appKey": "3wpbSzXKT11j49nkbKxh2zHdfR1a"
} }
} }
\ No newline at end of file
...@@ -3,10 +3,10 @@ ...@@ -3,10 +3,10 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>Title</title> <title>Title</title>
<!-- <script--> <!-- <script-->
<!-- src="https://yun.duiba.com.cn/polaris/zepto.min.f5f743714a5ee209f7451ba74d0ce24dbefb1d27.js"--> <!-- src="https://yun.duiba.com.cn/polaris/zepto.min.f5f743714a5ee209f7451ba74d0ce24dbefb1d27.js"-->
<!-- crossorigin="anonymous"--> <!-- crossorigin="anonymous"-->
<!-- ></script>--> <!-- ></script>-->
</head> </head>
<body> <body>
...@@ -20,25 +20,32 @@ ...@@ -20,25 +20,32 @@
var token = getUrlParam("token"); var token = getUrlParam("token");
var userId = getUrlParam("userId"); var userId = getUrlParam("userId");
var inviteCode = getUrlParam("inviteCode");
// 测试 // 测试
var cfg = { var config = {
loginUrl: "https://activity.m.duibatest.com.cn/customActivity/lshm/autoLogin", loginUrl: "https://activity.m.duibatest.com.cn/customActivity/lshm/autoLogin",
redirectUrl: "https://activity.m.duibatest.com.cn", redirectUrl: "http://activity.m.duibatest.com.cn/projectx/pd260352d/index.html?appID=19847",
}; };
cfg.inviteCode = getUrlParam("inviteCode")
// 生产 // 生产
// var cfg = { // var config = {
// loginUrl: "https://activity.m.duiba.com.cn/customActivity/lshm/autoLogin", // loginUrl: "https://activity.m.duiba.com.cn/customActivity/lshm/autoLogin",
// redirectUrl: "https://activity.m.duibatest.com.cn", // 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 + "?token=" + token +
"&userId=" + userId + "&userId=" + userId +
"&redirectUrl=" + cfg.redirectUrl; "&redirectUrl=" + config.redirectUrl;
</script> </script>
</body> </body>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment