zoukankan      html  css  js  c++  java
  • 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;
    },
    }

  • 相关阅读:
    DDD~大话目录
    基于DDD的.NET开发框架-DDD经典分层
    补习知识:Entity Framework Code First属性映射约定
    一个官翻教程集合:ASP.NET Core 和 EF Core 系列教程
    补知识:EntityFramework Core映射关系详解
    关于this的问题
    promise
    js的类型转换
    不要在块内声明一个函数
    let和var
  • 原文地址:https://www.cnblogs.com/opts/p/8483250.html
Copyright © 2011-2022 走看看