|
@@ -81,12 +81,13 @@ namespace GFGGame
|
|
item.m_btnLook.onClick.Add(OnClickBtnLook);
|
|
item.m_btnLook.onClick.Add(OnClickBtnLook);
|
|
}
|
|
}
|
|
item.target.data = index;
|
|
item.target.data = index;
|
|
|
|
+ item.m_btnLook.data = index;
|
|
|
|
|
|
}
|
|
}
|
|
private async void OnClickBtnLook(EventContext context)
|
|
private async void OnClickBtnLook(EventContext context)
|
|
{
|
|
{
|
|
if (!_canShowContent) return;
|
|
if (!_canShowContent) return;
|
|
- int index = (int)(context.data as GObject).data;
|
|
|
|
|
|
+ int index = (int)(context.sender as GObject).data;
|
|
int childIndex = (int)_ui.m_list.ItemIndexToChildIndex(index);
|
|
int childIndex = (int)_ui.m_list.ItemIndexToChildIndex(index);
|
|
bool result = await MailSProxy.ReqMailContent(mailDataMgr.mailInfos[childIndex].mailId);
|
|
bool result = await MailSProxy.ReqMailContent(mailDataMgr.mailInfos[childIndex].mailId);
|
|
if (result)
|
|
if (result)
|