mui.ready(function(){var userType=getParam("userType");var isDrp=getParam("isDrp");if(userType=='2'&&isDrp=='true'){$('.mui-bar-tab').hide();isDrp='false'}else{userType=1}mui.ajax(base_path+'/agent/memberInfo?dates='+new Date().getTime(),{dataType:'json',type:'post',timeout:15000,success:function(dt){if(dt.status){var shareOpenid=dt.data.userOpenid;var link=domanUrl+base_path+"/agentWechat/goPublicity?shareOpenid="+shareOpenid+"&userType="+userType;window.repleFlag=false;window.wxFriend={"appId":"","imgUrl":'//s.iamberry.com/images/shop/naiji_xuanchuan.jpg',"link":link,"desc":"Watero水时代商城，开启优雅生活","title":"Watero水时代商城，好水，好茶，生活不将就！","netError":"您的网络异常，请刷新重试!如多次刷新无效，请向我们反应 ~","shareTimeSuccess":"分享成功","shareTimeCancel":"已取消分享","shareAppSuccess":"分享成功","shareAppCancel":"已取消分享"};getConfig();document.querySelector('.loading-bg').style.display='none'}else{var btnArray=['否','是'];mui.confirm(dt.message+'是否刷新页面？','爱贝源-提示',btnArray,function(e){if(e.index==1){location.reload(true)}})}},error:function(xhr,type,errorThrown){errorfn(xhr)}});getCartNum()});