|
@@ -90,7 +90,7 @@ export class attributes_count_down extends Component {
|
|
|
|
|
|
}
|
|
|
public update_att(data:att_count_down){
|
|
|
- this.m_data = data;
|
|
|
+ this.m_data = data;
|
|
|
this.ProgressBar_Bg.getComponent(question_btn_info).initView(this.m_data.ProgressBar_Bg,1,null,config.attributes_list_type.count_down)
|
|
|
this.ProgressBar_Bar.getComponent(question_btn_info).initView(this.m_data.ProgressBar_Bar,2,null,config.attributes_list_type.count_down)
|
|
|
this.img_text.getComponent(question_btn_info).initView(this.m_data.img_text,3,null,config.attributes_list_type.count_down)
|
|
@@ -103,7 +103,10 @@ export class attributes_count_down extends Component {
|
|
|
|
|
|
change(){
|
|
|
this.m_data.is_show_time = this.toggle_enbale_time.getComponent(Toggle).isChecked ;
|
|
|
- this.m_data.time_count = parseInt(this.edit_down_count_time.getComponent(EditBox).string);
|
|
|
+ let down_count_time = this.edit_down_count_time.getComponent(EditBox).string
|
|
|
+ if(down_count_time.length>0) {
|
|
|
+ this.m_data.time_count = parseInt(this.edit_down_count_time.getComponent(EditBox).string);
|
|
|
+ }
|
|
|
if(this.call_back!=null){
|
|
|
this.call_back(this.m_data)
|
|
|
}
|