37530ed3 by 任超

feat:网上申请面包屑动态生成

1 parent e30e7dd4
......@@ -3,7 +3,14 @@ layui.use('element', function () {
let element = layui.element;
});
$(function () {
addTabs('#wssq');
// 设置头部导航
if (decodeURI(GetQueryString('title')) =='网上申请') {
addTabs('#wssq');
$('.layui-breadcrumb a').eq(1).attr('href','/staticViews/wssq.html');
}else {
$('.layui-breadcrumb a').eq(1).attr('href','/staticViews/wdyw.html');
}
$('.layui-breadcrumb a').eq(1).text(decodeURI(GetQueryString('title')));
setFristStepPageFLow(GetQueryString('ywid'), GetQueryString('businessno'));
if (business.sqfs=='1') {
$('#sqfs').text('单方申请')
......@@ -37,7 +44,6 @@ function bugSearch() {
}
// 初始化数据
function fetchDataReview(){
console.log(getItem('myCookie'))
let userInfo = getItem('myCookie');
$('#sqrxm').text(userInfo.username);
if(userInfo.zjzl=='1') {
......
......@@ -114,9 +114,10 @@ function setArticleSteps() {
}
//获取业务发起流程方法
function getInitiateFLow(ywid, businessno) {
function getInitiateFLow(ywid, businessno,title) {
title=title||'网上申请'
getBusinessConfig(ywid, businessno);
window.open(portal.rootPath + business.stepList[0].pageurl + "?ywid=" + ywid + "&businessno=" + businessno, "_self")
window.open(portal.rootPath + business.stepList[0].pageurl + "?ywid=" + ywid + "&businessno=" + businessno+ "&title=" + title, "_self")
}
//发起流程方法
......@@ -147,9 +148,9 @@ function getFDCQ2(bsm_slsq) {
}
//工作箱调取流程方法
function getWorkBoxFLow(bsm_slsq, businessno) {
function getWorkBoxFLow(bsm_slsq, businessno, title) {
title = title || '我的业务'
getAcceptFlow(bsm_slsq, businessno);
var pageurl;
$.each(business.stepList, function (index, item) {
......@@ -158,7 +159,7 @@ function getWorkBoxFLow(bsm_slsq, businessno) {
return;
}
});
window.open(portal.rootPath + pageurl + "?bsm_slsq=" + bsm_slsq + "&businessno=" + businessno, "_self")
window.open(portal.rootPath + pageurl + "?bsm_slsq=" + bsm_slsq + "&businessno=" + businessno+ "&title=" + title, "_self")
}
......@@ -178,6 +179,14 @@ function setAcceptFlow(bsmSlsq, businessNo) {
num++
}
}
// 设置头部导航
if (decodeURI(GetQueryString('title')) =='网上申请') {
addTabs('#wssq');
$('.layui-breadcrumb a').eq(1).attr('href','/staticViews/wssq.html');
}else {
$('.layui-breadcrumb a').eq(1).attr('href','/staticViews/wdyw.html');
}
$('.layui-breadcrumb a').eq(1).text(decodeURI(GetQueryString('title')));
if((business.ajzt != '4' || business.ajzt != '5') && (business.stepList.length!=(num+1))) {
$('.next_button').append('<button type="button" class="layui-btn layui-btn-normal">'
+ '<a onclick="skipClick()">下一步</a>'
......@@ -247,7 +256,7 @@ function fetchStepNo(bsm_slsq,businessno) {
//数据,这里使用的是Json格式进行传输
success: function (result) {//返回数据根据结果进行相应的处理
if (result.code == 200) {
window.location.href = portal.rootPath + business.stepList[nextStepIndex].pageurl + "?bsm_slsq=" + bsm_slsq + "&businessno=" + businessno+ "&stepno=" +business.stepList[nextStepIndex].stepno;
window.location.href = portal.rootPath + business.stepList[nextStepIndex].pageurl + "?bsm_slsq=" + bsm_slsq + "&businessno=" + businessno+ "&stepno=" +business.stepList[nextStepIndex].stepno+ "&title=" + decodeURI(GetQueryString('title'));
}
}
});
......
......@@ -38,7 +38,8 @@ $(function () {
$(document).on("click", ".appintmentList li .handle", function () {
let businessNo = $(this).attr('data-businessNo');
let slsqBsm = $(this).attr('data-slsqBsm');
getWorkBoxFLow(slsqBsm, businessNo)
let title = $(this).attr('data-title');
getWorkBoxFLow(slsqBsm, businessNo, title)
})
// 业务列表操作
......@@ -268,7 +269,7 @@ function dataRendering() {
li += '</div>'
li += '<a slsqBsm="'+dataList.list[i].slsqBsm+'" class="delete">删除</a>'
if (dataList.list[i].ajzt == '1') {
li += '<a class="handle" data-slsqBsm="' + dataList.list[i].slsqBsm + '" data-businessNo="' + dataList.list[i].businessNo + '">继续办理</a>'
li += '<a class="handle" data-slsqBsm="' + dataList.list[i].slsqBsm + '"data-businessNo="' + dataList.list[i].businessNo + '" data-title="我的业务">继续办理</a>'
} else if (dataList.list[i].ajzt == '3') {
li += '<a slsqBsm="'+dataList.list[i].slsqBsm+'" class="handle">缴费</a>'
}else if (dataList.list[i].ajzt == '4' || dataList.list[i].ajzt == '5' || dataList.list[i].ajzt == '6') {
......
......@@ -17,7 +17,7 @@
<div class="contentBox">
<span class="layui-breadcrumb">
<a href="../../../index.html">首页</a>
<a href="../wssq.html">网上申请</a>
<a href="/staticViews/wssq.html">网上申请</a>
<a><cite>信息校验</cite></a>
</span>
</div>
......
......@@ -10,7 +10,6 @@
<script type="text/javascript" src="../staticJs/head.js"></script>
<link rel="stylesheet" type="text/css" href="../staticCss/wssq.css">
</head>
<body>
<div class="navigation_crumbs">
<div class="contentBox">
......@@ -116,4 +115,4 @@
</ul>
{{# }); }}
</script>
</html>
\ No newline at end of file
</html>
......