|
|
|
@ -75,19 +75,19 @@ function this.SingleDataShow(go, data)
|
|
|
|
|
local btnBuy = Util.GetGameObject(go, "btnBuy")
|
|
|
|
|
local grid = Util.GetGameObject(go, "scrollView/grid")
|
|
|
|
|
local shadow = Util.GetGameObject(go, "shadow")
|
|
|
|
|
local LimitText=Util.GetGameObject(go,"tip/tip1/Image/text"):GetComponent("Text")
|
|
|
|
|
local LimitText=Util.GetGameObject(go,"tip/tip1/text1"):GetComponent("Text")
|
|
|
|
|
|
|
|
|
|
local goodData = OperatingManager.GetGiftGoodsInfo(GoodsTypeDef.DirectPurchaseGift, data.Id)
|
|
|
|
|
local boughtNum = OperatingManager.GetGoodsBuyTime(GoodsTypeDef.DirectPurchaseGift, data.Id) or 0
|
|
|
|
|
local shows = shopItemData.RewardShow
|
|
|
|
|
name.text = GetLanguageStrById(shopItemData.Name)
|
|
|
|
|
|
|
|
|
|
LimitText.text = shopItemData.Limit
|
|
|
|
|
if GetCurLanguage() == 2 then
|
|
|
|
|
LimitText.gameObject.transform.localPosition = Vector3.New(4.7,-5,0)
|
|
|
|
|
else
|
|
|
|
|
LimitText.gameObject.transform.localPosition = Vector3.New(-147,-5,0)
|
|
|
|
|
end
|
|
|
|
|
LimitText.text = string.format(Language[12232], "<color=#FAD88AFF>"..shopItemData.Limit.."</color>")
|
|
|
|
|
-- if GetCurLanguage() == 2 then
|
|
|
|
|
-- LimitText.gameObject.transform.localPosition = Vector3.New(4.7,-5,0)
|
|
|
|
|
-- else
|
|
|
|
|
-- LimitText.gameObject.transform.localPosition = Vector3.New(-147,-5,0)
|
|
|
|
|
-- end
|
|
|
|
|
buyInfo:SetActive( shopItemData.IsDiscount ~= 0 )
|
|
|
|
|
if shopItemData.IsDiscount and shopItemData.IsDiscount > 0 then
|
|
|
|
|
buyInfo:GetComponent("Text").text = Language[10582]..string.format(MoneyUtil.GetMoneyUnitName(), MoneyUtil.GetMoney(shopItemData.Price) / (shopItemData.IsDiscount/10))--shopItemData.Price / (shopItemData.IsDiscount/10)..MoneyUtil.GetMoneyUnitName()
|
|
|
|
|