Commit 5fbccdad authored by zhengke's avatar zhengke

修改

parent f3214ad1
......@@ -161,7 +161,7 @@
<script>
// let href = window.location.href;
let href='http://127.0.0.1:5500/html/GT_activities.html?customerId=1549&accountId=1182&token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE1NzM0NjY2NjMuMCwiZXhwIjoxNTczNTUzMDYzLjAsInVzZXJJbmZvIjp7InVpZCI6IjExODIiLCJyZXF1ZXN0RnJvbSI6NH19.hX2b2MqSWYmWS0k3YsthxW-T6UxarIm5rdbqCVQtxdQ&secretKey=5d5e16254bd741c486fe2b83b42171d2&platform=app';
let href='https://127.0.0.1:5500/html/GT_activities.html?customerId=1549&accountId=1182&token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE1NzM0NjY2NjMuMCwiZXhwIjoxNTczNTUzMDYzLjAsInVzZXJJbmZvIjp7InVpZCI6IjExODIiLCJyZXF1ZXN0RnJvbSI6NH19.hX2b2MqSWYmWS0k3YsthxW-T6UxarIm5rdbqCVQtxdQ&secretKey=5d5e16254bd741c486fe2b83b42171d2&platform=app';
let userInfo = {};
let platform = "H5";
......@@ -169,10 +169,10 @@
try {
userInfo = JSON.parse(localStorage.u);
if (!userInfo.customerId) {
window.location.href = 'http://activity.oytour.com/html/login.html';
window.location.href = 'https://activity.oytour.com/html/login.html';
}
} catch (e) {
window.location.href = 'http://activity.oytour.com/html/login.html';
window.location.href = 'https://activity.oytour.com/html/login.html';
}
} else {
// 如果进入页面没有登录的参数 处理跳到h5页面登录
......@@ -180,10 +180,10 @@
if (href.split('?')[1].indexOf('customerId') == -1 || href.split('?')[1].indexOf('accountId') == -1 ||
href.split('?')[1].indexOf('token') == -1 || href.split('?')[1].indexOf('secretKey') == -1 ||
href.split('?')[1].indexOf('platform') == -1) {
window.location.href = 'http://activity.oytour.com/html/login.html';
window.location.href = 'https://activity.oytour.com/html/login.html';
}
} else {
window.location.href = 'http://activity.oytour.com/html/login.html';
window.location.href = 'https://activity.oytour.com/html/login.html';
}
......@@ -450,7 +450,7 @@
url_openid = encodeURIComponent(url_openid);
$.ajax({
type: "GET",
url: 'http://reborn.oytour.com/api/test/GetHtmlByUrl?urlStr=' + url_openid,
url: 'https://reborn.oytour.com/api/test/GetHtmlByUrl?urlStr=' + url_openid,
async: false,
success: function(res) {
if (res) {
......@@ -492,7 +492,7 @@
}
//跳转到h5优惠券
if (platform == 'H5') {
window.location.href = 'http://activity.oytour.com/html/coupons.html';
window.location.href = 'https://activity.oytour.com/html/coupons.html';
}
})
//点击隐藏提示
......
......@@ -530,7 +530,7 @@
}
//跳转至下载
function goDownLoad(){
window.location.href = 'http://activity.oytour.com/html/downloadApp.html';
window.location.href = 'https://activity.oytour.com/html/downloadApp.html';
}
</script>
</html>
......@@ -336,10 +336,10 @@
try{
userInfo=JSON.parse(localStorage.u);
if(userInfo.customerId){
window.location.href = 'http://activity.oytour.com/html/GT_activities.html';
window.location.href = 'https://activity.oytour.com/html/GT_activities.html';
}
}catch (e) {
window.location.href = 'http://activity.oytour.com/html/login.html';
window.location.href = 'https://activity.oytour.com/html/login.html';
}
}
//跳转至激活
......@@ -400,7 +400,7 @@
}
localStorage.u = JSON.stringify(userInfo)
window.location.href = 'http://activity.oytour.com/html/GT_activities.html';
window.location.href = 'https://activity.oytour.com/html/GT_activities.html';
//window.location.href='http://127.0.0.1:5500/html/GT_activities.html';
}else{
layer.msg(res.message);
......
......@@ -229,7 +229,7 @@
function pay() {
if (!localStorage.openid) {
window.location.href = 'http://activity.oytour.com/html/GT_activities.html';
window.location.href = 'https://activity.oytour.com/html/GT_activities.html';
}
if (!payBtn) {
layer.msg('您已经超出支付时间!');
......@@ -288,7 +288,7 @@
if (res.err_msg == "get_brand_wcpay_request:ok") {
// 使用以上方式判断前端返回,微信团队郑重提示:
//res.err_msg将在用户支付成功后返回ok,但并不保证它绝对可靠。
window.location.href = 'http://activity.oytour.com/html/paySuccess.html';
window.location.href = 'https://activity.oytour.com/html/paySuccess.html';
}
});
}
......
......@@ -64,7 +64,7 @@
<script>
function goDetail(){
//window.location.href = 'http://192.168.0.117:5500/html/coupons.html';
window.location.href = 'http://activity.oytour.com/html/coupons.html';
window.location.href = 'https://activity.oytour.com/html/coupons.html';
}
</script>
</html>
......@@ -222,7 +222,7 @@ $.fn.dataStatistics = function(options) {
window.postMessage(JSON.stringify({ 'action': 'showHud', 'message': '抢购中...' }));
}
if (options.platform == 'H5') {
loadingFlag= layer.msg('加载中...', { icon: 16, shade: 0.01,shadeClose:false,time:60000 });
loadingFlag= layer.msg('抢购中...', { icon: 16, shade: 0.01,shadeClose:false,time:60000 });
}
$.ajax({
type: "POST",
......@@ -287,7 +287,7 @@ $.fn.dataStatistics = function(options) {
sessionStorage.setItem("payInfo", JSON.stringify(data));
//window.location.href = 'http://127.0.0.1:5500/html/pay.html';
//window.location.href = 'http://192.168.0.117:5500/html/pay.html';
window.location.href = 'http://activity.oytour.com/html/pay.html';
window.location.href = 'https://activity.oytour.com/html/pay.html';
}
......
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