7c207e01 by 任超

style:我的预约

1 parent 2b8b186c
...@@ -5,10 +5,10 @@ var list; ...@@ -5,10 +5,10 @@ var list;
5 var houseInfo; 5 var houseInfo;
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 list = getApplyRecord(GetQueryString('bsm_slsq'),GetQueryString('businessno')); 9 list = getApplyRecord(GetQueryString('bsm_slsq'), GetQueryString('businessno'));
10 // 房屋信息 10 // 房屋信息
11 console.log(list , houseInfo); 11 console.log(list, houseInfo);
12 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);
...@@ -22,34 +22,37 @@ $(function () { ...@@ -22,34 +22,37 @@ $(function () {
22 var listItem; 22 var listItem;
23 let userInfo = []; 23 let userInfo = [];
24 userInfo.push(getCookie('myCookie')); 24 userInfo.push(getCookie('myCookie'));
25 25 if (list.ajzt != '4' || list.ajzt != '5') {
26 console.log(userInfo) 26 $('.next_button').append('<button type="button" class="layui-btn layui-btn-normal">'
27 if(list.sqrList && list.sqrList.length>0) { 27 + '<a onclick="skipClick()">下一步</a>'
28 + '</button>')
29 }
30 if (list.sqrList && list.sqrList.length > 0) {
28 for (var i = 0; i < list.sqrList.length; i++) { 31 for (var i = 0; i < list.sqrList.length; i++) {
29 listItem = '<li>' 32 listItem = '<li>'
30 listItem += '<p><span>姓名</span>:'+list.sqrList[i].sqrmc+'</p>' 33 listItem += '<p><span>姓名</span>:' + list.sqrList[i].sqrmc + '</p>'
31 if (list.sqrList[i].sqrzj == 1) { 34 if (list.sqrList[i].sqrzj == 1) {
32 listItem += '<p><span>证件类型</span>:身份证</p>' 35 listItem += '<p><span>证件类型</span>:身份证</p>'
33 } 36 }
34 listItem += '<p><span>证件号码</span>:'+list.sqrList[i].zjhm+'</p>' 37 listItem += '<p><span>证件号码</span>:' + list.sqrList[i].zjhm + '</p>'
35 listItem += '<p><span>联系电话</span>:'+list.sqrList[i].dhhm+'</p>' 38 listItem += '<p><span>联系电话</span>:' + list.sqrList[i].dhhm + '</p>'
36 $('#informationList').append(listItem) 39 $('#informationList').append(listItem)
37 } 40 }
38 }else { 41 } else {
39 for (var i = 0; i < userInfo.length; i++) { 42 for (var i = 0; i < userInfo.length; i++) {
40 listItem = '<li>' 43 listItem = '<li>'
41 listItem += '<p><span>姓名</span>:'+userInfo[i].username+'</p>' 44 listItem += '<p><span>姓名</span>:' + userInfo[i].username + '</p>'
42 if (userInfo[i].zjzl == 1) { 45 if (userInfo[i].zjzl == 1) {
43 listItem += '<p><span>证件类型</span>:身份证</p>' 46 listItem += '<p><span>证件类型</span>:身份证</p>'
44 } 47 }
45 listItem += '<p><span>证件号码</span>:'+userInfo[i].zjhm+'</p>' 48 listItem += '<p><span>证件号码</span>:' + userInfo[i].zjhm + '</p>'
46 listItem += '<p><span>联系电话</span>:'+userInfo[i].phone+'</p>' 49 listItem += '<p><span>联系电话</span>:' + userInfo[i].phone + '</p>'
47 $('#informationList').append(listItem) 50 $('#informationList').append(listItem)
48 } 51 }
49 } 52 }
50 53
51 }) 54 })
52 //下一步事件 55 //下一步事件
53 function skipClick(){ 56 function skipClick() {
54 skipNextPage(GetQueryString('bsm_slsq'),GetQueryString('businessno')); 57 skipNextPage(GetQueryString('bsm_slsq'), GetQueryString('businessno'));
55 } 58 }
......
...@@ -34,7 +34,7 @@ function _initData(currentPage = 1) { ...@@ -34,7 +34,7 @@ function _initData(currentPage = 1) {
34 if (records[i].state == '0') { 34 if (records[i].state == '0') {
35 li += '<div class="item_title success">' 35 li += '<div class="item_title success">'
36 li += '<h3>预约成功</h3>' 36 li += '<h3>预约成功</h3>'
37 li += '<a href="./yyjg.html">查看<i class="layui-icon layui-icon-right"></i></a>' 37 li += '<a href="./yyjg.html?appointmentId='+records[i].appointmentId+'">查看<i class="layui-icon layui-icon-right"></i></a>'
38 li += '</div>' 38 li += '</div>'
39 } else if (records[i].state == '1') { 39 } else if (records[i].state == '1') {
40 li += '<div class="item_title success">' 40 li += '<div class="item_title success">'
......
...@@ -141,9 +141,9 @@ ...@@ -141,9 +141,9 @@
141 </ul> 141 </ul>
142 </div> 142 </div>
143 <div class="next_button"> 143 <div class="next_button">
144 <button type="button" class="layui-btn layui-btn-normal"> 144 <!-- <button type="button" class="layui-btn layui-btn-normal">
145 <a onclick="skipClick()">下一步</a> 145 <a onclick="skipClick()">下一步</a>
146 </button> 146 </button> -->
147 </div> 147 </div>
148 </div> 148 </div>
149 </div> 149 </div>
......