Commit 5f542d22 authored by agping's avatar agping

客户强制选择vip

parent 202e61f6
...@@ -114,14 +114,13 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart', ...@@ -114,14 +114,13 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart',
user.getGenjinLabel(); user.getGenjinLabel();
}); });
$(document).delegate(".add_alert", "click", function() { //新增客户 $(document).delegate(".add_alert", "click", function() { //重置搜索
document.getElementById("add_user_form").reset(); document.getElementById("add_user_form").reset();
}); });
// ===========================新增客户==================== // ===========================新增客户====================
$(document).delegate("#add_user", "click", function() { //新增客户 $(document).delegate("#add_user", "click", function() { //新增客户
user.user_id = $(this).attr("data-id"); user.user_id = $(this).attr("data-id");
user.add_user(); user.add_user();
}); });
...@@ -708,15 +707,17 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart', ...@@ -708,15 +707,17 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart',
params.area_demand = $("#area_type2").val(); params.area_demand = $("#area_type2").val();
params.industry_type = $("#industry_type2").val(); params.industry_type = $("#industry_type2").val();
params.vip = $("#user_vip").val(); params.vip = $("#user_vip").val();
params.type = 'add'; params.type = 'add';
if(params.user_name == '') { if(params.user_name == '') {
alert('姓名不能为空'); alert('姓名不能为空');
$("input[name='user_name']").focus(); $("input[name='user_name']").focus();
return; return;
} }
if(params.vip=='') {
alert('请选择vip');
$("#user_vip").focus();
return;
}
if(params.user_phone == '') { if(params.user_phone == '') {
alert('手机号不能为空'); alert('手机号不能为空');
$("input[name='user_phone']").focus(); $("input[name='user_phone']").focus();
......
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