Commit 6da7caae authored by xinyuandu's avatar xinyuandu Committed by hujun

客户列表,本人客户

parent 25a12e74
......@@ -477,7 +477,8 @@
<a href="#modal_modify_user" data-toggle="modal" class="btn btn-info btn3 margin-top-ld"><i class="icon-plus"></i> 批量修改客方
</a>
<!-- 本人商铺 -->
<!--<span class="btn btn-info btn3 ld-Marheight" id="persional_custom">本人客户</span>-->
<!-- <span class="btn btn-info btn3 margin-top-ld" id="modify">批量修改客方</span> -->
</form>
......
......@@ -39,6 +39,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
baohu:'',
agentbaohu:'',
customerInfo: {},
all_custom : true , // true :所有客户 ,false :当前客户
init: function() {
//初始化dot
$("body").append(template);
......@@ -316,6 +317,17 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
$('#guest_stores').html('');
$('#guest_stores2').html('');
});
$('#persional_custom').unbind('click').bind('click',function(){
if ( user.all_custom ){
$('#persional_custom').html("个人客户");
} else {
$('#persional_custom').html("所有客户");
}
user.all_custom = !user.all_custom;
user.getList(1);
});
//新增 客户 重置信息
$("#close").click(function() {
document.getElementById("add_user_form").reset();
......@@ -1468,6 +1480,10 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
params.industry_type = $.trim($("select[name=industry_type]").val());
params.first_login_start = $.trim($("#first_login_start").val());
params.first_login_end = $.trim($("#first_login_end").val());
//添加个人商铺和所有商铺选择功能
/*params.userinfo = this.all_custom ? '' : JSON.parse(decodeURIComponent(localStorage.getItem('userinfo'))).id ;*/
if($('#user_city_choose').val() == 310100){//城市
params.city = '上海市' ;
}
......
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