This commit is contained in:
2020-07-10 22:33:30 +08:00
parent d7901e444d
commit 3a281cacf4
96 changed files with 3496 additions and 939 deletions

View File

@@ -175,8 +175,8 @@ function TRPNewOrder:showBaseFields()
filedInfor.onMultTextInputChg = self:wrapFunc(self.reposition)
end
if not self.isNewOrder then
filedInfor.onClick = self:wrapFunc(self.onClickInputField4Extend)
filedInfor.onSelect = self:wrapFunc(self.onPopupFieldValChg4Extend)
filedInfor.onClick = self:wrapFunc(self.onClickInputField)
filedInfor.onSelect = self:wrapFunc(self.onPopupFieldValChg)
end
table.insert(param.fields, filedInfor)
end
@@ -216,8 +216,8 @@ function TRPNewOrder:reposition()
uiobjs.Table.repositionNow = true
end
function TRPNewOrder:setExtendFieldsMode()
local elements = uiobjs.ExtendRoot.gameObject:GetComponentsInChildren(typeof(CLUIElement), true)
function TRPNewOrder:setExtendFieldsMode(root)
local elements = root:GetComponentsInChildren(typeof(CLUIElement), true)
for i = 0, elements.Length - 1 do
self:setElementMode(elements[i])
end
@@ -270,6 +270,9 @@ end
-- 关闭页面
function TRPNewOrder:hide()
if uiobjs.DetailRoot.luaTable then
uiobjs.DetailRoot.luaTable.release()
end
if uiobjs.ExtendRoot.luaTable then
uiobjs.ExtendRoot.luaTable.release()
end