mm
This commit is contained in:
@@ -13,6 +13,7 @@ function TRPBindPhone:init(csObj)
|
||||
uiobjs.scrollview = getCC(self.transform, "PanelContent", "UIScrollView")
|
||||
uiobjs.scrollview.dampenStrength = MyUtl.dampenStrength
|
||||
uiobjs.formRoot = getCC(uiobjs.scrollview.transform, "Table", "CLUIFormRoot")
|
||||
uiobjs.ButtonAuth = getChild(uiobjs.formRoot.transform, "ButtonAuth").gameObject
|
||||
self:setEventDelegate()
|
||||
end
|
||||
|
||||
@@ -30,6 +31,9 @@ end
|
||||
|
||||
-- 刷新
|
||||
function TRPBindPhone:refresh()
|
||||
local user = DBUser.getMyInfor()
|
||||
printe("user.ifPhoAuth")
|
||||
SetActive(uiobjs.ButtonAuth, user.ifPhoAuth ~= "Y" or false)
|
||||
end
|
||||
|
||||
-- 关闭页面
|
||||
@@ -49,7 +53,10 @@ end
|
||||
function TRPBindPhone:setEventDelegate()
|
||||
self.EventDelegate = {
|
||||
ButtonModify = function()
|
||||
getPanelAsy("PanelResetPasswordStep1", onLoadedPanelTT, {phone = self.mdata.phone, isBindPhone = true})
|
||||
getPanelAsy("PanelResetPasswordStep1", onLoadedPanelTT, {isBindPhone = true})
|
||||
end,
|
||||
ButtonAuth = function()
|
||||
getPanelAsy("PanelResetPasswordStep1", onLoadedPanelTT, {phone = self.mdata.phoneNo, isAuth = true})
|
||||
end
|
||||
}
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user