dzzs.js
1.4 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
$(function () {
layui.use('element', function () {
let element = layui.element;
});
addTabs('#wssq')
// 业务
var data = {
'progressList': [
{
name: "信息效验",
isActive: 1
},
{
name: "填报信息",
isActive: 1
},
{
name: "完税核税",
isActive: 1
},
{
name: "身份认证",
isActive: 1
},
{
name: "资料审核",
isActive: 1
},
{
name: "线上缴费",
isActive: 1
},
{
name: "生成电子证书",
isActive: 2
}
],
}
layui.use('laytpl', function () {
laytpl = layui.laytpl;
var getTpl = document.getElementById('progress').innerHTML
, view = document.getElementById('app_progress');
laytpl(getTpl).render(data, function (html) {
view.innerHTML = html;
});
layui.use(['element'], function () {
var element = layui.element;
//初始化动态元素,一些动态生成的元素如果不设置初始化,将不会有默认的动态效果
element.init();
});
});
})