| | |
| | | //layui.use(['layer'])中icon: 1 打勾,2打叉,5伤心,6笑脸,7感叹号 |
| | | //layer.min.js中icon: 8失败,9成功 |
| | | if(icon == 8){ |
| | | icon = 5; |
| | | icon = 2; |
| | | } |
| | | if(icon == 9){ |
| | | icon = 6; |
| | | icon = 1; |
| | | } |
| | | |
| | | return layer.oriMsg(msg, |
| | | console.log(icon); |
| | | return layer.msg(msg, |
| | | { |
| | | time : tm, |
| | | icon : icon, |
| | |
| | | |
| | | //加载动画加遮罩层 |
| | | layer.oriLoad = layer.load; |
| | | layer.load = function(icon,options) |
| | | { |
| | | layer.load = function (icon, options) { |
| | | icon = (typeof icon !== 'undefined') ? icon : 0; |
| | | options = (typeof options == 'object') ? options : {}; |
| | | |
| | |
| | | |
| | | //alert对话框 |
| | | layer.oriAlert = layer.alert; |
| | | layer.alert = function(msg, icon, title, callback) |
| | | { |
| | | layer.alert = function (msg, icon, title, callback) { |
| | | if(typeof icon == 'object'){ |
| | | //layui的layer模块原本调用方式 |
| | | if(typeof title == 'function'){ |