56177b85 by 任超

style:网上申请

1 parent 4c2b09ac
...@@ -137,4 +137,8 @@ ...@@ -137,4 +137,8 @@
137 .complete p { 137 .complete p {
138 margin-bottom: 5px; 138 margin-bottom: 5px;
139 color: #0091FF; 139 color: #0091FF;
140 }
141 .completed-button {
142 background-color: #9b9b9b;
143 color: #fff;
140 } 144 }
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -5,27 +5,27 @@ layui.use('element', function () { ...@@ -5,27 +5,27 @@ layui.use('element', function () {
5 }); 5 });
6 $(function () { 6 $(function () {
7 addTabs('#wssq') 7 addTabs('#wssq')
8 setAcceptFlow(GetQueryString('bsm_slsq'),GetQueryString('businessno')); 8 setAcceptFlow(GetQueryString('bsm_slsq'), GetQueryString('businessno'));
9 if (business.sqfs=='1') { 9 if (business.sqfs == '1') {
10 $('#sqfs').text('单方申请') 10 $('#sqfs').text('单方申请')
11 }else { 11 } else {
12 $('#sqfs').text('双方申请') 12 $('#sqfs').text('双方申请')
13 } 13 }
14 list = getApplyRecord(GetQueryString('bsm_slsq'),GetQueryString('businessno')); 14 list = getApplyRecord(GetQueryString('bsm_slsq'), GetQueryString('businessno'));
15 console.log(666,list) 15 console.log(666, list)
16 // 领证方式 16 // 领证方式
17 if(list.lzfs=='1') { 17 if (list.lzfs == '1') {
18 $('.mail').hide(); 18 $('.mail').hide();
19 }else { 19 } else {
20 $('.scene').hide(); 20 $('.scene').hide();
21 } 21 }
22 if(list.sqrlb == '1') { 22 if (list.sqrlb == '1') {
23 $('#acceptance_info h3').text('权利人信息'); 23 $('#acceptance_info h3').text('权利人信息');
24 }else { 24 } else {
25 $('#acceptance_info h3').text('义务人信息'); 25 $('#acceptance_info h3').text('义务人信息');
26 } 26 }
27 // 房屋信息 27 // 房屋信息
28 houseInfo = getFDCQ2(GetQueryString('bsm_slsq')); 28 houseInfo = getFDCQ2(GetQueryString('bsm_slsq'));
29 $('#typesPower p').text(list.qllxmc); 29 $('#typesPower p').text(list.qllxmc);
30 $('#businessType p').text(list.shortname); 30 $('#businessType p').text(list.shortname);
31 $('#acceptanceNumber p').text(list.wwsqbh); 31 $('#acceptanceNumber p').text(list.wwsqbh);
...@@ -38,33 +38,36 @@ $(function () { ...@@ -38,33 +38,36 @@ $(function () {
38 var listItem; 38 var listItem;
39 let userInfo = []; 39 let userInfo = [];
40 userInfo.push(getItem('myCookie')); 40 userInfo.push(getItem('myCookie'));
41 if(list.sqrList && list.sqrList.length>0) { 41 if (list.sqrList && list.sqrList.length > 0) {
42 for (var i = 0; i < list.sqrList.length; i++) { 42 for (var i = 0; i < list.sqrList.length; i++) {
43 listItem = '<li>' 43 listItem = '<li>'
44 listItem += '<p><span>姓名</span>:'+list.sqrList[i].sqrmc+'</p>' 44 listItem += '<p><span>姓名</span>:' + list.sqrList[i].sqrmc + '</p>'
45 if (list.sqrList[i].sqrzj == 1) { 45 if (list.sqrList[i].sqrzj == 1) {
46 listItem += '<p><span>证件类型</span>:身份证</p>' 46 listItem += '<p><span>证件类型</span>:身份证</p>'
47 } 47 }
48 listItem += '<p><span>证件号码</span>:'+list.sqrList[i].zjhm+'</p>' 48 listItem += '<p><span>证件号码</span>:' + list.sqrList[i].zjhm + '</p>'
49 listItem += '<p><span>联系电话</span>:'+list.sqrList[i].dhhm+'</p>' 49 listItem += '<p><span>联系电话</span>:' + list.sqrList[i].dhhm + '</p>'
50 $('#informationList').append(listItem) 50 $('#informationList').append(listItem)
51 } 51 }
52 }else { 52 } else {
53 for (var i = 0; i < userInfo.length; i++) { 53 for (var i = 0; i < userInfo.length; i++) {
54 listItem = '<li>' 54 listItem = '<li>'
55 listItem += '<p><span>姓名</span>:'+userInfo[i].username+'</p>' 55 listItem += '<p><span>姓名</span>:' + userInfo[i].username + '</p>'
56 if (userInfo[i].zjzl == 1) { 56 if (userInfo[i].zjzl == 1) {
57 listItem += '<p><span>证件类型</span>:身份证</p>' 57 listItem += '<p><span>证件类型</span>:身份证</p>'
58 } 58 }
59 listItem += '<p><span>证件号码</span>:'+userInfo[i].zjhm+'</p>' 59 listItem += '<p><span>证件号码</span>:' + userInfo[i].zjhm + '</p>'
60 listItem += '<p><span>联系电话</span>:'+userInfo[i].phone+'</p>' 60 listItem += '<p><span>联系电话</span>:' + userInfo[i].phone + '</p>'
61 $('#informationList').append(listItem) 61 $('#informationList').append(listItem)
62 } 62 }
63 } 63 }
64 // 确定按钮 64 // 确定按钮
65 if(list.ajzt!=6) { 65 if (list.ajzt != 6) {
66 $('#complete').append('<p>如您已经完成办理请点击确定</p>'+ 66 $('#complete').append('<p>如您已经完成办理请点击确定</p>' +
67 '<button type="button" class="layui-btn completeAudit layui-btn-radius layui-btn-normal">确定</button>') 67 '<button type="button" class="layui-btn completeAudit layui-btn-radius layui-btn-normal">确定</button>')
68 }else {
69 $('#complete').append(
70 '<button type="button" class="layui-btn completed-button layui-btn-radius layui-btn-normal">已完成</button>');
68 } 71 }
69 }) 72 })
70 73
...@@ -78,17 +81,19 @@ function _completeBusiness() { ...@@ -78,17 +81,19 @@ function _completeBusiness() {
78 type: "post", //提交方式 81 type: "post", //提交方式
79 url: portal.api_url + "/portal/ApplyBusinessService/completeBusiness",//路径 82 url: portal.api_url + "/portal/ApplyBusinessService/completeBusiness",//路径
80 dataType: "json", 83 dataType: "json",
81 data:{ 84 data: {
82 'bsmSlsq': GetQueryString('bsm_slsq') 85 'bsmSlsq': GetQueryString('bsm_slsq')
83 }, 86 },
84 //数据,这里使用的是Json格式进行传输 87 //数据,这里使用的是Json格式进行传输
85 success: function (result) {//返回数据根据结果进行相应的处理 88 success: function (result) {//返回数据根据结果进行相应的处理
86 if (result.code == 200 ) { 89 if (result.code == 200) {
87 layui.use('layer', function () { 90 layui.use('layer', function () {
88 layer.msg(result.message); 91 layer.msg(result.message);
89 }); 92 });
90 _completePage(GetQueryString('bsm_slsq'),GetQueryString('businessno')); 93 _completePage(GetQueryString('bsm_slsq'), GetQueryString('businessno'));
91 $('#complete').empty(); 94 $('#complete').empty()
95 $('#complete').append(
96 '<button type="button" class="layui-btn completed-button layui-btn-radius layui-btn-normal">已完成</button>');
92 } 97 }
93 } 98 }
94 }); 99 });
...@@ -118,7 +123,7 @@ function _completePage(bsm_slsq, businessno) { ...@@ -118,7 +123,7 @@ function _completePage(bsm_slsq, businessno) {
118 //数据,这里使用的是Json格式进行传输 123 //数据,这里使用的是Json格式进行传输
119 success: function (result) {//返回数据根据结果进行相应的处理 124 success: function (result) {//返回数据根据结果进行相应的处理
120 if (result.code == 200) { 125 if (result.code == 200) {
121 setAcceptFlow(GetQueryString('bsm_slsq'),GetQueryString('businessno')); 126 setAcceptFlow(GetQueryString('bsm_slsq'), GetQueryString('businessno'));
122 } 127 }
123 } 128 }
124 }); 129 });
......