style:样式
Showing
4 changed files
with
17 additions
and
5 deletions
... | @@ -57,4 +57,4 @@ function getCookie(){ | ... | @@ -57,4 +57,4 @@ function getCookie(){ |
57 | var arr = str.replace(/(\s)+/g,'').split('='); | 57 | var arr = str.replace(/(\s)+/g,'').split('='); |
58 | return JSON.parse(arr[1]); | 58 | return JSON.parse(arr[1]); |
59 | } | 59 | } |
60 | }; | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
60 | }; | ... | ... |
... | @@ -65,5 +65,15 @@ function clicklogin(data){ | ... | @@ -65,5 +65,15 @@ function clicklogin(data){ |
65 | }); | 65 | }); |
66 | } | 66 | } |
67 | 67 | ||
68 | 68 | // 点击判断是否登录 | |
69 | function isLogin() { | ||
70 | let login1; | ||
71 | if(getCookie().username) { | ||
72 | login1 = true; | ||
73 | }else { | ||
74 | login(); | ||
75 | login1 = false; | ||
76 | } | ||
77 | return login1; | ||
78 | } | ||
69 | 79 | ||
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -99,13 +99,13 @@ function setArticleSteps() { | ... | @@ -99,13 +99,13 @@ function setArticleSteps() { |
99 | case 1: | 99 | case 1: |
100 | ArticleContent.append('<li class="item_proress"><p class="activeing"></p><h5 class="activeingtext">' + item.stepname + '</h5></li>'); | 100 | ArticleContent.append('<li class="item_proress"><p class="activeing"></p><h5 class="activeingtext">' + item.stepname + '</h5></li>'); |
101 | if ((index + 1) < business.stepList.length) { | 101 | if ((index + 1) < business.stepList.length) { |
102 | ArticleContent.append('<li class="layui-progress"><div class="layui-progress-bar" lay-percent="50%"></div></li>'); | 102 | ArticleContent.append('<li class="layui-progress"><div class="layui-progress-bar" style="width: 50%;" lay-percent="50%"></div></li>'); |
103 | } | 103 | } |
104 | break; | 104 | break; |
105 | case 2: | 105 | case 2: |
106 | ArticleContent.append('<li class="item_proress"><p class="active"></p><h5>' + item.stepname + '</h5></li>'); | 106 | ArticleContent.append('<li class="item_proress"><p class="active"></p><h5>' + item.stepname + '</h5></li>'); |
107 | if ((index + 1) < business.stepList.length) { | 107 | if ((index + 1) < business.stepList.length) { |
108 | ArticleContent.append('<li class="layui-progress"><div class="layui-progress-bar" lay-percent="100%"></div></li>'); | 108 | ArticleContent.append('<li class="layui-progress"><div class="layui-progress-bar" style="width:100%" lay-percent="100%"></div></li>'); |
109 | } | 109 | } |
110 | break; | 110 | break; |
111 | } | 111 | } | ... | ... |
... | @@ -33,7 +33,9 @@ $(function () { | ... | @@ -33,7 +33,9 @@ $(function () { |
33 | _initData() | 33 | _initData() |
34 | // 网上申请 | 34 | // 网上申请 |
35 | $(document).on("click", ".handleBus", function (e) { | 35 | $(document).on("click", ".handleBus", function (e) { |
36 | getInitiateFLow($(this).attr("ywid"),$(this).attr("businessNo")); | 36 | if (isLogin()) { |
37 | getInitiateFLow($(this).attr("ywid"),$(this).attr("businessNo")); | ||
38 | } | ||
37 | }) | 39 | }) |
38 | }) | 40 | }) |
39 | 41 | ... | ... |
-
Please register or sign in to post a comment