|  | @@ -36,6 +36,7 @@ namespace GFGGame
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |              _ui.m_list.itemRenderer = ListItemRenderer;
 | 
	
		
			
				|  |  |              _ui.m_listGift.itemRenderer = ListGiftItemRenderer;
 | 
	
		
			
				|  |  | +            _ui.m_listExchange.itemRenderer = ListExchangeItemRenderer;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |              _ui.m_comTab.m_c1.onChanged.Add(OnComTabChange);
 | 
	
		
			
				|  |  |              _ui.m_c1.onChanged.Add(OnTabChange);
 | 
	
	
		
			
				|  | @@ -89,15 +90,16 @@ namespace GFGGame
 | 
	
		
			
				|  |  |          {
 | 
	
		
			
				|  |  |              RechargeCfg itemData = RechargeCfgArray.Instance.dataArray[index];
 | 
	
		
			
				|  |  |              UI_StoreListItem item = UI_StoreListItem.Proxy(obj);
 | 
	
		
			
				|  |  | -            item.m_btnBuy.text = itemData.price.ToString();
 | 
	
		
			
				|  |  | -            if (item.m_btnBuy.data == null)
 | 
	
		
			
				|  |  | +            item.m_btnBuy.m_c1.selectedIndex = 1;
 | 
	
		
			
				|  |  | +            item.m_btnBuy.m_txtTitle.text = itemData.price.ToString();
 | 
	
		
			
				|  |  | +            if (item.m_btnBuy.target.data == null)
 | 
	
		
			
				|  |  |              {
 | 
	
		
			
				|  |  | -                item.m_btnBuy.onClick.Add(() =>
 | 
	
		
			
				|  |  | +                item.m_btnBuy.target.onClick.Add(() =>
 | 
	
		
			
				|  |  |                  {
 | 
	
		
			
				|  |  |                      RechargeSProxy.ReqRecharge(itemData.id).Coroutine();
 | 
	
		
			
				|  |  |                  });
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  | -            item.m_btnBuy.data = index;
 | 
	
		
			
				|  |  | +            item.m_btnBuy.target.data = index;
 | 
	
		
			
				|  |  |              item.m_txtName.text = string.Format("{0}{1}", itemData.itemNum, itemData.name);
 | 
	
		
			
				|  |  |              item.m_txtDesc.text = string.Format("首充赠送+{0}{1}", itemData.itemNum, itemData.name);
 | 
	
		
			
				|  |  |              item.m_imgDouble.visible = RechargeDataManager.Instance.GetRechargeBuyNumById(itemData.id) <= itemData.doubleTimes;
 | 
	
	
		
			
				|  | @@ -153,7 +155,7 @@ namespace GFGGame
 | 
	
		
			
				|  |  |                      else
 | 
	
		
			
				|  |  |                      {
 | 
	
		
			
				|  |  |                          ItemCfg itemCfg = ItemCfgArray.Instance.GetCfg(cfg.costId);
 | 
	
		
			
				|  |  | -                        item.m_loaIcon.url = ResPathUtil.GetIconPath(itemCfg);
 | 
	
		
			
				|  |  | +                        item.m_loaIcon.url = ResPathUtil.GetCommonGameResPath(itemCfg.res);
 | 
	
		
			
				|  |  |                          item.m_loaIcon.visible = true;
 | 
	
		
			
				|  |  |                          item.m_txtIcon.visible = false;
 | 
	
		
			
				|  |  |                      }
 | 
	
	
		
			
				|  | @@ -171,12 +173,37 @@ namespace GFGGame
 | 
	
		
			
				|  |  |                  item.target.onClick.Add(OnBtnBuyClick);
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |              item.target.data = cfg.id;
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +            UI_ListGiftItem.ProxyEnd();
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          private void OnBtnBuyClick(EventContext context)
 | 
	
		
			
				|  |  |          {
 | 
	
		
			
				|  |  |              GObject btn = context.sender as GObject;
 | 
	
		
			
				|  |  |              ViewManager.Show<GiftBagBuyView>(btn.data);
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        private void ListExchangeItemRenderer(int index, GObject obj)
 | 
	
		
			
				|  |  | +        {
 | 
	
		
			
				|  |  | +            ShopExchangeCfg cfg = ShopExchangeCfgArray.Instance.dataArray[index];
 | 
	
		
			
				|  |  | +            UI_StoreListItem item = UI_StoreListItem.Proxy(obj);
 | 
	
		
			
				|  |  | +            item.m_btnBuy.m_c1.selectedIndex = 0;
 | 
	
		
			
				|  |  | +            item.m_btnBuy.m_txtTitle.text = cfg.costNum.ToString();
 | 
	
		
			
				|  |  | +            if (item.m_btnBuy.target.data == null)
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +                item.m_btnBuy.target.onClick.Add(() =>
 | 
	
		
			
				|  |  | +                {
 | 
	
		
			
				|  |  | +                    // RechargeSProxy.ReqRecharge(cfg.id).Coroutine();
 | 
	
		
			
				|  |  | +                });
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +            ItemCfg itemCfg = ItemCfgArray.Instance.GetCfg(cfg.itemId);
 | 
	
		
			
				|  |  | +            item.m_btnBuy.target.data = cfg.id;
 | 
	
		
			
				|  |  | +            item.m_btnBuy.m_loaIcon.url = ResPathUtil.GetCommonGameResPath(ItemCfgArray.Instance.GetCfg(cfg.costId).res);
 | 
	
		
			
				|  |  | +            item.m_txtName.text = itemCfg.name;
 | 
	
		
			
				|  |  | +            item.m_txtDesc.text = string.Format("剩余:{0}", cfg.maxLimit - RechargeDataManager.Instance.GetExchangeBuyNumById(cfg.id));
 | 
	
		
			
				|  |  | +            item.m_imgDouble.visible = false;
 | 
	
		
			
				|  |  | +            item.m_txtDesc.visible = false;
 | 
	
		
			
				|  |  | +            item.m_icon.url = ResPathUtil.GetIconPath(itemCfg);
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +            UI_StoreListItem.ProxyEnd();
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  }
 |