Commit da4d1636 authored by Mac's avatar Mac

parent 7b165dbc
......@@ -236,7 +236,7 @@
var ua = navigator.userAgent.toLowerCase();
if (platform == 'H5' && ua.match(/MicroMessenger/i) != "micromessenger") {
// $('.wx_bg').css('display', "block");
$('.wx_bg').css('display', "block");
} else if (platform == 'H5') {
this.initOpenid()
}
......@@ -249,10 +249,7 @@
$('.app_share').css('display', "block");
}
if(login == false){
$('.click_use p').html('立即登录');
}
$.ajax({
......@@ -561,6 +558,7 @@
window.location.href = 'https://activity.oytour.com/html/coupons.html';
}
}else {// 没登录去登录页面登录
$('.click_use p').html('立即登录');
window.location.href = 'https://activity.oytour.com/html/login.html'
// window.location.href = './login.html'
}
......
......@@ -262,30 +262,30 @@ $.fn.dataStatistics = function(options) {
if ($('.img_btn p').css('color') == 'rgb(224, 50, 52)') { //判断按钮是否可以点击
if(options.login == true){
if (options.count != 0) { //判断是可以抢购
let buyInfo = {
redemptionPrice: options.price,
couponId: options.couponId,
platform:options.platform,
if (options.count != 0) { //判断是可以抢购
let buyInfo = {
redemptionPrice: options.price,
couponId: options.couponId,
platform:options.platform,
}
localStorage.buyInfo = JSON.stringify(buyInfo)
window.location.href = 'https://activity.oytour.com/html/Rushbuy.html';
// window.location.href = './Rushbuy.html' ;
}
localStorage.buyInfo = JSON.stringify(buyInfo)
window.location.href = 'https://activity.oytour.com/html/Rushbuy.html';
// window.location.href = './Rushbuy.html' ;
} else {
let data = {
'action': 'jump', // showToast->一个提示信息 showHud->一个黑色的loading
'page': 'teamWalker_2',
'pageData': {
'backType': 'pop',
} else {
let data = {
'action': 'jump', // showToast->一个提示信息 showHud->一个黑色的loading
'page': 'teamWalker_2',
'pageData': {
'backType': 'pop',
}
}
if (options.platform == 'app') {
window.postMessage(JSON.stringify(data));
}
}
if (options.platform == 'app') {
window.postMessage(JSON.stringify(data));
}
}
}
}else {
window.location.href = 'https://activity.oytour.com/html/login.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