Commit a68eadff authored by Mac's avatar Mac

1

parent f5414046
......@@ -321,7 +321,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()
}
......
......@@ -269,7 +269,27 @@ $.fn.dataStatistics = function(options) {
$('.img_btn').click(function() {
window.location.href = `./Rushbuy.html?redemptionPrice=${options.price}&couponId=${options.couponId}&platform=${options.platform}`;
let userInfo = JSON.parse(localStorage.userInfo)
if(userInfo.uid && userInfo.uid == '1182'){ //如果为唐杰的号直接跳转
if (options.count != 0) { //判断是可以抢购
window.location.href = `https://activity.oytour.com/html/Rushbuy.html?redemptionPrice=${options.price}&couponId=${options.couponId}&platform=${options.platform}`;
} else {
let data = {
'action': 'jump', // showToast->一个提示信息 showHud->一个黑色的loading
'page': 'teamWalker_2',
'pageData': {
'backType': 'pop',
}
}
if (options.platform == 'app') {
window.postMessage(JSON.stringify(data));
} else if (options.platform == 'H5') {
window.location.href = 'https://activity.oytour.com/html/downloadApp.html'
}
}
}else {
if ($('.img_btn p').css('color') == 'rgb(224, 50, 52)') { //判断按钮是否可以点击
if (options.login == true) {
......@@ -317,5 +337,7 @@ $.fn.dataStatistics = function(options) {
}
}
}
})
};
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