mm
This commit is contained in:
@@ -38,6 +38,8 @@ function TRPCustDetailSimple:init(csObj)
|
||||
uiobjs.starGridPrefab2 = getChild(uiobjs.starGrid2.transform, "00000").gameObject
|
||||
uiobjs.ExtendRoot = getCC(uiobjs.Table.transform, "ExtendRoot", "CLCellLua")
|
||||
uiobjs.SysRoot = getCC(uiobjs.Table.transform, "SysRoot", "CLCellLua")
|
||||
|
||||
uiobjs.ButtonGet = getChild(self.transform, "AnchorBottom/offset/ButtonGet").gameObject
|
||||
end
|
||||
|
||||
function TRPCustDetailSimple:prepareMoreData()
|
||||
@@ -107,8 +109,9 @@ end
|
||||
-- 设置数据
|
||||
---@param paras _ParamTRPCustDetailSimple
|
||||
function TRPCustDetailSimple:setData(paras)
|
||||
self.isShowButtonGet = paras.isShowButtonGet
|
||||
---@type _DBCust
|
||||
self.mdata = paras
|
||||
self.mdata = paras.cust
|
||||
self.mdata._phoneNo = MyUtl.hidePhone(self.mdata.phoneNo)
|
||||
if type(self.mdata.jsonStr) == "string" then
|
||||
self.mdata.jsonStr = json.decode(self.mdata.jsonStr)
|
||||
@@ -130,6 +133,12 @@ end
|
||||
|
||||
-- 显示,在c#中。show为调用refresh,show和refresh的区别在于,当页面已经显示了的情况,当页面再次出现在最上层时,只会调用refresh
|
||||
function TRPCustDetailSimple:show()
|
||||
SetActive(uiobjs.ButtonGet, self.isShowButtonGet or false)
|
||||
if self.isShowButtonGet then
|
||||
MyUtl.setContentView(getChild(self.transform, "PanelContent"), MyUtl.defaultTopHeight + 400 + 40, 200)
|
||||
else
|
||||
MyUtl.setContentView(getChild(self.transform, "PanelContent"), MyUtl.defaultTopHeight + 400 + 40, 0)
|
||||
end
|
||||
self.records = nil
|
||||
self.orders = nil
|
||||
local optionInfor = DBCust.getFilter4Popup(DBCust.FilterGroup.dealFlagList)
|
||||
|
||||
Reference in New Issue
Block a user