gm刷冲描述修改 ,特权特权激活修改
parent
f591f0c76e
commit
56cdd1b8d3
|
@ -178,7 +178,7 @@ function this.RefreshItemNum()
|
||||||
Util.SetGray(this.btnFastExplore, fastBuyNum == 0 and freeTimes == 0)
|
Util.SetGray(this.btnFastExplore, fastBuyNum == 0 and freeTimes == 0)
|
||||||
|
|
||||||
--local isActive = PrivilegeManager.GetPrivilegeOpenStatusById(12)
|
--local isActive = PrivilegeManager.GetPrivilegeOpenStatusById(12)
|
||||||
local isActive =OperatingManager.IsBuyGift(2202)
|
local isActive =OperatingManager.IsBuyGift(2202) or ActivityGiftManager.GetActivityInfo(ActivityTypeDef.shuaChongTeQuan,2202).state>0
|
||||||
--Util.SetGray(this.privilegeIcon, not isActive)
|
--Util.SetGray(this.privilegeIcon, not isActive)
|
||||||
this.privilegeTimeBg:SetActive(false)
|
this.privilegeTimeBg:SetActive(false)
|
||||||
--this.privilegeGo:SetActive(not isActive)
|
--this.privilegeGo:SetActive(not isActive)
|
||||||
|
|
|
@ -65,11 +65,12 @@ function GMShuaChongTeQuan:InitComponent()
|
||||||
local activityId=_TabData[_index].id
|
local activityId=_TabData[_index].id
|
||||||
local recharge=ConfigManager.GetConfigData(ConfigName.RechargeCommodityConfig,activityId)
|
local recharge=ConfigManager.GetConfigData(ConfigName.RechargeCommodityConfig,activityId)
|
||||||
local len= #recharge.OpenPrivilege
|
local len= #recharge.OpenPrivilege
|
||||||
local lv=recharge.BTVIPlevel[1][2]
|
local lv=_index --recharge.BTVIPlevel[1][2]
|
||||||
local len=#recharge.OpenPrivilege
|
local len=#recharge.OpenPrivilege
|
||||||
local mission=ActivityGiftManager.GetActivityInfo(ActivityTypeDef.shuaChongTeQuan,activityId)
|
local mission=ActivityGiftManager.GetActivityInfo(ActivityTypeDef.shuaChongTeQuan,activityId)
|
||||||
local state=mission.state
|
local state=mission.state
|
||||||
|
|
||||||
|
|
||||||
if state==0 then
|
if state==0 then
|
||||||
self.payTxt.text=recharge.Price.."元"
|
self.payTxt.text=recharge.Price.."元"
|
||||||
self.hint2Txt.gameObject:SetActive(true)
|
self.hint2Txt.gameObject:SetActive(true)
|
||||||
|
|
Loading…
Reference in New Issue