示例#1
0
        public void SetData(ShopModel shopModel, int jumppage = 0)
        {
            _shopModel = shopModel;
            vipTran.SetActive(AppConfig.Instance.SwitchControl.Recharge);
            _giftpackMallList =
                shopModel.GetTargetRmbMallList(MallLabelPB.LabelBestSellers);    //(int)ShopModel.PageIndex.GiftPage
            _vipMallList = shopModel.GetTargetRmbMallList(MallLabelPB.LabelVip); //(int)ShopModel.PageIndex.VipPage
            _gemMallList =
                shopModel.GetTargetGameMallList(MallLabelPB.LabelResources);     //(int)ShopModel.PageIndex.GemPage
            _newPlayerMallList = shopModel.GetTargetRmbMallList(MallLabelPB.LabelNovice);
            _cardShopMallList  = shopModel.GetTargetRmbMallList(MallLabelPB.LabelStar);
            //_goldGameMalllist = shopModel.GetTargetGameMallList(MallLabelPB.LabelGold);//(int)ShopModel.PageIndex.GoldPage
            _buyGemMalllist = shopModel.GetBuyGemRmbMallList;
//            Debug.LogError(_giftpackMallList.Count + " " + _vipMallList.Count + " " + _newPlayerMallList.Count + " " +
//                           _cardShopMallList.Count);
            _costGem          = shopModel.GetMallRefreshGoldCost(shopModel.UserBuyMallInfoPb.GoldRefreshNum + 1);
            _refreshcost.text = _costGem.ToString(); //I18NManager.Get("Shop_CostGem",_costGem);
            if (jumppage != 0)
            {
                _curpage = jumppage;
                RefreshPageData(jumppage);
                SetToggleShow(jumppage);
            }
            else
            {
                RefreshPageData(_curpage != 0 ? _curpage : 0);
            }

            _reddot.SetActive(shopModel.HasFreeGemMall());
            SetVIPState();
        }
示例#2
0
    public void SetData(ShopModel shopModel)
    {
        //逻辑:先设置免费的,然后设置RMBmallvo哪些。
        _shopModel         = shopModel;
        _userBuyGameMallVo = shopModel.GetFreeGift;
        if (_userBuyGameMallVo != null)
        {
            _gameMallVo = shopModel.GameMallDic[_userBuyGameMallVo.MallId];
//            SetFreeAward(_gameMallVo.Award);
//            _des.text = _userBuyGameMallVo.BuyNum > 0 ? I18NManager.Get("Shop_TodayHasBug") : I18NManager.Get("Shop_DailyBuyLimit");
//            _get.image.color=_userBuyGameMallVo.BuyNum > 0 ? Color.grey : Color.white;
//            _price.text=_userBuyGameMallVo.BuyNum > 0 ? I18NManager.Get("Common_AlreadyGet") : I18NManager.Get("Common_Free");
            _rmbMallVos = shopModel.GetTargetRmbMallList(MallLabelPB.LabelDailyGift);

            SetRmbDailyGift(_rmbMallVos);
        }
        else
        {
            _get.gameObject.SetActive(false);
            _des.gameObject.SetActive(false);
        }
    }