This commit is contained in:
2020-07-09 09:23:09 +08:00
parent c523462b82
commit c0095c1af9
48 changed files with 553 additions and 297 deletions

View File

@@ -24,20 +24,20 @@ function _cell.show(go, data)
local spriteName = ""
local colorIcon
if mData.type == CLToastRoot.Type.success then
spriteName = "cust_suc"
spriteName = "public_tips_2"
colorIcon = Color.green
elseif mData.type == CLToastRoot.Type.warning then
spriteName = "cust_suc"
spriteName = "public_tips_3"
colorIcon = Color.yellow
elseif mData.type == CLToastRoot.Type.error then
spriteName = "cust_suc"
spriteName = "public_tips_4"
colorIcon = Color.red
else
spriteName = "cust_suc"
spriteName = "public_tips_1"
colorIcon = Color.white
end
uiobjs.SpriteIcon.color = colorIcon
uiobjs.SpriteIcon.spriteName = spriteName
CLUIUtl.setSpriteFit(uiobjs.SpriteIcon, spriteName)
uiobjs.tweenAlpha.delay = mData.staySec or 1
uiobjs.tweenAlpha:ResetToBeginning()
uiobjs.tweenAlpha:Play(true)

View File

@@ -105,7 +105,7 @@ function CSPMine.onGetLocation(locInfor)
)
getPanelAsy("PanelWebView", onLoadedPanelTT, {url = url})
else
CLAlert.add(location.msg, Color.white, 1)
MyUtl.toastW(location.msg)
if code == 8 or code == 9 or code == 5 then
-- 打开gps
MyLocation.self:guidSwitchGps()

View File

@@ -113,7 +113,7 @@ function TRPLogin:setEventDelegate()
end
end,
function()
CLAlert.add("登录失败,请确保网络通畅!", Color.white, 1)
MyUtl.toastW("登录失败,请确保网络通畅!")
end
)
end,

View File

@@ -59,7 +59,7 @@ function TRPModifyFiled:setEventDelegate()
ButtonOkay = function()
local err = uiobjs.element:checkValid()
if not isNilOrEmpty(err) then
CLAlert.add(err, Color.white, 1)
MyUtl.toastW(err)
return
end
Utl.doCallback(self.mdata.callback, self.mdata.key, uiobjs.Input.value)

View File

@@ -312,7 +312,7 @@ function TRPNewCust:onPopupFieldValChg4Extend(go)
-- 有修改,发送数据
self:sendModifymsg(el.jsonKey, el.value, true)
else
MyUtl.toastE(err)
MyUtl.toastW(err)
end
end
end
@@ -352,7 +352,7 @@ function TRPNewCust:setEventDelegate()
local err = uiobjs.DetailRoot:checkValid()
err = joinStr(err, uiobjs.ExtendFormRoot:checkValid())
if not isNilOrEmpty(err) then
MyUtl.toastE(err)
MyUtl.toastW(err)
return
end

View File

@@ -62,7 +62,7 @@ end
function TRPResetPasswordStep3:procNetwork(cmd, succ, msg, paras)
if (succ == NetSuccess) then
if cmd == NetProto.cmds.updateLoginNoPwd then
CLAlert.add("密码修改成功", Color.green, 0)
MyUtl.toastS("密码修改成功")
hideTopPanel()
hideTopPanel()
hideTopPanel()

View File

@@ -92,7 +92,7 @@ function TRPSelectCompany:setEventDelegate()
self.EventDelegate = {
ButtonRight = function()
if selectedCompany == nil then
CLAlert.add("请选择要进入的公司", Color.white, 0)
MyUtl.toastW("请选择要进入的公司")
return
end
-- 缓存一下,下次进来后就不用再先公司了