Commit b7c57e88 authored by xishifeng's avatar xishifeng

商铺列表等修改

parent 1a80e4cd
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
<div class="form-group"> <div class="form-group">
<label for="shangpuType">商铺类型</label> <label for="shangpuType">商铺类型</label>
<select class="form-control" name="shangpuType" id="shangpuType" data-alert="请选择商铺类型"> <select class="form-control" name="shangpuType" id="shangpuType" data-alert="请选择商铺类型">
<option value="">请选择</option>
<option value="0">商场</option> <option value="0">商场</option>
<option value="1">街铺</option> <option value="1">街铺</option>
</select> </select>
......
...@@ -121,31 +121,11 @@ ...@@ -121,31 +121,11 @@
<th class="text-center">C端是否显示</th> <th class="text-center">C端是否显示</th>
<th class="text-center">上传时间</th> <th class="text-center">上传时间</th>
<th class="text-center">状态</th> <th class="text-center">状态</th>
<th class="text-center">盘方</th> <!--<th class="text-center">盘方</th>-->
<th class="text-center">操作</th> <th class="text-center">操作</th>
</tr> </tr>
</thead> </thead>
<tbody class="text-center" id="business_list"> <tbody class="text-center" id="business_list"></tbody>
<!--<tr>-->
<!--<td>212</td>-->
<!--<td>商场</td>-->
<!--<td>长兴</td>-->
<!--<td>1000</td>-->
<!--<td>是</td>-->
<!--<td>2018-01-16 17:02:00</td>-->
<!--<td>已租</td>-->
<!--<td>张娜张-->
<!--<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="#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 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 class="btn1 btn-success " href="#modal-process" data-toggle="modal" data-id="77" onclick="alertFollow(this)">操作记录</a>-->
<!--<a data-toggle="modal" data-id="77" href="#modal-watch" class="btn1 btn-danger add_applies" onclick="delete_house(4720)">删除</a>-->
<!--</td>-->
<!--</tr>-->
</table> </table>
</div> </div>
...@@ -342,3 +322,46 @@ ...@@ -342,3 +322,46 @@
</div><!-- /.modal-content --> </div><!-- /.modal-content -->
</div><!-- /.modal --> </div><!-- /.modal -->
</div> </div>
<!-- #查看-->
<div class="modal fade" id="modal_detail" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-one">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
&times;
</button>
<h4 class="modal-title" >
商铺详情
</h4>
</div>
<div class="modal-body modal-body-one">
</div>
</div>
</div>
</div>
<!-- #跟进-->
<div class="modal fade" id="modal_followup" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-one">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
&times;
</button>
<h4 class="modal-title" >
跟进
</h4>
</div>
<div class="modal-body modal-body-one">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">关闭
</button>
<button type="button" class="btn btn-primary" id="modify_add" data-dismiss="modal">
提交
</button>
</div>
</div>
</div>
</div>
\ No newline at end of file
...@@ -447,7 +447,6 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin ...@@ -447,7 +447,6 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
if(data.data) { if(data.data) {
$("#modal-anch").hide; $("#modal-anch").hide;
} }
business.getList(1);
} else { } else {
$("#modal-anch").hide; $("#modal-anch").hide;
} }
...@@ -592,7 +591,6 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin ...@@ -592,7 +591,6 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
dataType: 'json', dataType: 'json',
success: function(data) { success: function(data) {
if(data.code == 200) { if(data.code == 200) {
business.getList(1);
console.log(666); console.log(666);
} }
} }
...@@ -654,7 +652,6 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin ...@@ -654,7 +652,6 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
dataType: 'json', dataType: 'json',
success: function(data) { success: function(data) {
if(data.code == 200) { if(data.code == 200) {
business.getList(1);
$("#modal-delete").modal('hide'); $("#modal-delete").modal('hide');
} else { } else {
$("#del_msg").html('<span style="color: red">删除失败!</span>'); $("#del_msg").html('<span style="color: red">删除失败!</span>');
......
...@@ -853,6 +853,7 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function ...@@ -853,6 +853,7 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
var _isBreakFlag = false; var _isBreakFlag = false;
//是否给商户公开,是否独家验证是否选择 //是否给商户公开,是否独家验证是否选择
$.each([ $.each([
_shangpuTypeObj, //商铺类型是否选择
_showCdObj, //显示给C端用户看 _showCdObj, //显示给C端用户看
_exclusiveTypeObj, //是否独家 _exclusiveTypeObj, //是否独家
], function(i, item) { ], function(i, item) {
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
待租 待租
[% } %] [% } %]
</td> </td>
<td> <!--<td>
[% if(it[item]["dish_name"] != "") { %] [% if(it[item]["dish_name"] != "") { %]
[%= it[item]['dish_name'] %] [%= it[item]['dish_name'] %]
[% } %] [% } %]
...@@ -50,8 +50,16 @@ ...@@ -50,8 +50,16 @@
[% if(check_auth('index/addHousesAgentsDish')) { %] [% if(check_auth('index/addHousesAgentsDish')) { %]
<a data-toggle="modal" data-id='[%= it[item]["id"] %]' href="#modal-anch" class="btn1 btn-danger add_applies">修改</a> <a data-toggle="modal" data-id='[%= it[item]["id"] %]' href="#modal-anch" class="btn1 btn-danger add_applies">修改</a>
[% } %] [% } %]
</td> </td>-->
<td> <td>
[% if(it[item]['auth_edit_house'] || check_auth('index/houseEdit')) { %]
<a class="btn1 btn-success " href="#modal_detail" data-id='[%= it[item]["id"] %]' data-toggle="modal" >查看</a>
[% } %]
[% if(it[item]['auth_edit_house'] || check_auth('index/houseEdit')) { %]
<a class="btn1 btn-success " href="#modal_followup" data-id='[%= it[item]["id"] %]' data-toggle="modal" >跟进</a>
[% } %]
[% if(it[item]['auth_edit_house'] || check_auth('index/houseEdit')) { %] [% if(it[item]['auth_edit_house'] || check_auth('index/houseEdit')) { %]
<a class="btn1 btn-success " href="/admin.php/index/houseEdit?id=[%= it[item]['id']%]" data-toggle="modal" >编辑</a> <a class="btn1 btn-success " href="/admin.php/index/houseEdit?id=[%= it[item]['id']%]" data-toggle="modal" >编辑</a>
[% } %] [% } %]
...@@ -60,9 +68,9 @@ ...@@ -60,9 +68,9 @@
<a class="btn1 btn-success is_show" data-toggle="modal" data-id='[%= it[item]["id"] %]'>推荐至首页</a> <a class="btn1 btn-success is_show" data-toggle="modal" data-id='[%= it[item]["id"] %]'>推荐至首页</a>
[% } %] [% } %]
[% if(check_auth('index/addHousesAgents')) { %] <!--[% if(check_auth('index/addHousesAgents')) { %]
<a class="btn1 btn-success anch" data-target="#modal-anch" 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>
[% } %] [% } %]-->
[% if(check_auth('index/editExclusive')) { %] [% if(check_auth('index/editExclusive')) { %]
<a class="btn1 btn-success dujia" href="#modal-dujia" 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>
......
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