|
@@ -8,7 +8,7 @@ $(function () {
|
|
$.alert(applyList.message);
|
|
$.alert(applyList.message);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- var roomSportHTML = new RoomSportHTML(applyList.datas);
|
|
|
|
|
|
+ var roomSportHTML = new RoomSportHTML(this,applyList.datas);
|
|
roomSportHTML.appendHTML(this.append_el);
|
|
roomSportHTML.appendHTML(this.append_el);
|
|
if (applyList.datas.mobile_page.hasmore) {
|
|
if (applyList.datas.mobile_page.hasmore) {
|
|
this.curpage = applyList.datas.mobile_page.curpage+1;
|
|
this.curpage = applyList.datas.mobile_page.curpage+1;
|
|
@@ -28,11 +28,11 @@ $(function () {
|
|
this.appendHTML = function (id) {
|
|
this.appendHTML = function (id) {
|
|
var room_sport_list = "";
|
|
var room_sport_list = "";
|
|
var mine_sport = "";
|
|
var mine_sport = "";
|
|
- if(roomSportList.curpage > 1) {
|
|
|
|
|
|
+ if(this.useObj.curpage > 1) {
|
|
for(var i=0;i<this.listDatas.steps.length;i++) {
|
|
for(var i=0;i<this.listDatas.steps.length;i++) {
|
|
- roomSportList.rankingIndex++;
|
|
|
|
|
|
+ this.useObj.rankingIndex++;
|
|
room_sport_list += "<div class=\"weui-cell\" style='line-height:1.7'>\n" +
|
|
room_sport_list += "<div class=\"weui-cell\" style='line-height:1.7'>\n" +
|
|
- " <div class=\"index_num\">"+roomSportList.rankingIndex+"</div>\n" +
|
|
|
|
|
|
+ " <div class=\"index_num\">"+this.useObj.rankingIndex+"</div>\n" +
|
|
" <div class=\"weui-cell__hd\">\n" +
|
|
" <div class=\"weui-cell__hd\">\n" +
|
|
" <img src=\""+this.listDatas.steps[i].avatar+"\">\n" +
|
|
" <img src=\""+this.listDatas.steps[i].avatar+"\">\n" +
|
|
" </div>\n" +
|
|
" </div>\n" +
|
|
@@ -63,9 +63,9 @@ $(function () {
|
|
" </div>";
|
|
" </div>";
|
|
$('#mine_ranking').append(mine_sport);
|
|
$('#mine_ranking').append(mine_sport);
|
|
for(var i=0;i<this.listDatas.steps.length;i++) {
|
|
for(var i=0;i<this.listDatas.steps.length;i++) {
|
|
- roomSportList.rankingIndex++;
|
|
|
|
|
|
+ this.useObj.rankingIndex++;
|
|
room_sport_list += "<div class=\"weui-cell\" style='line-height:1.7'>\n" +
|
|
room_sport_list += "<div class=\"weui-cell\" style='line-height:1.7'>\n" +
|
|
- " <div class=\"index_num\">"+roomSportList.rankingIndex+"</div>\n" +
|
|
|
|
|
|
+ " <div class=\"index_num\">"+this.useObj.rankingIndex+"</div>\n" +
|
|
" <div class=\"weui-cell__hd\">\n" +
|
|
" <div class=\"weui-cell__hd\">\n" +
|
|
" <img src=\""+this.listDatas.steps[i].avatar+"\">\n" +
|
|
" <img src=\""+this.listDatas.steps[i].avatar+"\">\n" +
|
|
" </div>\n" +
|
|
" </div>\n" +
|