|
@@ -177,6 +177,7 @@ namespace GFGGame
|
|
_ui.m_list.visible = true;
|
|
_ui.m_list.visible = true;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ // ReSharper disable Unity.PerformanceAnalysis
|
|
private void ListItemRender(int index, GObject obj)
|
|
private void ListItemRender(int index, GObject obj)
|
|
{
|
|
{
|
|
ShopCfg shopCfg = _shopCfgList[index];
|
|
ShopCfg shopCfg = _shopCfgList[index];
|
|
@@ -187,11 +188,11 @@ namespace GFGGame
|
|
//返利包
|
|
//返利包
|
|
item.m_txtTitle.text = itemCfg.name;
|
|
item.m_txtTitle.text = itemCfg.name;
|
|
item.m_txtWeekPrompt.visible = false;
|
|
item.m_txtWeekPrompt.visible = false;
|
|
- item.m_icoWeekPromptTag.visible = false;
|
|
|
|
|
|
+ item.m_btnIcoWeekPromptTag.visible = false;
|
|
if (itemCfg.param2Arr.Length != 0)
|
|
if (itemCfg.param2Arr.Length != 0)
|
|
{
|
|
{
|
|
item.m_txtWeekPrompt.visible = true;
|
|
item.m_txtWeekPrompt.visible = true;
|
|
- item.m_icoWeekPromptTag.visible = true;
|
|
|
|
|
|
+ item.m_btnIcoWeekPromptTag.visible = true;
|
|
item.m_txtWeekPrompt.text = string.Format("连续{0}天每日获得", itemCfg.param2Arr[0]);
|
|
item.m_txtWeekPrompt.text = string.Format("连续{0}天每日获得", itemCfg.param2Arr[0]);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -246,7 +247,7 @@ namespace GFGGame
|
|
item.m_txtUrc.text = string.Format("今日剩余{0}/{1}", remainBuyNum, shopCfg.maxBuyNum);
|
|
item.m_txtUrc.text = string.Format("今日剩余{0}/{1}", remainBuyNum, shopCfg.maxBuyNum);
|
|
item.m_txtLrc.text = string.Format("可获得{0}会员积分", shopCfg.price * 10);
|
|
item.m_txtLrc.text = string.Format("可获得{0}会员积分", shopCfg.price * 10);
|
|
item.m_txtWeekPrompt.visible = false;
|
|
item.m_txtWeekPrompt.visible = false;
|
|
- item.m_icoWeekPromptTag.visible = false;
|
|
|
|
|
|
+ item.m_btnIcoWeekPromptTag.visible = false;
|
|
numItems = childItemCfg.itemsArr.Length;
|
|
numItems = childItemCfg.itemsArr.Length;
|
|
|
|
|
|
if (remainBuyNum == 0)
|
|
if (remainBuyNum == 0)
|
|
@@ -288,7 +289,7 @@ namespace GFGGame
|
|
item.m_txtWeekPrompt.text =
|
|
item.m_txtWeekPrompt.text =
|
|
string.Format("连续{0}天每日获得",
|
|
string.Format("连续{0}天每日获得",
|
|
itemCfg.param2Arr[0] + 1); //NumberUtil.GetChiniseNumberText(itemCfg.param2Arr[0])
|
|
itemCfg.param2Arr[0] + 1); //NumberUtil.GetChiniseNumberText(itemCfg.param2Arr[0])
|
|
- item.m_icoWeekPromptTag.visible = true;
|
|
|
|
|
|
+ item.m_btnIcoWeekPromptTag.visible = true;
|
|
|
|
|
|
numItems = childItemCfg.param1Arr.Length;
|
|
numItems = childItemCfg.param1Arr.Length;
|
|
|
|
|
|
@@ -334,8 +335,8 @@ namespace GFGGame
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- item.m_icoWeekPromptTag.onClick.Add(RuleController.ShowRuleView);
|
|
|
|
- item.m_icoWeekPromptTag.data = 300013;
|
|
|
|
|
|
+ item.m_btnIcoWeekPromptTag.onClick.Add(RuleController.ShowRuleView);
|
|
|
|
+ item.m_btnIcoWeekPromptTag.data = 300013;
|
|
//领取按钮点击事件
|
|
//领取按钮点击事件
|
|
item.m_btnCurReceive.target.onClick.Add(OnBtnCurReceiveClick);
|
|
item.m_btnCurReceive.target.onClick.Add(OnBtnCurReceiveClick);
|
|
//购买按钮点击事件
|
|
//购买按钮点击事件
|
|
@@ -347,6 +348,7 @@ namespace GFGGame
|
|
}
|
|
}
|
|
|
|
|
|
//领取按钮点击事件
|
|
//领取按钮点击事件
|
|
|
|
+ // ReSharper disable Unity.PerformanceAnalysis
|
|
private void OnBtnCurReceiveClick(EventContext context)
|
|
private void OnBtnCurReceiveClick(EventContext context)
|
|
{
|
|
{
|
|
GObject sender = context.sender as GObject;
|
|
GObject sender = context.sender as GObject;
|
|
@@ -365,6 +367,7 @@ namespace GFGGame
|
|
}
|
|
}
|
|
|
|
|
|
//购买按钮点击事件
|
|
//购买按钮点击事件
|
|
|
|
+ // ReSharper disable Unity.PerformanceAnalysis
|
|
private void OnBtnBuyClick(EventContext context)
|
|
private void OnBtnBuyClick(EventContext context)
|
|
{
|
|
{
|
|
GObject sender = context.sender as GObject;
|
|
GObject sender = context.sender as GObject;
|
|
@@ -396,6 +399,7 @@ namespace GFGGame
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ // ReSharper disable Unity.PerformanceAnalysis
|
|
private void ChildListItemRender(int index, GObject obj)
|
|
private void ChildListItemRender(int index, GObject obj)
|
|
{
|
|
{
|
|
UI_ComRewardIconItem uiItemChild = UI_ComRewardIconItem.Proxy(obj);
|
|
UI_ComRewardIconItem uiItemChild = UI_ComRewardIconItem.Proxy(obj);
|
|
@@ -450,6 +454,8 @@ namespace GFGGame
|
|
GoodsItemTipsController.ShowItemTips(itemCfg.id);
|
|
GoodsItemTipsController.ShowItemTips(itemCfg.id);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ // ReSharper disable Unity.PerformanceAnalysis
|
|
|
|
+ // ReSharper disable Unity.PerformanceAnalysis
|
|
private async void OnClickBtnSure()
|
|
private async void OnClickBtnSure()
|
|
{
|
|
{
|
|
if (_maxTimes > 0 && (_buyTimes + _count) > _maxTimes)
|
|
if (_maxTimes > 0 && (_buyTimes + _count) > _maxTimes)
|
|
@@ -504,6 +510,7 @@ namespace GFGGame
|
|
}
|
|
}
|
|
|
|
|
|
//购买连续礼包之后,更新数据+更新界面
|
|
//购买连续礼包之后,更新数据+更新界面
|
|
|
|
+ // ReSharper disable Unity.PerformanceAnalysis
|
|
private void UpDayRebateAndView(EventContext context)
|
|
private void UpDayRebateAndView(EventContext context)
|
|
{
|
|
{
|
|
ShopCfg shopCfg = context.data as ShopCfg;
|
|
ShopCfg shopCfg = context.data as ShopCfg;
|