|
http://js.189.cn/nservice/product/detail/GDSXP201803215348X70.html
按F12打开调试界面切换到Console标签粘
[ol]function handlingNow(){ var isLogin = "1"; if(isLogin!='1'){ showLoginBox(); return; } var goodsId=$('#goodsId').val(); if("7b5d70b8f5494f4687cd41cb8583ex70"==goodsId){ $.ajax({ url :'/nservice/businessHandleSave/checkWhiteList', type : 'post', dataType : 'json', async:false, data : { goodsId : goodsId }, success : function(data) { if (data == '0') { $('.tk-bg').show(); $('.ywbl_dg_tc').show(); var boxHeight = $('.ywbl_dg_tc').height(); var boxWidth = $('.ywbl_dg_tc').width(); $('.ywbl_dg_tc').css({'margin-top':-boxHeight/2,'margin-left':-boxWidth/2}); console.log(boxHeight); }else{ layer.alert("该业务即将上线,敬请期待!"); return; } } }); }else{ $('.tk-bg').show(); $('.ywbl_dg_tc').show(); var boxHeight = $('.ywbl_dg_tc').height(); var boxWidth = $('.ywbl_dg_tc').width(); $('.ywbl_dg_tc').css({'margin-top':-boxHeight/2,'margin-left':-boxWidth/2}); console.log(boxHeight); } }[/ol]复制代码
回车,再点“立即购买”按钮办理此业务,输入验证码后,提醒开通成功,并会收到短信,提示开通成功。
|
|