Commit c2c91a7d authored by agping's avatar agping

pk优化

parent 1fa54efc
......@@ -137,7 +137,7 @@
<div class="pk-container-detail">
<div class="pk-container-detail-header">
<span class="margain-right-10 pk-yeji-bang">业绩PK榜</span>
<span class="margain-right-10 pk-yeji-time">(2018.11.01-2018.11.16)</span>
<span class="margain-right-10 pk-yeji-time">(<span id='start_date'></span>-<span id='end_date'></span>)</span>
<!--<select class="results-pk">
</select>-->
<img src="/resource/image/gold@1x.png" class="img-gold"/>
......
......@@ -11,7 +11,17 @@ define(['doT', 'text!temp/pk_list_template_tpl.html.html', 'css!style/home.css',
init: function() {
//初始化dot
$(document.body).append(template);
pkList.getCitySite();
//获取初始化时间
var myDate = new Date();
var y = myDate.getFullYear();
var m = myDate.getMonth() + 1;
var d = myDate.getDate();
var day_start = y + '.' + (m < 10 ? ('0' + m) : m) + '.' + ('01');
var day_end = y + '.' + (m < 10 ? ('0' + m) : m) + '.' + (d < 10 ? ('0' + d) : d);
$('#start_date').html(day_start);
$('#end_date').html(day_end);
// pkList.getCitySite();
pkList.getList(0);
pkList.event();
},
......
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