future 1 year ago
parent
commit
c26f0355c5

+ 1 - 1
assets/script/ui/bag/bag_avatar_preview.ts

@@ -61,7 +61,7 @@ export class bag_avatar_preview extends base_ui {
                     userDataManager.user_data.avatar_id = this.m_data.item_id
                     userDataManager.user_data.avatar_id = this.m_data.item_id
                     userDataManager.user_data.photo_frame_img = this.m_data.icon
                     userDataManager.user_data.photo_frame_img = this.m_data.icon
                     ClientEvent.dispatchEvent(config.UI_EVENT.UPDATE_USER_INFO)
                     ClientEvent.dispatchEvent(config.UI_EVENT.UPDATE_USER_INFO)
-                    uiManager.showToast('相框设置成功')
+                    uiManager.showToast('相框已装扮')
                     this.m_true_cb  && this.m_true_cb()
                     this.m_true_cb  && this.m_true_cb()
                     this.close()
                     this.close()
                 }
                 }

+ 5 - 1
assets/script/ui/quarter_rank_view/quarter_rank_view.ts

@@ -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 {