Commit c99efa29 authored by 刘丹's avatar 刘丹

提交测试

parent 5b1c9579
......@@ -92,10 +92,7 @@
<div class="form-group">
<label class="col-sm-3 control-label"></label>
<ul class="mend_list">
<li form-control btn6>
<span class="phone_name">11</span>
<span class="phone_span">123</span>
</li>
</ul>
</div>
</form>
......
......@@ -44,7 +44,10 @@
<a href="/admin.php/index/agent.html">经纪人列表</a>
</li>
<li role="presentation">
<a href="/admin.php/index/districtList.html">总监列表</a>
<a href="/admin.php/index/storeList.html">门店列表</a>
</li>
<li role="presentation">
<a href="/admin.php/index/districtList.html">部门列表</a>
</li>
<li role="presentation">
<a href="/admin.php/index/authRuleIndex.html">权限管理</a>
......
This diff is collapsed.
......@@ -216,7 +216,9 @@ body{
width: 56%;
margin-left: -42px;
}
.mend_list li{
.mend_list li {
border-bottom: 1px solid #cccccc;
width: 100%;
height: 40px;
line-height: 40px;
}
\ No newline at end of file
......@@ -29,17 +29,27 @@ define (['doT', 'text!temp/district_template_tpl.html', 'css!style/home.css','pa
e.preventDefault();
e.stopPropagation();
var _this = $(this);
var ldHtml=$(".mend_list");
valueCurrent = _this.val();
if(valueCurrent != ''){
district.loadMain(valueCurrent);
console.log(_this.next());
_this.parent().next().show();
}else{
district.ldHtml.html('');
return false;
}
});
$ (document).delegate (".mend_list li", "click", function () {//点击列表
var phone_name=$(this).find(".phone_name").html();
var phone_phone=$(this).find(".phone-phone").html();
var phone_span=$(this).find(".phone_span").html();
$(".phone_mend").val(phone_name+phone_span+phone_phone);
$(this).parent().hide();
district.ldHtml.html('');
return false;
});
},
Edit:function(){//获取
......@@ -115,9 +125,9 @@ define (['doT', 'text!temp/district_template_tpl.html', 'css!style/home.css','pa
if(data.code === 200){
var _html = '';
$.each(data.data, function(i,data) {
_html += '<li class="addphone"><span class="phone_name">'+data['name']+'</span><span class="phone_span">-</span><span class="phone-phone">'+data['phone']+'</span> </li>';
_html += '<li><span class="phone_name">'+data['name']+'</span><span class="phone_span">-</span><span class="phone-phone">'+data['phone']+'</span> </li>';
});
obj.html(_html);
$(".mend_list").html(_html);
}
},
error: function() {
......@@ -131,6 +141,7 @@ define (['doT', 'text!temp/district_template_tpl.html', 'css!style/home.css','pa
}
});
},
getList: function (pageNo) {
district.pageNo = pageNo;
var params = {};
......
This diff is collapsed.
<script id="store_list_tpl" type="text/template">
[% if(it) { %]
[% for(var item in it){ %]
<tr class="text-center">
<td>[%= it[item]['id'] %]</td>
<td>
[% if(it[item]["shop_type"] == 0) { %]
商场
[% }else{ %]
街铺
[% } %]
</td>
<td>[%= it[item]['internal_title'] %]</td>
<td>
[% if(it[item]["rent_price"] == 0) { %]
30000以上
[% }else if(it[item]["rent_price"] == 1) { %]
10000-30000
[% }else{ %]
10000以下
[% } %]
</td>
<td>
[% if(it[item]["is_show"] == 0) { %]
[% }else{ %]
[% } %]
</td>
<td>[%= it[item]['create_time'] %]</td>
<td>
[% if(it[item]["leased"] == 0) { %]
已租
[% }else{ %]
待租
[% } %]
</td>
<td>
[% if(it[item]["dish_name"] == "") { %]
<a data-toggle="modal" data-id='[%= it[item]["id"] %]' href="#modal-anch" class="btn1 btn-danger add_applies">修改</a>
[% }else{ %]
[%= it[item]['dish_name'] %]
<a data-toggle="modal" data-id='[%= it[item]["id"] %]' href="#modal-anch" class="btn1 btn-danger add_applies">修改</a>
[% } %]
</td>
<td>
<a class="btn1 btn-success " href="/admin.php/index/houseEdit?id=[%= it[item]['id']%]" data-toggle="modal" >编辑</a>
<a class="btn1 btn-success is_show" data-toggle="modal" data-id='[%= it[item]["id"] %]'>推荐至首页</a>
<a class="btn1 btn-success anch" data-target="#modal-anch" data-toggle="modal" data-id='[%= it[item]["id"] %]'>设置案场权限人</a>
<a class="btn1 btn-success dujia" href="#modal-dujia" data-toggle="modal" data-id='[%= it[item]["id"] %]' >是否独家</a>
<a class="btn1 btn-success caozuo" href="#modal-record" data-toggle="modal" data-id='[%= it[item]["id"] %]'>操作记录</a>
<a data-toggle="modal" data-id='[%= it[item]["id"] %]' href="#modal-delete" class="btn1 btn-danger add_applies del_modal">删除</a>
</td>
</tr>
[% } %]
[% }else{ %]
<tr>
<td colspan="8" style="text-align:center;"> 暂无数据</td>
</tr>
[% } %]
</script>
\ No newline at end of file
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