Commit 0a9863e0 authored by agping's avatar agping

预约看铺修改

parent 48e0c461
......@@ -32,7 +32,7 @@
<table class="table table-striped table-bordered table-hover table-condensed">
<thead>
<tr>
<td colspan="10" class="maintable-top-sub-tr">
<td colspan="11" class="maintable-top-sub-tr">
<a class="btn btn-info liudan_pic_btn">部门业绩排行榜</a>
<a class="btn btn-default liudan_pic_btn">门店业绩排行榜</a>
<a class="btn btn-default liudan_pic_btn">个人业绩排行榜</a>
......@@ -40,7 +40,7 @@
</tr>
<!--三级审核的搜索功能-->
<tr>
<td colspan="10">
<td colspan="11">
<form id="maintable_form_search">
<span class="btn btn-primary btn3 left" id="maintable_month">本月</span>
<span class="btn btn-primary btn3 left" id="maintable_today">今天</span>
......
......@@ -199,9 +199,23 @@ define (['doT', 'text!temp/watch_template_tpl.html', 'css!style/home.css','pagin
params.house_id = $("#house_id").val();
params.pageNo = user.pageNo;
params.pageSize = user.pageSize;
//预约看铺列表 取地址栏数据
var str = decodeURI(window.location.href);
var index = str .lastIndexOf("\/");
str = str .substring(index + 1, str.length);
var watch_url='';
if(str==1){
watch_url='/index/watch_shop/1'
}
if(str==2){
watch_url='/index/our_watch_shop/2'
}
if(watch_url==''){
alert('数据错误');
return;
}
$.ajax ({
url: '/index/watch_shop/1',
url:watch_url,
type: 'GET',
async: true,
data: params,
......
......@@ -2,6 +2,7 @@
<script id="realtimePerformance_list_tpl_one" type="text/template">
[% if(it["list"] && it["list"].length && it["list"].length>0) { %]
<tr class="maintable-tr-bar">
<th class="text-center">排名</th>
<th class="text-center">部门</th>
<th class="text-center">业绩(元)</th>
<th class="text-center">成交报告(出租)</th>
......@@ -15,8 +16,10 @@
</tr>
[% for(var item in it["list"]){ %]
<tr data-id="[%= it['list'][item]['id'] %]" data-orderid="[%= it['list'][item]['order_id'] %]">
<!--index_-->
<td class="text-center">[%= it["list"][item]['index_'] %]</td>
<td class="text-center">
<a class="store-ranking" href="#modal-store" data-toggle="modal">[%= it["list"][item]['district_name'] %]</a>
<a class="store-ranking" href="#modal-store" data-toggle="modal">[%= it["list"][item]['district_name']+'-'+it["list"][item]['name'] %]</a>
</td>
<td class="text-center">[%= it["list"][item]['performance_total'] %]</td>
<td class="text-center">[%= it["list"][item]['bargain_sum'] %]</td>
......@@ -40,6 +43,7 @@
<script id="realtimePerformance_list_tpl_two" type="text/template">
[% if(it["list"] && it["list"].length && it["list"].length>0) { %]
<tr class="maintable-tr-bar">
<th class="text-center">排名</th>
<td class="text-center">门店</td>
<th class="text-center">业绩(元)</th>
<th class="text-center">成交报告(出租)</th>
......@@ -53,8 +57,9 @@
</tr>
[% for(var item in it["list"]){ %]
<tr data-id="[%= it['list'][item]['id'] %]" data-orderid="[%= it['list'][item]['order_id'] %]">
<td class="text-center">[%= it["list"][item]['index_'] %]</td>
<td class="text-center">
<a class="store-ranking" href="#modal-store" data-toggle="modal">[%= it["list"][item]['district_name'] %]</a>
<a class="store-ranking" href="#modal-store" data-toggle="modal">[%= it["list"][item]['district_name']+'-'+it["list"][item]['store_name']+'-'+it["list"][item]['name'] %]</a>
</td>
<td class="text-center">[%= it["list"][item]['performance_total'] %]</td>
<td class="text-center">[%= it["list"][item]['bargain_sum'] %]</td>
......@@ -78,6 +83,7 @@
<script id="realtimePerformance_list_tpl_three" type="text/template">
[% if(it["list"] && it["list"].length && it["list"].length>0) { %]
<tr class="maintable-tr-bar">
<th class="text-center">排名</th>
<th class="text-center">经纪人</th>
<th class="text-center">业绩(元)</th>
<th class="text-center">成交报告(出租)</th>
......@@ -90,7 +96,8 @@
</tr>
[% for(var item in it["list"]){ %]
<tr data-id="[%= it['list'][item]['id'] %]" data-orderid="[%= it['list'][item]['order_id'] %]">
<td class="text-center">[%= it["list"][item]['district_name'] %]</a></td>
<td class="text-center">[%= it["list"][item]['index_'] %]</td>
<td class="text-center">[%= it["list"][item]['district_name']+'-'+it["list"][item]['store_name']+'-'+it["list"][item]['name'] %]</a></td>
<td class="text-center">[%= it["list"][item]['performance_total'] %]</td>
<td class="text-center">[%= it["list"][item]['bargain_sum'] %]</td>
<td class="text-center">[%= it["list"][item]['bargain_sum'] %]</td>
......
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