活动聚会系统没有登陆的时候提交报名提示错误,有人知道在哪里改吗
else{
layer.alert('操作错误!');
}
改为:
else{
layer.confirm('你还没登录,不能报名参加,要登录吗?', {
btn : [ '登录', '取消' ]
}, function(index) {
window.location.href = "{:get_url('login')}";
});
}
function BuyThisShop(totype){
var gotourl="{:urls('car/act')}?shopid={$id}&num="+shopnum;
$.get(gotourl+"&"+Math.random(),function(d){
if(d=='ok'){
if(totype==1){
layer.msg('成功加入购物车');
}else{
window.location.href="{:urls('car/index')}";
}
}else{
layer.confirm('你还没登录,不能报名参加,要登录吗?', {
btn : [ '登录', '取消' ]
}, function(index) {
window.location.href = "{:get_url('login')}";
});
}
});
}