call modify

This commit is contained in:
2020-11-30 22:39:38 +08:00
parent afd1ec7926
commit 98f0941160
22 changed files with 135 additions and 97 deletions

View File

@@ -42,6 +42,39 @@ MyUtl.getSizeAdjust = function()
return _sizeAdjust
end
---@param cust _DBCust
MyUtl.showCallOption = function(cust)
---@type _ParamCLLPPopList2
local params = {}
params.title = "拨号选择"
params.list = {}
table.insert(
params.list,
{
index = 1,
name = joinStr("云拨号:", cust._phoneNo),
subname = joinStr("", DBCust.getTaskName(cust.custName))
}
)
table.insert(
params.list,
{
index = 2,
name = joinStr("本机拨号:", cust._phoneNo),
subname = joinStr("", DBCust.getTaskName(cust.custName))
}
)
params.callback = function(d)
local index = d.index
if index == 1 then
MyUtl.callCust(cust)
else
MyUtl.callCustByNative(cust.phoneNo, cust)
end
end
getPanelAsy("PanelPopList2", onLoadedPanelTT, params)
end
---public 拨号
MyUtl.callCust = function(cust)
if type(cust.jsonStr) == "string" then
@@ -147,7 +180,9 @@ MyUtl.callCustByNative = function(phoneNo, cust)
else
Application.OpenURL(joinStr("tel:", phoneNo))
end
getPanelAsy("PanelNewFollowSimple", onLoadedPanelTT, cust)
if cust then
getPanelAsy("PanelNewFollowSimple", onLoadedPanelTT, cust)
end
end
MyUtl.toast = function(msg, staySec)