32cf54b1 by 任超

style:网上申请

1 parent 2b4e213d
......@@ -5,10 +5,32 @@ layui.use('element', function () {
$(function () {
addTabs('#wssq');
setFristStepPageFLow(GetQueryString('ywid'), GetQueryString('businessno'));
bugSearch();
SetCheckContent();
fetchDataReview();
})
// 初始化渲染数据
function bugSearch() {
// 业务
layui.use(['form'], function () {
var form = layui.form
//自定义验证规则
form.verify({
title: function (value) {
if (value.length == 0) {
return '权利人不能为空';
} else if (value.length < 2) {
return '权利人至少得2个字符啊';
}
}
});
//监听提交
form.on('submit(check)', function (data) {
bdcqlVerify(data.field);
return false;
});
})
}
// 初始化数据
function fetchDataReview(){
console.log(getCookie('myCookie'))
let userInfo = getCookie('myCookie');
......
layui.use('element', function () {
let element = layui.element; //导航的hover效果、二级菜单等功能,需要依赖element模块
});
var list;
var houseInfo;
$(function () {
addTabs('#wssq')
setAcceptFlow(GetQueryString('bsm_slsq'), GetQueryString('businessno'));
list = getApplyRecord(GetQueryString('bsm_slsq'), GetQueryString('businessno'));
fetchDataReview();
})
function fetchDataReview() {
let list = getApplyRecord(GetQueryString('bsm_slsq'), GetQueryString('businessno'));
// 房屋信息
console.log(list, houseInfo);
houseInfo = getFDCQ2(GetQueryString('bsm_slsq'));
let houseInfo = getFDCQ2(GetQueryString('bsm_slsq'));
$('#typesPower p').text(list.qllxmc);
$('#businessType p').text(list.shortname);
$('#acceptanceNumber p').text(list.wwsqbh);
......@@ -22,11 +22,6 @@ $(function () {
var listItem;
let userInfo = [];
userInfo.push(getCookie('myCookie'));
if (list.ajzt != '4' || list.ajzt != '5') {
$('.next_button').append('<button type="button" class="layui-btn layui-btn-normal">'
+ '<a onclick="skipClick()">下一步</a>'
+ '</button>')
}
if (list.sqrList && list.sqrList.length > 0) {
for (var i = 0; i < list.sqrList.length; i++) {
listItem = '<li>'
......@@ -50,8 +45,7 @@ $(function () {
$('#informationList').append(listItem)
}
}
})
}
//下一步事件
function skipClick() {
skipNextPage(GetQueryString('bsm_slsq'), GetQueryString('businessno'));
......
......@@ -172,6 +172,17 @@ function setFristStepPageFLow(ywid, businessno) {
function setAcceptFlow(bsmSlsq, businessNo) {
getAcceptFlow(bsmSlsq, businessNo);
setArticleSteps();
let num = 0;
for (var i=0; i< business.stepList.length; i++) {
if(business.stepList[i].stepState == '2') {
num++
}
}
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>'
+ '</button>')
}
}
//跳转下一个环节页面
......
......@@ -291,19 +291,9 @@
</div>
</div>
<div class="next_button">
<button type="button" lay-submit="" lay-filter="submit1" class="layui-btn layui-btn-normal">
<a onclick="skipClick()">
下一步
</a>
</button>
</div>
</div>
<div class="next_button submitButton">
<button type="button" class="layui-btn layui-btn-normal">
<a onclick="skipClick()">
下一步
</a>
</button>
</div>
</form>
</div>
......
......@@ -58,11 +58,7 @@
</form>
</div>
</div>
<div class="next_button">
<button type="button" class="layui-btn layui-btn-normal">
<a onclick="skipClick()">下一步</a>
</button>
</div>
<div class="next_button"></div>
</div>
</div>
</body>
......
......@@ -65,11 +65,7 @@
<ul id="informationList" class="informationList"></ul>
</div>
</div>
<div class="next_button">
<button type="button" class="layui-btn layui-btn-normal">
<a onclick="skipClick()">下一步</a>
</button>
</div>
<div class="next_button"></div>
</div>
</div>
</body>
......