Ejemplo n.º 1
0
        //推荐物品按钮选择回调
        public void OnBtnRecommendSelected(UButtonGroupItem _item, bool _bSelect)
        {
            if (_bSelect)
            {
                SwitchSubWndPage(EGoodsStoreSubView.EGSSV_RecommendGoods, _bSelect);

                if (DispositionGoodsView != null)
                {
                    DispositionGoodsView.OnDispositionSelect(0);
                }
            }
        }
Ejemplo n.º 2
0
        // 推荐物品按钮选择
        public void OnOtherTabItemSelected(UButtonGroupItem _item, bool _bSelect)
        {
            if (_bSelect)
            {
                SwitchSubWndPage(EGoodsStoreSubView.EGSSV_RecommendGoods, _bSelect);

                UWarGoodsStoreTabItem tmpItem = _item as UWarGoodsStoreTabItem;
                if (tmpItem != null && DispositionGoodsView != null)
                {
                    //因为前两个TabItem序号是默认推荐物品(0)和所有物品(1),所以,序号需要往前移1位
                    DispositionGoodsView.OnDispositionSelect(tmpItem.ItemIndex - 1);
                }
            }
        }