73 lines
1.8 KiB
HTML
73 lines
1.8 KiB
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<meta name="viewport" content="width=device-width,initial-scale=1, minimum-scale=1.0, maximum-scale=1.0,user-scalable=no, minimal-ui">
|
|
<meta name="format-detection" content="telephone=no">
|
|
<title>12306抢火车票</title>
|
|
<script>
|
|
function getQueryData(queryString) {
|
|
/* 去掉字符串前面的"?",并把&转换为& */
|
|
queryString = queryString.replace(/^\?+/, '').replace(/&/, '&');
|
|
var querys = queryString.split('&'),
|
|
i = querys.length,
|
|
_URLParms = {};
|
|
|
|
while (i--) {
|
|
item = querys[i].split('=');
|
|
if (item[0]) {
|
|
var value = item[1] || '';
|
|
try {
|
|
value = decodeURIComponent(value);
|
|
} catch(e) {
|
|
value = unescape(value);
|
|
}
|
|
_URLParms[decodeURIComponent(item[0])] = value;
|
|
}
|
|
}
|
|
return _URLParms;
|
|
}
|
|
var url_parms = getQueryData(window.location.search);
|
|
|
|
url_parms.c = typeof url_parms.c == 'undefined' ? '' : url_parms.c;
|
|
|
|
var arr = [];
|
|
var s = '';
|
|
for(var k in url_parms){
|
|
if(k != 'c'){
|
|
arr.push(k+'='+url_parms[k]);
|
|
}
|
|
}
|
|
s = arr.join('&');
|
|
s = s == ''? s : '?'+s;
|
|
switch(url_parms.c){
|
|
case 'login':
|
|
window.location.href = 'http://app.fishlee.net/12306/login.html'+s;
|
|
break;
|
|
case 'query':
|
|
window.location.href = 'http://app.fishlee.net/12306/'+s;
|
|
break;
|
|
case 'order':
|
|
window.location.href = 'http://app.fishlee.net/12306/order_list.html'+s;
|
|
break;
|
|
case 'remind':
|
|
window.location.href = 'http://app.fishlee.net/12306/remind.html'+s;
|
|
break;
|
|
case 'myremind':
|
|
window.location.href = 'http://app.fishlee.net/12306/myremind.html'+s;
|
|
break;
|
|
default:
|
|
if(s == ''){
|
|
s = '?';
|
|
}
|
|
window.location.href = 'http://app.fishlee.net/12306/'+s+'&cond=login';
|
|
}
|
|
|
|
</script>
|
|
</head>
|
|
|
|
<body>
|
|
|
|
</body>
|
|
</html>
|