• LayerManage


    var LayerManage = {
    CommonMethod: null,
    OpenWindLayer: function (title, width, height, htmlcontent) {
    layer.open({
      type: 1
      , area: [width, height]
      , title: title
      , shade: 0.6 //遮罩透明度
      , maxmin: true //允许全屏最小化
      , anim: -1 //0-6的动画形式,-1不开启
      , shadeClose: true //点击遮罩关闭层
      , content: htmlcontent
    });
    },
    OpenNewiframeLayer: function (title, width, height, url, method) {
      LayerManage.CommonMethod = method;
      //弹出iframe
      layer.open({
        type: 2,
        title: title,
        area: [width, height],
        fixed: false,
        maxmin: true,
        anim: -1,
        shadeClose: true, //点击遮罩关闭层
        content: url
    });
    },
    iframeCallBack: function (callData) {
      if (LayerManage.CommonMethod != null) {
        LayerManage.CommonMethod(callData);
      }
    },
    confirmLayer: function (msg, callback) {
      layer.confirm(msg, {
        btn: [CustomLanguage.lbl_Confirm, CustomLanguage.lbl_Cancel] //按钮
      }, function () {
        callback();
      }, function () {
    });
    },
    showLoading: function () {
    var ii = layer.load();
    return ii;
    },
    closeLoading: function (obj) {
    layer.close(obj);
    },
    closeLayer: function () {
    layer.closeAll();
    },
    showLoadingHint: function (describe) {
    var ii = layer.msg(describe, {
    icon: 16,
    shade: [0.1, '#fff'],
    time: 60000
    });
    return ii;
    },
    }

  • 相关阅读:
    IOS第一天
    Mac环境下svn的使用
    惯用代码
    ORA-12170: TNS: 连接超时
    java字符集
    java移位运算
    mysql面试题
    mysql覆盖索引(屌的狠,提高速度)
    Cannot call sendError() after the response has been committed
    maven生命周期
  • 原文地址:https://www.cnblogs.com/opts/p/8483250.html
Copyright © 2020-2023  润新知