feat:网上申请面包屑动态生成
Showing
5 changed files
with
26 additions
and
11 deletions
... | @@ -3,7 +3,14 @@ layui.use('element', function () { | ... | @@ -3,7 +3,14 @@ layui.use('element', function () { |
3 | let element = layui.element; | 3 | let element = layui.element; |
4 | }); | 4 | }); |
5 | $(function () { | 5 | $(function () { |
6 | // 设置头部导航 | ||
7 | if (decodeURI(GetQueryString('title')) =='网上申请') { | ||
6 | addTabs('#wssq'); | 8 | addTabs('#wssq'); |
9 | $('.layui-breadcrumb a').eq(1).attr('href','/staticViews/wssq.html'); | ||
10 | }else { | ||
11 | $('.layui-breadcrumb a').eq(1).attr('href','/staticViews/wdyw.html'); | ||
12 | } | ||
13 | $('.layui-breadcrumb a').eq(1).text(decodeURI(GetQueryString('title'))); | ||
7 | setFristStepPageFLow(GetQueryString('ywid'), GetQueryString('businessno')); | 14 | setFristStepPageFLow(GetQueryString('ywid'), GetQueryString('businessno')); |
8 | if (business.sqfs=='1') { | 15 | if (business.sqfs=='1') { |
9 | $('#sqfs').text('单方申请') | 16 | $('#sqfs').text('单方申请') |
... | @@ -37,7 +44,6 @@ function bugSearch() { | ... | @@ -37,7 +44,6 @@ function bugSearch() { |
37 | } | 44 | } |
38 | // 初始化数据 | 45 | // 初始化数据 |
39 | function fetchDataReview(){ | 46 | function fetchDataReview(){ |
40 | console.log(getItem('myCookie')) | ||
41 | let userInfo = getItem('myCookie'); | 47 | let userInfo = getItem('myCookie'); |
42 | $('#sqrxm').text(userInfo.username); | 48 | $('#sqrxm').text(userInfo.username); |
43 | if(userInfo.zjzl=='1') { | 49 | if(userInfo.zjzl=='1') { | ... | ... |
... | @@ -114,9 +114,10 @@ function setArticleSteps() { | ... | @@ -114,9 +114,10 @@ function setArticleSteps() { |
114 | } | 114 | } |
115 | 115 | ||
116 | //获取业务发起流程方法 | 116 | //获取业务发起流程方法 |
117 | function getInitiateFLow(ywid, businessno) { | 117 | function getInitiateFLow(ywid, businessno,title) { |
118 | title=title||'网上申请' | ||
118 | getBusinessConfig(ywid, businessno); | 119 | getBusinessConfig(ywid, businessno); |
119 | window.open(portal.rootPath + business.stepList[0].pageurl + "?ywid=" + ywid + "&businessno=" + businessno, "_self") | 120 | window.open(portal.rootPath + business.stepList[0].pageurl + "?ywid=" + ywid + "&businessno=" + businessno+ "&title=" + title, "_self") |
120 | } | 121 | } |
121 | 122 | ||
122 | //发起流程方法 | 123 | //发起流程方法 |
... | @@ -147,9 +148,9 @@ function getFDCQ2(bsm_slsq) { | ... | @@ -147,9 +148,9 @@ function getFDCQ2(bsm_slsq) { |
147 | } | 148 | } |
148 | 149 | ||
149 | 150 | ||
150 | |||
151 | //工作箱调取流程方法 | 151 | //工作箱调取流程方法 |
152 | function getWorkBoxFLow(bsm_slsq, businessno) { | 152 | function getWorkBoxFLow(bsm_slsq, businessno, title) { |
153 | title = title || '我的业务' | ||
153 | getAcceptFlow(bsm_slsq, businessno); | 154 | getAcceptFlow(bsm_slsq, businessno); |
154 | var pageurl; | 155 | var pageurl; |
155 | $.each(business.stepList, function (index, item) { | 156 | $.each(business.stepList, function (index, item) { |
... | @@ -158,7 +159,7 @@ function getWorkBoxFLow(bsm_slsq, businessno) { | ... | @@ -158,7 +159,7 @@ function getWorkBoxFLow(bsm_slsq, businessno) { |
158 | return; | 159 | return; |
159 | } | 160 | } |
160 | }); | 161 | }); |
161 | window.open(portal.rootPath + pageurl + "?bsm_slsq=" + bsm_slsq + "&businessno=" + businessno, "_self") | 162 | window.open(portal.rootPath + pageurl + "?bsm_slsq=" + bsm_slsq + "&businessno=" + businessno+ "&title=" + title, "_self") |
162 | } | 163 | } |
163 | 164 | ||
164 | 165 | ||
... | @@ -178,6 +179,14 @@ function setAcceptFlow(bsmSlsq, businessNo) { | ... | @@ -178,6 +179,14 @@ function setAcceptFlow(bsmSlsq, businessNo) { |
178 | num++ | 179 | num++ |
179 | } | 180 | } |
180 | } | 181 | } |
182 | // 设置头部导航 | ||
183 | if (decodeURI(GetQueryString('title')) =='网上申请') { | ||
184 | addTabs('#wssq'); | ||
185 | $('.layui-breadcrumb a').eq(1).attr('href','/staticViews/wssq.html'); | ||
186 | }else { | ||
187 | $('.layui-breadcrumb a').eq(1).attr('href','/staticViews/wdyw.html'); | ||
188 | } | ||
189 | $('.layui-breadcrumb a').eq(1).text(decodeURI(GetQueryString('title'))); | ||
181 | if((business.ajzt != '4' || business.ajzt != '5') && (business.stepList.length!=(num+1))) { | 190 | if((business.ajzt != '4' || business.ajzt != '5') && (business.stepList.length!=(num+1))) { |
182 | $('.next_button').append('<button type="button" class="layui-btn layui-btn-normal">' | 191 | $('.next_button').append('<button type="button" class="layui-btn layui-btn-normal">' |
183 | + '<a onclick="skipClick()">下一步</a>' | 192 | + '<a onclick="skipClick()">下一步</a>' |
... | @@ -247,7 +256,7 @@ function fetchStepNo(bsm_slsq,businessno) { | ... | @@ -247,7 +256,7 @@ function fetchStepNo(bsm_slsq,businessno) { |
247 | //数据,这里使用的是Json格式进行传输 | 256 | //数据,这里使用的是Json格式进行传输 |
248 | success: function (result) {//返回数据根据结果进行相应的处理 | 257 | success: function (result) {//返回数据根据结果进行相应的处理 |
249 | if (result.code == 200) { | 258 | if (result.code == 200) { |
250 | window.location.href = portal.rootPath + business.stepList[nextStepIndex].pageurl + "?bsm_slsq=" + bsm_slsq + "&businessno=" + businessno+ "&stepno=" +business.stepList[nextStepIndex].stepno; | 259 | window.location.href = portal.rootPath + business.stepList[nextStepIndex].pageurl + "?bsm_slsq=" + bsm_slsq + "&businessno=" + businessno+ "&stepno=" +business.stepList[nextStepIndex].stepno+ "&title=" + decodeURI(GetQueryString('title')); |
251 | } | 260 | } |
252 | } | 261 | } |
253 | }); | 262 | }); | ... | ... |
... | @@ -38,7 +38,8 @@ $(function () { | ... | @@ -38,7 +38,8 @@ $(function () { |
38 | $(document).on("click", ".appintmentList li .handle", function () { | 38 | $(document).on("click", ".appintmentList li .handle", function () { |
39 | let businessNo = $(this).attr('data-businessNo'); | 39 | let businessNo = $(this).attr('data-businessNo'); |
40 | let slsqBsm = $(this).attr('data-slsqBsm'); | 40 | let slsqBsm = $(this).attr('data-slsqBsm'); |
41 | getWorkBoxFLow(slsqBsm, businessNo) | 41 | let title = $(this).attr('data-title'); |
42 | getWorkBoxFLow(slsqBsm, businessNo, title) | ||
42 | }) | 43 | }) |
43 | // 业务列表操作 | 44 | // 业务列表操作 |
44 | 45 | ||
... | @@ -268,7 +269,7 @@ function dataRendering() { | ... | @@ -268,7 +269,7 @@ function dataRendering() { |
268 | li += '</div>' | 269 | li += '</div>' |
269 | li += '<a slsqBsm="'+dataList.list[i].slsqBsm+'" class="delete">删除</a>' | 270 | li += '<a slsqBsm="'+dataList.list[i].slsqBsm+'" class="delete">删除</a>' |
270 | if (dataList.list[i].ajzt == '1') { | 271 | if (dataList.list[i].ajzt == '1') { |
271 | li += '<a class="handle" data-slsqBsm="' + dataList.list[i].slsqBsm + '" data-businessNo="' + dataList.list[i].businessNo + '">继续办理</a>' | 272 | li += '<a class="handle" data-slsqBsm="' + dataList.list[i].slsqBsm + '"data-businessNo="' + dataList.list[i].businessNo + '" data-title="我的业务">继续办理</a>' |
272 | } else if (dataList.list[i].ajzt == '3') { | 273 | } else if (dataList.list[i].ajzt == '3') { |
273 | li += '<a slsqBsm="'+dataList.list[i].slsqBsm+'" class="handle">缴费</a>' | 274 | li += '<a slsqBsm="'+dataList.list[i].slsqBsm+'" class="handle">缴费</a>' |
274 | }else if (dataList.list[i].ajzt == '4' || dataList.list[i].ajzt == '5' || dataList.list[i].ajzt == '6') { | 275 | }else if (dataList.list[i].ajzt == '4' || dataList.list[i].ajzt == '5' || dataList.list[i].ajzt == '6') { | ... | ... |
... | @@ -17,7 +17,7 @@ | ... | @@ -17,7 +17,7 @@ |
17 | <div class="contentBox"> | 17 | <div class="contentBox"> |
18 | <span class="layui-breadcrumb"> | 18 | <span class="layui-breadcrumb"> |
19 | <a href="../../../index.html">首页</a> | 19 | <a href="../../../index.html">首页</a> |
20 | <a href="../wssq.html">网上申请</a> | 20 | <a href="/staticViews/wssq.html">网上申请</a> |
21 | <a><cite>信息校验</cite></a> | 21 | <a><cite>信息校验</cite></a> |
22 | </span> | 22 | </span> |
23 | </div> | 23 | </div> | ... | ... |
... | @@ -10,7 +10,6 @@ | ... | @@ -10,7 +10,6 @@ |
10 | <script type="text/javascript" src="../staticJs/head.js"></script> | 10 | <script type="text/javascript" src="../staticJs/head.js"></script> |
11 | <link rel="stylesheet" type="text/css" href="../staticCss/wssq.css"> | 11 | <link rel="stylesheet" type="text/css" href="../staticCss/wssq.css"> |
12 | </head> | 12 | </head> |
13 | |||
14 | <body> | 13 | <body> |
15 | <div class="navigation_crumbs"> | 14 | <div class="navigation_crumbs"> |
16 | <div class="contentBox"> | 15 | <div class="contentBox"> | ... | ... |
-
Please register or sign in to post a comment