32cf54b1 by 任超

style:网上申请

1 parent 2b4e213d
...@@ -5,10 +5,32 @@ layui.use('element', function () { ...@@ -5,10 +5,32 @@ layui.use('element', function () {
5 $(function () { 5 $(function () {
6 addTabs('#wssq'); 6 addTabs('#wssq');
7 setFristStepPageFLow(GetQueryString('ywid'), GetQueryString('businessno')); 7 setFristStepPageFLow(GetQueryString('ywid'), GetQueryString('businessno'));
8 bugSearch();
8 SetCheckContent(); 9 SetCheckContent();
9 fetchDataReview(); 10 fetchDataReview();
10 }) 11 })
11 // 初始化渲染数据 12 function bugSearch() {
13 // 业务
14 layui.use(['form'], function () {
15 var form = layui.form
16 //自定义验证规则
17 form.verify({
18 title: function (value) {
19 if (value.length == 0) {
20 return '权利人不能为空';
21 } else if (value.length < 2) {
22 return '权利人至少得2个字符啊';
23 }
24 }
25 });
26 //监听提交
27 form.on('submit(check)', function (data) {
28 bdcqlVerify(data.field);
29 return false;
30 });
31 })
32 }
33 // 初始化数据
12 function fetchDataReview(){ 34 function fetchDataReview(){
13 console.log(getCookie('myCookie')) 35 console.log(getCookie('myCookie'))
14 let userInfo = getCookie('myCookie'); 36 let userInfo = getCookie('myCookie');
......
1 layui.use('element', function () { 1 layui.use('element', function () {
2 let element = layui.element; //导航的hover效果、二级菜单等功能,需要依赖element模块 2 let element = layui.element; //导航的hover效果、二级菜单等功能,需要依赖element模块
3 }); 3 });
4 var list;
5 var houseInfo;
6 $(function () { 4 $(function () {
7 addTabs('#wssq') 5 addTabs('#wssq')
8 setAcceptFlow(GetQueryString('bsm_slsq'), GetQueryString('businessno')); 6 setAcceptFlow(GetQueryString('bsm_slsq'), GetQueryString('businessno'));
9 list = getApplyRecord(GetQueryString('bsm_slsq'), GetQueryString('businessno')); 7 fetchDataReview();
8 })
9 function fetchDataReview() {
10 let list = getApplyRecord(GetQueryString('bsm_slsq'), GetQueryString('businessno'));
10 // 房屋信息 11 // 房屋信息
11 console.log(list, houseInfo); 12 let houseInfo = getFDCQ2(GetQueryString('bsm_slsq'));
12 houseInfo = getFDCQ2(GetQueryString('bsm_slsq'));
13 $('#typesPower p').text(list.qllxmc); 13 $('#typesPower p').text(list.qllxmc);
14 $('#businessType p').text(list.shortname); 14 $('#businessType p').text(list.shortname);
15 $('#acceptanceNumber p').text(list.wwsqbh); 15 $('#acceptanceNumber p').text(list.wwsqbh);
...@@ -22,11 +22,6 @@ $(function () { ...@@ -22,11 +22,6 @@ $(function () {
22 var listItem; 22 var listItem;
23 let userInfo = []; 23 let userInfo = [];
24 userInfo.push(getCookie('myCookie')); 24 userInfo.push(getCookie('myCookie'));
25 if (list.ajzt != '4' || list.ajzt != '5') {
26 $('.next_button').append('<button type="button" class="layui-btn layui-btn-normal">'
27 + '<a onclick="skipClick()">下一步</a>'
28 + '</button>')
29 }
30 if (list.sqrList && list.sqrList.length > 0) { 25 if (list.sqrList && list.sqrList.length > 0) {
31 for (var i = 0; i < list.sqrList.length; i++) { 26 for (var i = 0; i < list.sqrList.length; i++) {
32 listItem = '<li>' 27 listItem = '<li>'
...@@ -50,8 +45,7 @@ $(function () { ...@@ -50,8 +45,7 @@ $(function () {
50 $('#informationList').append(listItem) 45 $('#informationList').append(listItem)
51 } 46 }
52 } 47 }
53 48 }
54 })
55 //下一步事件 49 //下一步事件
56 function skipClick() { 50 function skipClick() {
57 skipNextPage(GetQueryString('bsm_slsq'), GetQueryString('businessno')); 51 skipNextPage(GetQueryString('bsm_slsq'), GetQueryString('businessno'));
......
...@@ -172,6 +172,17 @@ function setFristStepPageFLow(ywid, businessno) { ...@@ -172,6 +172,17 @@ function setFristStepPageFLow(ywid, businessno) {
172 function setAcceptFlow(bsmSlsq, businessNo) { 172 function setAcceptFlow(bsmSlsq, businessNo) {
173 getAcceptFlow(bsmSlsq, businessNo); 173 getAcceptFlow(bsmSlsq, businessNo);
174 setArticleSteps(); 174 setArticleSteps();
175 let num = 0;
176 for (var i=0; i< business.stepList.length; i++) {
177 if(business.stepList[i].stepState == '2') {
178 num++
179 }
180 }
181 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">'
183 + '<a onclick="skipClick()">下一步</a>'
184 + '</button>')
185 }
175 } 186 }
176 187
177 //跳转下一个环节页面 188 //跳转下一个环节页面
......
...@@ -291,19 +291,9 @@ ...@@ -291,19 +291,9 @@
291 </div> 291 </div>
292 </div> 292 </div>
293 <div class="next_button"> 293 <div class="next_button">
294 <button type="button" lay-submit="" lay-filter="submit1" class="layui-btn layui-btn-normal">
295 <a onclick="skipClick()">
296 下一步
297 </a>
298 </button>
299 </div> 294 </div>
300 </div> 295 </div>
301 <div class="next_button submitButton"> 296 <div class="next_button submitButton">
302 <button type="button" class="layui-btn layui-btn-normal">
303 <a onclick="skipClick()">
304 下一步
305 </a>
306 </button>
307 </div> 297 </div>
308 </form> 298 </form>
309 </div> 299 </div>
......
...@@ -58,11 +58,7 @@ ...@@ -58,11 +58,7 @@
58 </form> 58 </form>
59 </div> 59 </div>
60 </div> 60 </div>
61 <div class="next_button"> 61 <div class="next_button"></div>
62 <button type="button" class="layui-btn layui-btn-normal">
63 <a onclick="skipClick()">下一步</a>
64 </button>
65 </div>
66 </div> 62 </div>
67 </div> 63 </div>
68 </body> 64 </body>
......
...@@ -65,11 +65,7 @@ ...@@ -65,11 +65,7 @@
65 <ul id="informationList" class="informationList"></ul> 65 <ul id="informationList" class="informationList"></ul>
66 </div> 66 </div>
67 </div> 67 </div>
68 <div class="next_button"> 68 <div class="next_button"></div>
69 <button type="button" class="layui-btn layui-btn-normal">
70 <a onclick="skipClick()">下一步</a>
71 </button>
72 </div>
73 </div> 69 </div>
74 </div> 70 </div>
75 </body> 71 </body>
......