-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpopup.js
33 lines (32 loc) · 1011 Bytes
/
popup.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/**
* layer扩展弹出层模块
*/
layui.define(['layer'],function(exports) {
var layer = layui.layer,
layerConf = {
getLayer: function (e) {
//alert(123);
if (!e.wsize) {
e.wsize = '90%';
}
if (!e.hsize) {
e.hsize = '90%';
}
layer.open({
skin: 'layui-layer-molv', //默认皮肤
type: 2,
title: e.title, //标题
area: [e.wsize, e.hsize], //宽高
//closeBtn:false,
shade: 0.5,//遮罩
zIndex: 1,
maxmin: true, //最大最小化
scrollbar: false,
//content: [url,'no']
content:[e.url]
});
}
};
//输出layerConf接口
exports('popup',layerConf);
});