$('.bottom_click').on('touchstart', function () { $('.bottom_click').css('backgroundColor', "white"); $(this).css('backgroundColor', "#ececec"); $('.bottom_click').on('touchend', function () { $('.bottom_click').css('backgroundColor', "white"); }) }) localStorage.viprefrash = 0;//防止之后的页面重复pushstate var discounts = localStorage.discounts || 0;//储值卡买单 var onlinepay = localStorage.onlinepay || 0;//在线充值 var exchange = localStorage.exchange || 0;//积分变动 var signin = localStorage.signin || 0;//签到 var changepersonl = localStorage.changepersonl || 0;//修改个人信息 if (discounts == 1 || onlinepay == 1 || exchange == 1 || signin == 1 || changepersonl == 1) { localStorage.clear(); window.location.reload(); } //拦截返回事件 var state = { title: "会员卡——互支付智慧平台", url: location.href } window.history.pushState(state, state.title, state.url); ToUrlSelfFn(state.title, state.url, function () { localStorage.clear(); WeixinJSBridge.call('closeWindow'); })