This commit is contained in:
2020-08-18 17:24:02 +08:00
parent 9b3c793dda
commit 7ff6b2ec35
85 changed files with 6609 additions and 101 deletions

View File

@@ -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