Commit 7a225b7b authored by agping's avatar agping

pk修改

parent 65ae0e0a
...@@ -145,7 +145,7 @@ ...@@ -145,7 +145,7 @@
</div> </div>
<div class="pk-container-detail-con"> <div class="pk-container-detail-con">
<div class="pk-container-detail-team"> <div class="pk-container-detail-team">
<span class="team-span team-span-pk">团队PK榜</span> <!--<span class="team-span team-span-pk">团队PK榜</span>-->
<span class="team-span-active team-span-pk">店长PK榜</span> <span class="team-span-active team-span-pk">店长PK榜</span>
<span class="team-span team-span-pk">经理PK榜</span> <span class="team-span team-span-pk">经理PK榜</span>
<span class="team-span team-span-pk">主任PK榜</span> <span class="team-span team-span-pk">主任PK榜</span>
......
...@@ -23,21 +23,18 @@ define(['doT', 'text!temp/pk_list_template_tpl.html.html', 'css!style/home.css', ...@@ -23,21 +23,18 @@ define(['doT', 'text!temp/pk_list_template_tpl.html.html', 'css!style/home.css',
var _this = $(this); var _this = $(this);
_this.removeClass('team-span').addClass('team-span-active').siblings().removeClass('team-span-active').addClass('team-span'); _this.removeClass('team-span').addClass('team-span-active').siblings().removeClass('team-span-active').addClass('team-span');
if(_this.index() == 0){ if(_this.index() == 0){
pkList.mainTabIndex = -1 pkList.mainTabIndex = 1
} }
if(_this.index() == 1){ if(_this.index() == 1){
pkList.mainTabIndex = 1;
}
if(_this.index() == 2){
pkList.mainTabIndex = 2; pkList.mainTabIndex = 2;
} }
if(_this.index() == 3){ if(_this.index() == 2){
pkList.mainTabIndex = 3; pkList.mainTabIndex = 3;
} }
if(_this.index() == 4){ if(_this.index() == 3){
pkList.mainTabIndex = 4; pkList.mainTabIndex = 4;
} }
if(_this.index() == 5){ if(_this.index() == 4){
pkList.mainTabIndex = 0; pkList.mainTabIndex = 0;
} }
}); });
......
<script id="pk_list_tpl" type="text/template"> <script id="pk_list_tpl" type="text/template">
[% var sw=function(s){return ++s}; %]
[% if(it) { %] [% if(it) { %]
<tr> <tr>
<th class="text-center">排名</th> <th class="text-center">排名</th>
...@@ -8,7 +9,7 @@ ...@@ -8,7 +9,7 @@
</tr> </tr>
[% for(var item in it){ %] [% for(var item in it){ %]
<tr class="text-center"> <tr class="text-center">
<td>[%= it[item]["name"] %]</td> <td>[%= sw(item) %]</td>
<td>[%= it[item]["evaluate_content"] %]</td> <td>[%= it[item]["evaluate_content"] %]</td>
<td>[%= it[item]["name"] %]</td> <td>[%= it[item]["name"] %]</td>
<td>[%= it[item]["performance"] %]</td> <td>[%= it[item]["performance"] %]</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