Commit eec36560 authored by 刘丹's avatar 刘丹

列表

parent bea8e483
......@@ -82,4 +82,28 @@ body{
}
.img_header{
width: 55px;height: 47px;margin: 0 auto;
}
\ No newline at end of file
}
/*设置案场权限人*/
#modal_panf1{
width: 100%;
height: 100%;
background: rgba(0,0,0,0.6);
position: fixed;
z-index: 1;
top: 0;
left: 0;
bottom: 0;
display: none;
}
.modal_con{
width: 600px;
height: 500px;
margin: 0 auto;
background: #ffffff;
margin-top: 100px;
position: relative;
}
.imagebox img {
width: 110px;
height: 80px;
}
......@@ -2,7 +2,7 @@
* Created by 刘丹 on 2017/12/11.
*/
define (['doT', 'text!temp/business_district_template_tpl.html', 'css!style/home.css','pagination','bootstrapJs'], function (doT, template) {
define (['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css','pagination','bootstrapJs'], function (doT, template) {
business = {
pageNo: 1, /*第几页*/
pageSize: 10, /*每页显示多少条*/
......@@ -52,12 +52,12 @@ define (['doT', 'text!temp/business_district_template_tpl.html', 'css!style/home
var params ={};
params.id = $ (this).attr ("data-id");
var str = $.trim($(this).html());
if (str === "不显示") {
if (str === "推荐至首页") {
params.type = 1;
$(this).html('显示');
$(this).html('已推荐');
} else {
params.type = 0;
$(this).html('不显示');
$(this).html('推荐至首页');
}
});
},
......@@ -86,7 +86,7 @@ define (['doT', 'text!temp/business_district_template_tpl.html', 'css!style/home
data: params,
dataType: 'json',
success: function (data) {
var temp = document.getElementById ('business_list_tpl').innerHTML;
var temp = document.getElementById ('house_list_tpl').innerHTML;
var doTtmpl = doT.template (temp);
$ ("#business_list").html (doTtmpl (data.data.list));
......@@ -104,7 +104,7 @@ define (['doT', 'text!temp/business_district_template_tpl.html', 'css!style/home
},
delBusiness : function () {
$.ajax({
url : '/index/delBusinessDistrict.html',
url : '/index/houseDel',
type : 'POST',
async: true,
data: {"id":business.id},
......
......@@ -3,17 +3,51 @@
[% for(var item in it){ %]
<tr class="text-center">
<td>[%= it[item]['id'] %]</td>
<td>[%= it[item]['title'] %]</td>
<td>
[% if(it[item]['description']) { %]
[%= it[item]['description'] %]
[% if(it[item]["shop_type"] == 0) { %]
商场
[% }else{ %]
街铺
[% } %]
</td>
<td>[%= it[item]["status"] %]</td>
<td>[%= it[item]['internal_title'] %]</td>
<td>
<a title="编辑" class="btn btn-success btn-xs" href="/admin.php/index/roleedit?id=[%= it[item]['id']%].html" style="margin-right:6px;">编辑</a>
<a title="权限分配" class="btn btn-info btn-xs" href="/admin.php/index/access?id=[%= it[item]['id']%].html" style="margin-right:6px;">权限分配</a>
<a title="成员授权" class="btn btn-primary btn-xs" href="/admin.php/index/accessUser?id=[%= it[item]['id']%].html" style="margin-right:6px;">成员授权</a>
[% 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>
[%= it[item]['dish_name'] %]
<a data-toggle="modal" data-id="77" href="#modal-watch" class="btn1 btn-danger add_applies">修改</a>
</td>
<td>
<a class="btn1 btn-success " href="/admin.php/index/houseEdit?id=[%= it[item]['id']%].html" data-toggle="modal" data-id="77" onclick="alertFollow(this)">编辑</a>
<a class="btn1 btn-success is_show" href="#modal-process" data-toggle="modal" data-id="77" onclick="alertFollow(this)">推荐至首页</a>
<a class="btn1 btn-success modal_anch" href="#modal_panf1" data-toggle="modal" data-id='[%= it[item]["id"] %]'>设置案场权限人</a>
<a class="btn1 btn-success " href="#modal-process" data-toggle="modal" data-id="77" onclick="alertFollow(this)">是否独家</a>
<a class="btn1 btn-success " href="#modal-process" data-toggle="modal" data-id="77" onclick="alertFollow(this)">操作记录</a>
<a data-toggle="modal" data-id='[%= it[item]["id"] %]' href="#modal-delete" class="btn1 btn-danger add_applies del_modal">删除</a>
</td>
</tr>
[% } %]
......
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