Commit b0833bca authored by agping's avatar agping

修改

parent 4b1a1c6f
......@@ -359,12 +359,37 @@
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
&times;
</button>
<h4 class="modal-title" >
商铺详情
<h4 class="modal-title detail-modal-header-tab" >
<a href="javascript:;" class="btn btn-default">商铺跟进</a>
<a href="javascript:;" class="btn btn-info">查看商铺</a>
</h4>
</div>
<div class="modal-body modal-body-one">
<iframe class="iframe-shop-detail"></iframe>
<div class="detail-modal-body-sec">
<iframe class="iframe-shop-detail"></iframe>
</div>
<div class="detail-modal-body-sec">
<div class="followup-modal-list-area">
<table class="table table-striped table-bordered table-hover table-condensed">
<tbody class="" id="modal_followup_table_list">
<tr>
<td>电话跟进:测试测试测试测试测试测试测试测试测试测试测试测试</td>
<td>刘丹丹</td>
<td>2017-09-05 15:22:33</td>
</tr>
<tr>
<td colspan="3">2017-09-05 15:22:33</td>
</tr>
</tbody>
</table>
</div>
<div class="followup-modal-comment-area">
<textarea></textarea>
</div>
<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
<button type="button" class="btn btn-primary" id="modal_followup_submit_btn">提交</button>
</div>
</div>
</div>
</div>
......
......@@ -2,8 +2,8 @@ body {
/*width: 1335px !important;*/
/*min-width: 1335px !important;*/
width: 980px !important;
min-width:980px !important;
width: 1024px !important;
min-width:1024px !important;
margin: 0;
margin: 0 auto;
background-color: #F2F2F2;
......
......@@ -22,6 +22,7 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
boxphoto: '',
exclusive_id: 0,
isFollowupSaving: false,
detailTabIndex:0,//查看 弹出框 tab切换 初始化
init: function() {
//初始化dot
business.getDistrict();
......@@ -112,7 +113,22 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
e.stopPropagation();
business.Dujianew();
});
//查看弹出框里的tab点击事件,查看商铺,商铺跟进
_doc.on('click', '.detail-modal-header-tab>a', function(e){
e.preventDefault();
e.stopPropagation();
var _this = $(this);
_this.removeClass('btn-default').addClass('btn-info').siblings().removeClass('btn-info').addClass('btn-default');
business.detailTabIndex = _this.index();
$('.detail-modal-body-sec:nth-of-type('+(business.detailTabIndex+1)+')').show().siblings().hide();
if(business.detailTabIndex == 0){
$('.iframe-shop-detail').attr('src', '/app_broker/shop_detail_pc?shop_id='+business.id);
}else if(business.detailTabIndex == 1){
$('.followup-modal-comment-area>textarea').val('');//清空跟进框内容
business.getFollowupList();
}
});
// 提交按钮设置案场权限人
$(document).delegate(".submit_follow", "click", function() { //提交按钮设置案场权限人
var myModalLabel = $("#myModalLabel").html();
......@@ -294,7 +310,11 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
var _this = $(this);
_this.removeClass('btn-success').addClass('btn-warning');
var _id = _this.attr('data-id');
business.id=_id;
console.log(_id);
$('.detail-modal-header-tab>a:nth-of-type(1)').removeClass('btn-default').addClass('btn-info').siblings().removeClass('btn-info').addClass('btn-default');
business.detailTabIndex = 0;
$('.detail-modal-body-sec:nth-of-type(1)').show().siblings().hide();
$('.iframe-shop-detail').attr('src', '/app_broker/shop_detail_pc?shop_id='+_id);
});
......
define(['doT', 'text!temp/tax_template_tpl.html', 'text!temp/reportList_shuiFee2_template_tpl.html', 'text!temp/reportList_maidtwo_template_tpl.html', 'text!temp/reportList_maid_sub1_template_tpl.html', 'css!style/home.css', 'css!style/report_list.css', 'ckfinder', 'ckfinderStart', 'pagination', 'bootstrapJs'], function(doT, template, template_tax, template_maid, template_maid_sub1) {
define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', 'css!style/report_list.css', 'ckfinder', 'ckfinderStart', 'pagination', 'bootstrapJs'], function(doT, template, template_tax, template_maid, template_maid_sub1) {
bargain = {
pageNo: 1,
/*第几页*/
......
......@@ -46,17 +46,17 @@
[% } %]
</td>-->
<td>
<a class="btn1 [%= (it[item]['is_look'] && it[item]['auth_edit_house'] == 0)?'btn-warning':'btn-success' %]" href="#modal_shop_detail" data-id='[%= it[item]["id"] %]' data-toggle="modal" >查看</a>
[% if(check_auth('broker/addShopFollowUp')) { %]
<a class="btn1 btn-success " href="#modal_followup" data-id='[%= it[item]["id"] %]' data-toggle="modal" >跟进</a>
<a class="btn1 [%= (it[item]['is_look'] && it[item]['auth_edit_house'] == 0)?'btn-warning':'btn-success' %]" href="#modal_shop_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="/admin.php/index/houseEdit?id=[%= it[item]['id']%]" data-toggle="modal" >编辑</a>
[% } %]
<!--[% if(check_auth('broker/addShopFollowUp')) { %]
<a class="btn1 btn-success " href="#modal_followup" data-id='[%= it[item]["id"] %]' data-toggle="modal" >跟进</a>
[% } %]-->
<a class="btn1 btn-default btn-default-show-caozuo">>>></a>
[% if(it[item]['auth_edit_house'] || check_auth('index/houseEdit')) { %]
<a class="btn1 btn-success btn-default-hide-display" href="/admin.php/index/houseEdit?id=[%= it[item]['id']%]" data-toggle="modal" >编辑</a>
[% } %]
[% if(check_auth('index/houseEdit')) { %]
<a class="btn1 btn-success is_show btn-default-hide-display" 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