|
@@ -48,7 +48,7 @@ export class quarter_rank_view extends base_ui {
|
|
if(!err){
|
|
if(!err){
|
|
let data = JSON.parse(d)
|
|
let data = JSON.parse(d)
|
|
if(data.code===config.status.SUCCESS){
|
|
if(data.code===config.status.SUCCESS){
|
|
- // console.log('data=',data.content)
|
|
|
|
|
|
+ console.log('data=',data.content)
|
|
this.lab_date_name.getComponent(Label).string = data.content.date_name
|
|
this.lab_date_name.getComponent(Label).string = data.content.date_name
|
|
this.kuang_content.removeAllChildren()
|
|
this.kuang_content.removeAllChildren()
|
|
for (let index = 0; index < data.content.quarter_rank.length; index++) {
|
|
for (let index = 0; index < data.content.quarter_rank.length; index++) {
|
|
@@ -115,6 +115,10 @@ export class quarter_rank_view extends base_ui {
|
|
item.getComponent(rank_list_item).initQuarterRank(element,index,quarter_rank_data)
|
|
item.getComponent(rank_list_item).initQuarterRank(element,index,quarter_rank_data)
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if(this.page==1) {
|
|
|
|
+ this.rank_scrollView.getComponent(ScrollView).scrollToTop()
|
|
|
|
+ }
|
|
|
|
+
|
|
if(this.page>=total_page_number) {
|
|
if(this.page>=total_page_number) {
|
|
this.is_request = false
|
|
this.is_request = false
|
|
} else {
|
|
} else {
|