modify
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user