|
@@ -110,6 +110,7 @@ export class car_lib_bottom extends base_ui {
|
|
updateNumStatus(is_reload_data:boolean=false) {
|
|
updateNumStatus(is_reload_data:boolean=false) {
|
|
this.lab_num.getComponent(Label).string = this.num_current_count + '/' + this.num_total_count
|
|
this.lab_num.getComponent(Label).string = this.num_current_count + '/' + this.num_total_count
|
|
if(is_reload_data) {
|
|
if(is_reload_data) {
|
|
|
|
+ this.current_select_list_item = null
|
|
this.data_list = tools.all_car_page_list[this.getNumCurrentIndex()]
|
|
this.data_list = tools.all_car_page_list[this.getNumCurrentIndex()]
|
|
this.reloadListContentData()
|
|
this.reloadListContentData()
|
|
}
|
|
}
|
|
@@ -149,16 +150,20 @@ export class car_lib_bottom extends base_ui {
|
|
}
|
|
}
|
|
|
|
|
|
onClickListItem(item:car_lib_list_item) {
|
|
onClickListItem(item:car_lib_list_item) {
|
|
- if(this.current_select_list_item.getData().id == item.getData().id) {
|
|
|
|
- return
|
|
|
|
|
|
+ if(this.current_select_list_item!=null) {
|
|
|
|
+ if(this.current_select_list_item.getData().id == item.getData().id) {
|
|
|
|
+ return
|
|
|
|
+ }
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
if(item.getIsJiesuo()==false) {
|
|
if(item.getIsJiesuo()==false) {
|
|
console.log('解锁 解锁 解锁')
|
|
console.log('解锁 解锁 解锁')
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
|
|
- this.current_select_list_item.setUnselectedStatus()
|
|
|
|
|
|
+ if(this.current_select_list_item!=null) {
|
|
|
|
+ this.current_select_list_item.setUnselectedStatus()
|
|
|
|
+ }
|
|
item.setSelectedStatus()
|
|
item.setSelectedStatus()
|
|
this.current_select_list_item = item
|
|
this.current_select_list_item = item
|
|
|
|
|