public void SetData(RmbMallVo vo, UserBuyRmbMallVo uservo, ShopModel buyGemModel = null) { _rmbIcon.gameObject.SetActive(true); _itemRmbVo = vo; mallid = vo.MallId; _userBuyRmbMallVo = uservo; _curmallSortPB = vo.MallSortPb; _isBuyGem = buyGemModel != null; if (vo.MallSortPb == MallSortPB.MallOrdinary && buyGemModel != null && !buyGemModel.HasDoublePrice(vo.RealPrice)) { _isfirstPrice = true; } else { _isfirstPrice = false; } // Debug.LogError(vo.MallName+"_isfirstPrice"+_isfirstPrice); var payvo = GlobalData.PayModel.GetProduct(vo.MallId); if (vo.OriginalPrice > 0) { _primecost.text = payvo?.GetOriginalPrice(vo.OriginalPrice); } var realrmbpoint = payvo != null ? payvo.AmountRmb : vo.RealPrice; _rmbIcon.text = payvo?.Curreny; if (AppConfig.Instance.isChinese == "true" || payvo?.Curreny == Constants.CHINACURRENCY) { _rmbIcon.text = ""; _primecost.text = vo.OriginalPrice + "元"; } _areaprice = payvo?.AreaPrice; if (_isBuyGem) { realrmbpoint = vo.RealPrice * 10; if (vo.RealPrice <= 0) { Debug.LogError("数据异常:" + vo.MallName + " " + vo.OriginalPrice); } } if (uservo != null) { SetCommonUIData(vo.MallName, vo.MallDesc, realrmbpoint, vo.OriginalPrice, DateUtil.GetDay(vo.EndTime - ClientTimer.Instance.GetCurrentTimeStamp()), vo.MallLabelPb, vo.BuyMax, (uservo.BuyNum >= vo.BuyMax && vo.BuyMax != 0), PropConst.GemIconId, vo.Award, vo.GiftImage, uservo.RefreshTime, _itemRmbVo.LabelImage); //(vo.BuyMax - uservo?.BuyNum ?? 0) + "/" + vo.BuyMax } }