|
@@ -30,7 +30,7 @@ export class sign_receive_reward extends base_ui {
|
|
|
this.onButtonListen(this.btn_receive, ()=>{
|
|
|
this.requestUserSign(false)
|
|
|
})
|
|
|
- this.btn_double.getComponent(Animation).play()
|
|
|
+
|
|
|
this.onButtonListen(this.btn_double, ()=>{
|
|
|
GameManager.showVideoAd(config.ADS_TYPE.GAME_SIGN_DOUBLE, (res)=>{
|
|
|
this.requestUserSign(true)
|
|
@@ -42,7 +42,7 @@ export class sign_receive_reward extends base_ui {
|
|
|
this.m_reward_data = data
|
|
|
this.m_cb = cb
|
|
|
this.img_title.getComponent(Sprite).spriteFrame = this.sf_dangrihuode
|
|
|
- this.node_btn.active = true
|
|
|
+ this.showNodeBtn(true)
|
|
|
tools.loadRemoteImg(data.icon, (d)=>{
|
|
|
this.img_icon.getComponent(Sprite).spriteFrame = d.sf
|
|
|
})
|
|
@@ -52,7 +52,7 @@ export class sign_receive_reward extends base_ui {
|
|
|
|
|
|
initReceiveSuccess(data:sign_total_reward_data) {
|
|
|
this.img_title.getComponent(Sprite).spriteFrame = this.sf_gongxihuode
|
|
|
- this.node_btn.active = false
|
|
|
+ this.showNodeBtn(false)
|
|
|
tools.loadRemoteImg(data.icon, (d)=>{
|
|
|
this.img_icon.getComponent(Sprite).spriteFrame = d.sf
|
|
|
})
|
|
@@ -66,15 +66,25 @@ export class sign_receive_reward extends base_ui {
|
|
|
|
|
|
private showRewardDetails(is_double:boolean) {
|
|
|
this.img_title.getComponent(Sprite).spriteFrame = this.sf_gongxihuode
|
|
|
- this.node_btn.active = false
|
|
|
+ this.showNodeBtn(false)
|
|
|
if(is_double) {
|
|
|
let count = this.m_reward_data.quantity * 2
|
|
|
this.setLabCount(count)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ private showNodeBtn(is_show:boolean) {
|
|
|
+ if(is_show) {
|
|
|
+ this.node_btn.active = true
|
|
|
+ this.btn_double.getComponent(Animation).play()
|
|
|
+ } else {
|
|
|
+ this.node_btn.active = false
|
|
|
+ this.btn_double.getComponent(Animation).stop()
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
private closeSelf() {
|
|
|
- this.btn_double.getComponent(Animation).stop()
|
|
|
+ this.showNodeBtn(false)
|
|
|
this.node.active = false
|
|
|
}
|
|
|
|