Commit e6e1cabc authored by haiyoucuv's avatar haiyoucuv

init

parent b512e667
...@@ -52,7 +52,7 @@ class ShareStore { ...@@ -52,7 +52,7 @@ class ShareStore {
const { success: genQrSuc, data: genQrData } = await sendWebNet(WebNetName.genQrCode, { const { success: genQrSuc, data: genQrData } = await sendWebNet(WebNetName.genQrCode, {
path: path, path: path,
type: type, type: type,
envVersion: "trial" // envVersion: "trial"
}); });
if (genQrSuc) { if (genQrSuc) {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<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"-->
...@@ -20,13 +20,13 @@ ...@@ -20,13 +20,13 @@
var type = getUrlParam("type") || "1"; var type = getUrlParam("type") || "1";
var token = getUrlParam("token"); var token = getUrlParam("token");
var userId = getUrlParam("userId"); var userId = getUrlParam("userid");
var inviteCode = getUrlParam("inviteCode"); var inviteCode = getUrlParam("inviteCode");
// 测试 // 测试
var config = { var config = {
loginUrl: "https://activity.m.duibatest.com.cn/customActivity/lshm/autoLogin", loginUrl: "https://98112.activity-20.m.duiba.com.cn/customActivity/lshm/autoLogin",
redirectUrl: "http://activity.m.duibatest.com.cn/projectx/pd260352d/index.html?appID=19847", redirectUrl: "https://98112.activity-20.m.duiba.com.cn/projectx/p8ec64a64/index.html?appID=98112",
}; };
// 生产 // 生产
...@@ -35,19 +35,21 @@ ...@@ -35,19 +35,21 @@
// redirectUrl: "https://activity.m.duibatest.com.cn", // redirectUrl: "https://activity.m.duibatest.com.cn",
// }; // };
config.redirectUrl += ("&type=" + type);
if (inviteCode) { if (inviteCode) {
config.redirectUrl += ("&inviteCode=" + inviteCode); config.redirectUrl += ("&inviteCode=" + inviteCode);
} }
if (token) { if (token) {
config.token += ("&taskToken=" + token); config.redirectUrl += ("&taskToken=" + token);
} }
location.href = config.loginUrl + location.href = config.loginUrl +
"?token=" + token + "?token=" + token +
"&type=" + type + "&type=" + type +
"&userId=" + userId + "&userId=" + userId +
"&redirectUrl=" + config.redirectUrl; "&redirectUrl=" + encodeURIComponent(config.redirectUrl);
</script> </script>
</body> </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