| | |
| | | ItemConfig chinModel = ItemConfig.Get(m_storeModel.GetReplaceId(shopInfo.ID,shopInfo.ItemID));
|
| | | if (chinModel != null)
|
| | | {
|
| | | ItemCellModel cellModel = new ItemCellModel(chinModel.ID,false, 0, shopInfo.IsBind);
|
| | | ItemCellModel cellModel = new ItemCellModel(chinModel.ID,false, 0);
|
| | | shopItemCell.itemCell.Init(cellModel);
|
| | | shopItemCell.itemNameText.text = chinModel.ItemName;
|
| | | shopItemCell.itemNameText.color = UIHelper.GetUIColor(chinModel.ItemColor);
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | shopItemCell.itemCell.countText.text = StringUtility.Contact(UIHelper.AppendStringColor(TextColType.Red, remainNum.ToString()),
|
| | | shopItemCell.itemCell.countText.text = StringUtility.Contact(UIHelper.AppendColor(TextColType.Red, remainNum.ToString()),
|
| | | "/" + canBuyCnt.ToString());
|
| | | shopItemCell.sellImage.gameObject.SetActive(true);
|
| | | shopItemCell.buyBtn.gameObject.SetActive(false);
|