Commit e6e1cabc authored by haiyoucuv's avatar haiyoucuv

init

parent b512e667
......@@ -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) {
......
......@@ -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("userId");
var userId = getUrlParam("userid");
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: "https://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>
......
<!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
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