12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>打开中</title>
- </head>
- <body>
- <script type="text/javascript">
- window.onload = function GetRequest() {
- var url = window.location.search; //获取url中"?"符后的字串
- var theRequest = new Object();
- if (url.indexOf("?") != -1) {
- var str = url.substr(1);
- strs = str.split("&");
- for (var i = 0; i < strs.length; i++) {
- theRequest[strs[i].split("=")[0]] = unescape(strs[i].split("=")[1]);
- }
- }
- var str = ''
- for ( var key in theRequest) {
- if (key != 'key') {
- if (str.length === 0 ) {
- str = '?' + key + '=' + encodeURIComponent(theRequest[key])
- }else{
- str = str + '&' + key + '=' + encodeURIComponent(theRequest[key])
- }
- }else{
- var channelKey = theRequest[key]
- }
- }
- var link = 'https://operation.mige.tv/a/#/' + channelKey
- if (str.length > 0) {
- link = link.replace('#', str + '#')
- }
- console.log(link)
- openWIN(link)
- // if (url.indexOf("&") != -1) {
- // for (var ii = 0, )
- // }
- // return theRequest;
- }
- function openWIN (link) {
- window.location.href = link
- window.close()
- }
- </script>
- </body>
- </html>
|