bug fix
This commit is contained in:
@@ -16,6 +16,8 @@ export class PurchasePanelItem extends Component {
|
||||
|
||||
@property(Sprite)
|
||||
icon: Sprite;
|
||||
@property(Sprite)
|
||||
usdt: Sprite;
|
||||
|
||||
baseView: PurchasePanel;
|
||||
goodId: number;
|
||||
@@ -43,11 +45,13 @@ export class PurchasePanelItem extends Component {
|
||||
path += "ui/shop/coin/";
|
||||
const price = shopData.getOriginalUsdPriceById(this.goodId);
|
||||
this.price.string = price.toString();
|
||||
this.usdt.node.active = true;
|
||||
} //cash
|
||||
else {
|
||||
path += "ui/shop/cash/";
|
||||
const price = shopData.getOriginalPriceById(this.goodId);
|
||||
this.price.string = "₹" + price.toString();
|
||||
this.usdt.node.active = false;
|
||||
}
|
||||
path += this.goodId;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user