|
@@ -5,6 +5,7 @@ var userInfoTpl = __inline("/src/tpl/userInfo.tmpl"); //用户信息
|
|
|
|
|
|
var rankTableTpl = __inline("/src/tpl/ranktable.tmpl"); //用户排名
|
|
|
var bonusTpl = __inline("/src/tpl/bonus.tmpl"); //获奖名单
|
|
|
+var bonusTableTpl = __inline("/src/tpl/bonustable.tmpl"); //获奖名单table
|
|
|
|
|
|
var UserInfo = {}; //用户信息
|
|
|
var MatchList = []; //比赛信息
|
|
@@ -171,7 +172,8 @@ var V = {
|
|
|
|
|
|
if(boundShow) {
|
|
|
$('#targetReward').show()
|
|
|
- M.getBonusList();
|
|
|
+ // M.getBonusList();
|
|
|
+ M.getBonusTable();
|
|
|
}
|
|
|
},
|
|
|
screenInit: function() {
|
|
@@ -239,6 +241,11 @@ var V = {
|
|
|
renderBonusList: function(obj) {
|
|
|
var dom = bonusTpl({data: obj});
|
|
|
$('#bonus-table').append(dom);
|
|
|
+ },
|
|
|
+ // 获奖名单table
|
|
|
+ renderBonusTable: function(obj) {
|
|
|
+ var dom = bonusTableTpl({data: obj});
|
|
|
+ $('#subReward').append(dom);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -408,6 +415,18 @@ var M = {
|
|
|
error: function() {
|
|
|
}
|
|
|
});
|
|
|
+ },
|
|
|
+ //获奖名单
|
|
|
+ getBonusTable: function(){
|
|
|
+ var limit = $('#subReward').attr('data-limit') ? $('#subReward').attr('data-limit') : 15
|
|
|
+ $.ajax({
|
|
|
+ dataType: 'jsonp',
|
|
|
+ url: API+'/encour/publicRewards?ac_id='+AC_ID+'&limit='+limit,
|
|
|
+ success: function(data){
|
|
|
+ V.renderBonusTable(data.list);
|
|
|
+ console.log(data);
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
|