|
@@ -33,10 +33,9 @@ export class rank_list_item extends base_ui {
|
|
|
tools.loadRemoteImg(data.avatarUrl, (r)=>{
|
|
|
this.img_avatar.getComponent(Sprite).spriteFrame = r.sf
|
|
|
})
|
|
|
+ this.lab_nickname.getComponent(Label).string = data.nickName
|
|
|
this.lab_score.getComponent(Label).string = data.score + ' 分'
|
|
|
- let car_info = GameManager.getUserCarInfo(data.user_id,data.car_id)
|
|
|
- this.lab_nickname.getComponent(Label).string = car_info.name //data.nickName
|
|
|
- this.img_car.getComponent(Sprite).spriteFrame = car_info.sf
|
|
|
+ this.img_car.getComponent(Sprite).spriteFrame = GameManager.getUserCarInfo(data.user_id,data.car_id).sf
|
|
|
}
|
|
|
}
|
|
|
|