This commit is contained in:
2020-07-28 22:02:17 +08:00
parent 8604f7aff7
commit 1cbb9177bb

View File

@@ -97,6 +97,21 @@ function TRPMyInfor:initFiledsAttr()
attr.cannotEdit = true attr.cannotEdit = true
attr.donotJoinKey = true attr.donotJoinKey = true
table.insert(self.baseFiledsAttr, attr) table.insert(self.baseFiledsAttr, attr)
DBUser.isWhiteUser(
Prefs.getUserName(),
function(iswhite)
if iswhite then
attr = {}
attr.attrName = "关闭日志"
attr.id = "closeLog"
attr.attrType = DBCust.FieldType.text
attr.ifMust = 0
attr.cannotEdit = true
attr.donotJoinKey = true
table.insert(self.baseFiledsAttr, attr)
end
end
)
end end
-- 设置数据 -- 设置数据
@@ -163,6 +178,10 @@ function TRPMyInfor:onClickField(go)
else else
getPanelAsy("PanelBindPhone", onLoadedPanelTT, {phoneNo = self.mdata.phoneNo}) getPanelAsy("PanelBindPhone", onLoadedPanelTT, {phoneNo = self.mdata.phoneNo})
end end
elseif el.jsonKey == "closeLog" then
if ReporterMessageReceiver.self and ReporterMessageReceiver.self.gameObject then
ReporterMessageReceiver.self.gameObject:SetActive(false)
end
else else
getPanelAsy( getPanelAsy(
"PanelModifyFiled", "PanelModifyFiled",