up
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -113,7 +113,7 @@ function TRPLogin:setEventDelegate()
|
||||
end
|
||||
end,
|
||||
function()
|
||||
CLAlert.add("登录失败,请确保网络通畅!", Color.white, 1)
|
||||
MyUtl.toastW("登录失败,请确保网络通畅!")
|
||||
end
|
||||
)
|
||||
end,
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -92,7 +92,7 @@ function TRPSelectCompany:setEventDelegate()
|
||||
self.EventDelegate = {
|
||||
ButtonRight = function()
|
||||
if selectedCompany == nil then
|
||||
CLAlert.add("请选择要进入的公司", Color.white, 0)
|
||||
MyUtl.toastW("请选择要进入的公司")
|
||||
return
|
||||
end
|
||||
-- 缓存一下,下次进来后就不用再先公司了
|
||||
|
||||
Reference in New Issue
Block a user