This commit is contained in:
2020-08-04 21:58:27 +08:00
parent a7b47a6827
commit f913a2a0aa
91 changed files with 1671 additions and 965 deletions

View File

@@ -5,8 +5,8 @@ MyUtl.init = function(panel)
MyUtl.getUIContent(panel)
end
local _TopHeight_ = 132
local _BottomHeight_ = 147
MyUtl.defaultTopHeight = 132
MyUtl.defaultBottomHeight = 147
local _ContentRect
local _sizeAdjust
@@ -17,8 +17,8 @@ MyUtl.getUIContent = function(panel, top, bottom, forceCal)
-- end
local sizeAdjust = UIRoot.GetPixelSizeAdjustment(panel.gameObject)
local height = Screen.height * sizeAdjust
top = top or _TopHeight_
bottom = bottom or _BottomHeight_
top = top or MyUtl.defaultTopHeight
bottom = bottom or MyUtl.defaultBottomHeight
local offsetRect = NGUITools.offsetRect
top = top + offsetRect.y * height
bottom = bottom + offsetRect.w * height
@@ -123,9 +123,9 @@ MyUtl.hidePhone = function(phone)
return phone
end
if #phone > 8 then
return joinStr(string.sub(phone, 1, 4), "****", string.sub(phone, 9))
return joinStr(string.sub(phone, 1, 3), "****", string.sub(phone, 8))
else
return joinStr(string.sub(phone, 1, 4), "****")
return joinStr(string.sub(phone, 1, 3), "****")
end
end