This commit is contained in:
2020-08-17 11:13:33 +08:00
parent 19e730574b
commit 21eb68aeab
93 changed files with 6713 additions and 143 deletions

View File

@@ -35,6 +35,7 @@ MyUtl.setContentView = function(go, top, bottom)
panel.clipOffset = Vector2.zero
panel.baseClipRegion = MyUtl.getUIContent(panel, top, bottom)
end
return panel.baseClipRegion
end
MyUtl.getSizeAdjust = function()
@@ -77,7 +78,7 @@ MyUtl.callCust = function(cust)
MyUtl.doCall(cust.custId, cust.phoneNo, cust)
end
end
---public 云拨号
MyUtl.doCall = function(custId, phoneNo, cust)
showHotWheel("拨号中...")
NetProto.send.bi_call(
@@ -94,6 +95,16 @@ MyUtl.doCall = function(custId, phoneNo, cust)
)
end
---public 调用系统拨打电话
MyUtl.callCustByNative = function(phoneNo, cust)
if CLUIFormUtl.callPhone then
CLUIFormUtl.callPhone(phoneNo)
else
Application.OpenURL(joinStr( "tel:", phoneNo))
end
getPanelAsy("PanelNewFollowSimple", onLoadedPanelTT, cust)
end
MyUtl.toast = function(msg, staySec)
CLToastRoot.toast(msg, CLToastRoot.Type.normal, staySec)
end