chengkun
2025-04-29 ab5d7bddae4557b9d56d17f21fc8ca232d7d8693
js/layui/phpyun_layer.js
@@ -41,13 +41,13 @@
      //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,
@@ -61,8 +61,7 @@
   //加载动画加遮罩层
   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 : {};
      
@@ -72,8 +71,7 @@
   //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'){