|
|
@@ -111,7 +111,7 @@ cc.Class({
|
|
|
this.ExchangeBtn.setScale(1);
|
|
|
|
|
|
this.SeedBtn.getComponent(cc.Sprite).spriteFrame = this.Normal_Seed_Sprite;
|
|
|
- this.ExchangeBtn.getComponent(cc.Sprite).spriteFrame = this.Normal_Fruit_Sprite;
|
|
|
+ this.ExchangeBtn.getComponent(cc.Sprite).spriteFrame = this.Normal_Exchange_Sprite;
|
|
|
|
|
|
this.SeedBtn.setContentSize(100, 54);
|
|
|
this.ExchangeBtn.setContentSize(100, 54);
|
|
|
@@ -129,35 +129,19 @@ cc.Class({
|
|
|
this.Seed.active = true;
|
|
|
this.SelectedFrame.parent = this.seedNodeArry[0];
|
|
|
|
|
|
- if (this.mySeedList.length > 0) {
|
|
|
- let Synopsis = "成熟期:" + this.mySeedList[0].maturity;
|
|
|
- this.ManageUI.getComponent('ManageUI').onSetButtonInfo(this.mySeedList[0].name, this.mySeedList[0].priceSnb, Synopsis);
|
|
|
- }
|
|
|
+ //if (this.mySeedList.length > 0) {
|
|
|
+ // let Synopsis = "成熟期:" + this.mySeedList[0].maturity;
|
|
|
+ // this.ManageUI.getComponent('ManageUI').onSetButtonInfo(this.mySeedList[0].name, this.mySeedList[0].priceSnb, Synopsis);
|
|
|
+ //}
|
|
|
|
|
|
this.SeedBtn.setSiblingIndex(10);
|
|
|
this.SeedBtn.setContentSize(86, 88);
|
|
|
- // {
|
|
|
- // "id": 1,
|
|
|
- // "mallType": "0",
|
|
|
- // "picture": null,
|
|
|
- // "name": "白菜种子",
|
|
|
- // "maturity": 100,
|
|
|
- // "planting": 100,
|
|
|
- // "harvestQuantity": 2500,
|
|
|
- // "harvestCount": 2500,
|
|
|
- // "harvestName": "大白菜",
|
|
|
- // "price": 99,
|
|
|
- // "amount": 0,
|
|
|
- // "withered": 200,
|
|
|
- // "createTime": "2022-01-10 16:45:18",
|
|
|
- // "updateTime": "2022-01-10 16:45:26"
|
|
|
- // },
|
|
|
}
|
|
|
//兑换
|
|
|
else if ('2' == index) {
|
|
|
- this.FruitBtn.y = -20;
|
|
|
- this.FruitBtn.getComponent(cc.Sprite).spriteFrame = this.Selecteded_Fruit_Sprite;
|
|
|
- this.Fruit.active = true;
|
|
|
+ this.ExchangeBtn.y = -20;
|
|
|
+ this.ExchangeBtn.getComponent(cc.Sprite).spriteFrame = this.Selecteded_Exchange_Sprite;
|
|
|
+ this.Exchange.active = true;
|
|
|
|
|
|
this.ExchangeBtn.setSiblingIndex(10);
|
|
|
this.ExchangeBtn.setContentSize(86, 88);
|