特惠商城显示修改

dev_chengFeng hotfix/you_gu/cdn_xiao7_and/1.1.18
wangzhenxing 2023-01-24 09:46:00 +08:00
parent 32dc05ef86
commit bf382d665c
1 changed files with 8 additions and 1 deletions

View File

@ -330,7 +330,14 @@ end
function GiftPre:SetType2()
self.type2.gameObject:SetActive(true)
--self.type2Text1.text = self.data.data.shows[1][2]/1000
if self.data.data.shopItemData and self.data.data.shopItemData.GainCrystals then
self.type2Text1.text=self.data.data.shopItemData.GainCrystal[1][2]
else
self.type2Text1.text = self.data.data.shows[1][2]
end
--LogError("aaaa=="..self.data.data.shows[1][2])
self.type2Text2.text=self.data.data.shopItemData.Rebate
if GetCurLanguage() == 0 then
self.type2Text1.gameObject:GetComponent("RectTransform").anchoredPosition = offSetX[0].txt1