|
@@ -6,7 +6,7 @@ import { car_lib_page_item } from './car_lib_page_item';
|
|
|
import { uiManager } from '../../manager/uiManager';
|
|
|
import { config } from '../../config';
|
|
|
import { GameManager } from '../../GameManager';
|
|
|
-import { bag_type } from '../../data';
|
|
|
+import { bag_type, car_type } from '../../data';
|
|
|
import { car_info } from '../car_info/car_info';
|
|
|
import { SdkUtil } from '../../sdkUtil';
|
|
|
const { ccclass, property } = _decorator;
|
|
@@ -91,13 +91,15 @@ export class car_lib_bottom extends base_ui {
|
|
|
|
|
|
private onClickListItem(page_item:car_lib_page_item,list_item:car_lib_list_item) {
|
|
|
let car_item_data = list_item.getData()
|
|
|
- let cur_count = car_item_data.temp_bag_list_item_data.quantity
|
|
|
- if(cur_count-car_item_data.unlock_points>=0) {
|
|
|
- // 直接显示兑换车辆视图
|
|
|
- GameManager.showExchangeCarView(car_item_data.id,car_item_data.temp_bag_list_item_data.icon,car_item_data.temp_bag_list_item_data.quantity, ()=>{
|
|
|
- list_item.setJiesuoSelectedStatus()
|
|
|
- })
|
|
|
- return
|
|
|
+ if(list_item.getIsJiesuo()==false&&car_item_data.stype==car_type.suipian) {
|
|
|
+ let cur_count = car_item_data.temp_bag_list_item_data.quantity
|
|
|
+ if(cur_count-car_item_data.unlock_points>=0) {
|
|
|
+ // 直接显示兑换车辆视图
|
|
|
+ GameManager.showExchangeCarView(car_item_data.id,car_item_data.temp_bag_list_item_data.icon,car_item_data.temp_bag_list_item_data.quantity, ()=>{
|
|
|
+ list_item.setJiesuoSelectedStatus()
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
}
|
|
|
uiManager.Instance().showUi(config.UI.ui_car_info,this.game_status_parent!=null?this.game_status_parent:null, (node:Node)=>{
|
|
|
let car_info_component = node.getComponent(car_info)
|