|
@@ -77,14 +77,14 @@ namespace GFGGame
|
|
item.m_txtName.text = shopCfg.itemName;
|
|
item.m_txtName.text = shopCfg.itemName;
|
|
item.m_icon.url = ResPathUtil.GetIconPath(itemCfg);
|
|
item.m_icon.url = ResPathUtil.GetIconPath(itemCfg);
|
|
|
|
|
|
- item.m_grpDiscount.visible = shopCfg.price < shopCfg.originalPrice;
|
|
|
|
|
|
+ item.m_grpDiscount.visible = shopCfg.Price < shopCfg.originalPrice;
|
|
if (item.m_grpDiscount.visible)
|
|
if (item.m_grpDiscount.visible)
|
|
{
|
|
{
|
|
EffectUI _effectUI = EffectUIPool.CreateEffectUI(item.m_holderfEff, "ui_Small_parts", "store_Value");
|
|
EffectUI _effectUI = EffectUIPool.CreateEffectUI(item.m_holderfEff, "ui_Small_parts", "store_Value");
|
|
_effectUIs.Add(_effectUI);
|
|
_effectUIs.Add(_effectUI);
|
|
- item.m_holderfEff.visible = shopCfg.price < shopCfg.originalPrice;
|
|
|
|
|
|
+ item.m_holderfEff.visible = shopCfg.Price < shopCfg.originalPrice;
|
|
}
|
|
}
|
|
- item.m_txtDesc.text = shopCfg.price <= 0 ? "" : ShopDataManager.Instance.GetShopGoodsDiscount(shopCfg.id).ToString();
|
|
|
|
|
|
+ item.m_txtDesc.text = shopCfg.Price <= 0 ? "" : ShopDataManager.Instance.GetShopGoodsDiscount(shopCfg.id).ToString();
|
|
|
|
|
|
item.m_txtEndTime.SetVar("value", ShopDataManager.Instance.GetEndTime(shopCfg.id)).FlushVars();
|
|
item.m_txtEndTime.SetVar("value", ShopDataManager.Instance.GetEndTime(shopCfg.id)).FlushVars();
|
|
item.m_txtEndTime.visible = shopCfg.endTime != "";
|
|
item.m_txtEndTime.visible = shopCfg.endTime != "";
|
|
@@ -100,11 +100,11 @@ namespace GFGGame
|
|
if (item.m_c1.selectedIndex == 0)//可购买
|
|
if (item.m_c1.selectedIndex == 0)//可购买
|
|
{
|
|
{
|
|
item.m_btnBuy.m_txtOriginalPrice.text = NumberUtil.ChangeNumberUnit(shopCfg.originalPrice);
|
|
item.m_btnBuy.m_txtOriginalPrice.text = NumberUtil.ChangeNumberUnit(shopCfg.originalPrice);
|
|
- if (shopCfg.price > 0 && shopCfg.costType != CostType.FREE)//不免费
|
|
|
|
|
|
+ if (shopCfg.Price > 0 && shopCfg.costType != CostType.FREE)//不免费
|
|
{
|
|
{
|
|
- item.m_btnBuy.m_grpOriginalPrice.visible = shopCfg.originalPrice > 0 && shopCfg.originalPrice != shopCfg.price;
|
|
|
|
|
|
+ item.m_btnBuy.m_grpOriginalPrice.visible = shopCfg.originalPrice > 0 && shopCfg.originalPrice != shopCfg.Price;
|
|
item.m_btnBuy.m_loaIcon.visible = true;
|
|
item.m_btnBuy.m_loaIcon.visible = true;
|
|
- item.m_btnBuy.m_txtPrice.text = NumberUtil.ChangeNumberUnit(shopCfg.price);// cfg.price.ToString();
|
|
|
|
|
|
+ item.m_btnBuy.m_txtPrice.text = NumberUtil.ChangeNumberUnit(shopCfg.Price);// cfg.price.ToString();
|
|
|
|
|
|
if (shopCfg.costType == CostType.RMB)//人民币
|
|
if (shopCfg.costType == CostType.RMB)//人民币
|
|
{
|
|
{
|
|
@@ -134,7 +134,7 @@ namespace GFGGame
|
|
item.target.onClick.Add(OnBtnBugItem);
|
|
item.target.onClick.Add(OnBtnBugItem);
|
|
}
|
|
}
|
|
item.target.data = shopCfg;
|
|
item.target.data = shopCfg;
|
|
- bool isRed = item.m_c1.selectedIndex == 0 && item.m_c2.selectedIndex == 0 && shopCfg.price == 0;
|
|
|
|
|
|
+ bool isRed = item.m_c1.selectedIndex == 0 && item.m_c2.selectedIndex == 0 && shopCfg.Price == 0;
|
|
|
|
|
|
RedDotController.Instance.SetComRedDot(item.target, isRed, "", -6, 100);
|
|
RedDotController.Instance.SetComRedDot(item.target, isRed, "", -6, 100);
|
|
UI_ListShopItem.ProxyEnd();
|
|
UI_ListShopItem.ProxyEnd();
|