Commit 50102681 authored by agping's avatar agping

成交报告详情 优化

parent 31c33be1
......@@ -38,8 +38,7 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
e.preventDefault();
e.stopPropagation();
var _id=bargain.detail_shop_id;
console.log(_id);
$('.iframe-shop-detail').attr('src', '/app_broker/shop_detail_pc?shop_id='+7436);//记得修改修改
$('.iframe-shop-detail').attr('src', '/app_broker/shop_detail_pc?shop_id='+_id);//记得修改修改
});
//成交报告详情 点击客户 查看客户详情
_doc.on('click', 'a[href="#modal_user_detail"]', function(e){
......@@ -1467,10 +1466,13 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
var doTtmpl = doT.template(document.getElementById('reportList_list_tpl').innerHTML);
$("#maintable_list").html(doTtmpl(data.data));
//点击成交报告详情 获取商铺id 客户id
var hanghao=(pageNo-1)*10+1;
$("#maintable_list tr").each(function() {
if(data.data.list && data.data.list[0]){
var hanghao=(pageNo-1)*10+1;
$("#maintable_list tr").each(function() {
$(this).children('td:eq(0)').html(hanghao++);
});
}
// var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo')));
/*分页代码*/
add_page(data.data.total, pageNo, bargain.pageSize, bargain.getList);
......
......@@ -39,7 +39,7 @@
[% } %]
[% }else{ %]
<tr>
<td colspan="10" style="text-align:center;"> 暂无数据</td>
<td colspan="11" style="text-align:center;">暂无数据</td>
</tr>
[% } %]
</script>
......@@ -134,7 +134,7 @@
[% } %]
[% }else{ %]
<tr>
<td colspan="11" style="text-align:center;"> 暂无数据</td>
<td colspan="11" style="text-align:center;">暂无数据</td>
</tr>
[% } %]
</script>
......
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