commit | author | age
|
7acec9
|
1 |
<!DOCTYPE html>
|
L |
2 |
<html>
|
|
3 |
<head>
|
|
4 |
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
|
|
5 |
<meta charset="UTF-8">
|
|
6 |
<title>社交渠道</title>
|
|
7 |
<meta name="viewport" content="width=device-width,initial-scale=1.0, maximum-scale = 1.0,user-scalable=no" />
|
|
8 |
<meta name="format-detection" content="telephone=no" />
|
|
9 |
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
10 |
<style>
|
|
11 |
*{margin:0;padding:0}
|
|
12 |
.header{text-align:center;height:44px;background:-webkit-gradient(linear,0 0,0 100%,from(#4c4c4c),to(#313131));border-top:#5b5b5b 1px solid;position:relative;line-height:44px}
|
|
13 |
.header h1{color:#fff;font-weight:bold;font-size:20px}
|
|
14 |
.header a{width:49px;height:29px;background-size:49px 29px;position:absolute;top:7px;display:block;text-indent:-999em;cursor:pointer}
|
|
15 |
.header .back{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEkAAAAsCAYAAAApSpU1AAAFgElEQVR42u2bSWgsRRjH40XEg3rwIujBg6KCp4CH7AnZ933f9z0hK7kk8RCEhCwEMTmID81C8JIVQRJEfGQ5PEwOnpKDh+T0nomCGngolvUrpsaeYWbSnel5ODOv4Jfp/mrpqv9UffV1TyciwqYUGRn5keRjydeS7yWPgogfJOuSVsnrEXYn2ei7ku+Sk5NFZWWlaG1tFd3d3aK/vz9o6OnpES0tLaKoqEjIsfwu6bNToDzJbU1NjRgbGxPDw8NiYGAgqATSDA4OitHRUXXsEGvJDoEqJX8zcxCG2dPR0SHa2tqCkvb2dtHZ2Sl6e3vFyMiIKCwsRKgufwTKlTxFIKYqF2G6Njc3Bz2MA7EQTY7xRvLafQR6X/JHY2OjaoxGm5qaQgrEYlXk5OQgVJtVgV6W/FRRUaEEorFQE8goVFlZGSI9sCrS5wUFBaKrq0s1wmwKZZgMcsz7VgQqyszMVA4apRsaGkKe8vJyRHpoVqA3J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rX5cnxd3xvp6emmHt+OxsbGKi8fjpgVSQWa7Hg4sXCDJyJmfy1RgWZiYqJyZOEEwbWVHydVoMmLWjizcIGNy7RIDqGqoqOjn4tkQqjPYmJilEMLB1g5ll6YcIj0kuRHHDlOLdTBD8vxfnGfl7jekfzGrUuoi8SqkWNtue/rgASaT1GaHSAU4bZMjvEJP7H5895kueSv+Ph45eBCjaioKERqsuMN3HTeeyYqDxVxmEEOgebtfJf7bcmu5B9CBJw6syvYoN8OcX7lPwMiApFkw+9JhiRfSb5h6wwyvpQ0evJB/wIFDhaTvqlwnwAAAABJRU5ErkJggg==);left:5px}
|
|
16 |
</style>
|
|
17 |
</head>
|
|
18 |
<body>
|
|
19 |
<div class="container" id="container">
|
|
20 |
<div class="header">
|
|
21 |
<h1 id="title"></h1>
|
|
22 |
<a href="javascript:void(0)" class="back" id="cancel">返回</a>
|
|
23 |
<a href="javascript:void(0)" style="display:none" id="confirm"></a>
|
|
24 |
</div>
|
|
25 |
<div id="main"></div>
|
|
26 |
</div>
|
|
27 |
<script>
|
|
28 |
(function () {
|
|
29 |
try {
|
|
30 |
document.domain = "qq.com";
|
|
31 |
} catch (_) {
|
|
32 |
alert("invalid domain");
|
|
33 |
}
|
|
34 |
function getParam(name) {
|
|
35 |
var re = new RegExp("(?:\\?|#|&)" + name + "=([^&]*)(?:$|&|#)", "i"), m = re.exec(window.location.href);
|
|
36 |
var ret = m ? m[1] : "";
|
|
37 |
ret = ret.replace(/[+]/ig, "%20");
|
|
38 |
return ret;
|
|
39 |
}
|
|
40 |
var iface = getParam("iface");
|
|
41 |
switch (iface) {
|
|
42 |
case "AppChallenge":
|
|
43 |
case "AppInvitation":
|
|
44 |
case "AppGiftRequest":
|
|
45 |
case "SendStory": {
|
|
46 |
var appid = getParam("oauth_consumer_key"), type = getParam("type");
|
|
47 |
var url = "tencent" + appid + "://" + iface + "/cancel";
|
|
48 |
document.getElementById("cancel").addEventListener("click", function () {
|
|
49 |
setTimeout(function () {
|
|
50 |
window.open(url, "_self");
|
|
51 |
}, 0);
|
|
52 |
}, false);
|
|
53 |
document.getElementById("title").innerHTML = {
|
|
54 |
AppChallenge : type == "pk" ? "发送挑战" : "发送炫耀",
|
|
55 |
AppInvitation : "发送应用邀请",
|
|
56 |
AppGiftRequest : type == "request" ? "发送应用请求" : "发送免费礼物",
|
|
57 |
SendStory : "发送分享"
|
|
58 |
}[iface];
|
|
59 |
document.write('<script type="text/javascript" src="https://qzonestyle.gtimg.cn/open/mobile/' + {
|
|
60 |
AppChallenge : "brag_ios/js/sdk_brag.js",
|
|
61 |
AppInvitation : "invite_ios/js/sdk_invite.js",
|
|
62 |
AppGiftRequest : "request_ios/js/sdk_request.js",
|
|
63 |
SendStory : "story_ios/js/sdk_story.js"
|
|
64 |
}[iface] + '"><\/script>');
|
|
65 |
break;
|
|
66 |
}
|
|
67 |
default:
|
|
68 |
return;
|
|
69 |
}
|
|
70 |
})();
|
|
71 |
</script>
|
|
72 |
</body>
|
|
73 |
</html>
|