|
@@ -42,6 +42,20 @@ export class car_lib_list_item extends Component {
|
|
|
this.img_kuang.active = true
|
|
|
}
|
|
|
this.img_keduihuan.active = false
|
|
|
+
|
|
|
+ this.setSuipianOperation()
|
|
|
+ }
|
|
|
+
|
|
|
+ public setSuipianOperation() {
|
|
|
+ if(this.m_data.stype==car_type.suipian) {
|
|
|
+ if(this.m_data.temp_bag_list_item_data.quantity>=this.m_data.unlock_points) {
|
|
|
+ this.img_suo.active = false
|
|
|
+ this.img_keduihuan.active = true
|
|
|
+ } else {
|
|
|
+ this.img_suo.active = true
|
|
|
+ this.img_keduihuan.active = false
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
public getData():car_item_data{
|
|
@@ -75,15 +89,5 @@ export class car_lib_list_item extends Component {
|
|
|
public setUnselectedStatus() {
|
|
|
this.node.getComponent(Sprite).spriteFrame = this.sf_bg_unselect
|
|
|
}
|
|
|
-
|
|
|
- public setSuipianOperation() {
|
|
|
- if(this.m_data.temp_bag_list_item_data.quantity>=this.m_data.unlock_points) {
|
|
|
- this.img_suo.active = false
|
|
|
- this.img_keduihuan.active = true
|
|
|
- } else {
|
|
|
- this.img_suo.active = true
|
|
|
- this.img_keduihuan.active = false
|
|
|
- }
|
|
|
- }
|
|
|
}
|
|
|
|