排序修改提交
parent
fd9f4248b6
commit
8ec0256d78
|
@ -170,7 +170,7 @@ function this.SortData(allData)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
table.sort(allData, function(a,b)
|
table.sort(allData, function(a,b)
|
||||||
return a.Sort < b.Sort
|
return a.Sequence < b.Sequence
|
||||||
end)
|
end)
|
||||||
return allData
|
return allData
|
||||||
end
|
end
|
||||||
|
@ -234,6 +234,7 @@ function this:SetScrollPre(root,data)
|
||||||
end
|
end
|
||||||
|
|
||||||
local boughtNum = OperatingManager.GetGoodsBuyTime(GoodsTypeDef.DirectPurchaseGift, data.Id) or 0
|
local boughtNum = OperatingManager.GetGoodsBuyTime(GoodsTypeDef.DirectPurchaseGift, data.Id) or 0
|
||||||
|
LogGreen("boughtNum:"..boughtNum)
|
||||||
tip.text =Language[10580].. (data.Limit-boughtNum) ..Language[10048]
|
tip.text =Language[10580].. (data.Limit-boughtNum) ..Language[10048]
|
||||||
buyNum.text =string.format(MoneyUtil.GetMoneyUnitName(), MoneyUtil.GetMoney(data.Price))--shopItemData.Price..MoneyUtil.GetMoneyUnitName()
|
buyNum.text =string.format(MoneyUtil.GetMoneyUnitName(), MoneyUtil.GetMoney(data.Price))--shopItemData.Price..MoneyUtil.GetMoneyUnitName()
|
||||||
if data.Limit - boughtNum > 0 then
|
if data.Limit - boughtNum > 0 then
|
||||||
|
|
Loading…
Reference in New Issue