Commit 762650e2 authored by agping's avatar agping

客户列表 修改

parent 05b37966
...@@ -123,7 +123,7 @@ ...@@ -123,7 +123,7 @@
</label> </label>
</li> </li>
<li class="list-group-item" id="shangpu_tags_area"> <li class="list-group-item" id="shangpu_tags_area">
<label for="">商铺标签(可多选)</label>
<!--<label class="checkbox-inline"> <!--<label class="checkbox-inline">
<input type="checkbox" class="roomTag" id="" value="购物广场" name="shangpu_tags[]">购物广场 <input type="checkbox" class="roomTag" id="" value="购物广场" name="shangpu_tags[]">购物广场
</label> </label>
......
...@@ -593,14 +593,14 @@ ...@@ -593,14 +593,14 @@
</div> </div>
<div class="form-group form-group-bottom"> <div class="form-group form-group-bottom">
<label for="inputEmail3" class="col-sm-3 control-label">客户所属城市:</label> <label for="inputEmail3" class="col-sm-3 control-label">客户所属城市:</label>
<div class="col-sm-9"> <div class="col-sm-9" id="shangpu_tags_area">
<select class="form-control btn5" id="user_city_add"> <!--<select class="form-control btn5" id="user_city_add">
<option value="310100">上海市</option> <option value="310100">上海市</option>
<option value="330100">杭州市</option> <option value="330100">杭州市</option>
</select> </select>
<select class="form-control btn5" id="user_area_add"> <select class="form-control btn5" id="user_area_add">
<option value="" selected="selected">请选择区域</option> <option value="" selected="selected">请选择区域</option>
</select> </select>-->
</div> </div>
</div> </div>
<div class="form-group form-group-bottom"> <div class="form-group form-group-bottom">
......
...@@ -374,7 +374,9 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind ...@@ -374,7 +374,9 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
$(document).delegate(".add-user-new", "click", function() { //新增客户 $(document).delegate(".add-user-new", "click", function() { //新增客户
user.agent_id=''; user.agent_id='';
user.initializationCityFunctionAdd(); // user.initializationCityFunctionAdd();
user.getSiteTags();//获取站点 城市
}); });
// 跟进的提交按钮 点击 // 跟进的提交按钮 点击
$(document).delegate("#edit_add", "click", function(e) { $(document).delegate("#edit_add", "click", function(e) {
...@@ -1803,6 +1805,45 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind ...@@ -1803,6 +1805,45 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
} }
}); });
}, },
//获取站点 标签
getSiteTags: function() {
$.ajax({
type: 'GET',
url: '/index/getSiteList',
data: {},
timeout: 30000,
dataType: 'json',
beforeSend: function() {},
success: function(_data) {
if(typeof _data === 'object') {
if(_data['code'] == '200') {
var _htmlTemp = '';
$.each(_data.data.list, function(i, item) {
_htmlTemp += '<label class="checkbox-inline"><input type="checkbox" class="roomTag" id="" value="{0}" data-id="{1}" name="shangpu_tags[]">{0}</label>'.stringFormatObj({
'0': item.name,
'1': item.id
});
});
$('#shangpu_tags_area').append(_htmlTemp);
fn && fn();
} else {
alert(_data['msg']);
}
} else {
alert('数据错误');
};
},
error: function() {
alert('enter error');
},
complete: function(xhr, textStatus) {
if(textStatus === 'timeout') {
//处理超时的逻辑
alert('请求超时,请重试');
};
}
});
},
//城市 区域 筛选 //城市 区域 筛选
getCityAreaList: function(id, fn) { getCityAreaList: function(id, fn) {
$.ajax({ $.ajax({
......
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