7c207e01 by 任超

style:我的预约

1 parent 2b8b186c
......@@ -5,11 +5,11 @@ var list;
var houseInfo;
$(function () {
addTabs('#wssq')
setAcceptFlow(GetQueryString('bsm_slsq'),GetQueryString('businessno'));
list = getApplyRecord(GetQueryString('bsm_slsq'),GetQueryString('businessno'));
setAcceptFlow(GetQueryString('bsm_slsq'), GetQueryString('businessno'));
list = getApplyRecord(GetQueryString('bsm_slsq'), GetQueryString('businessno'));
// 房屋信息
console.log(list , houseInfo);
houseInfo = getFDCQ2(GetQueryString('bsm_slsq'));
console.log(list, houseInfo);
houseInfo = getFDCQ2(GetQueryString('bsm_slsq'));
$('#typesPower p').text(list.qllxmc);
$('#businessType p').text(list.shortname);
$('#acceptanceNumber p').text(list.wwsqbh);
......@@ -22,34 +22,37 @@ $(function () {
var listItem;
let userInfo = [];
userInfo.push(getCookie('myCookie'));
console.log(userInfo)
if(list.sqrList && list.sqrList.length>0) {
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>'
listItem += '<p><span>姓名</span>:'+list.sqrList[i].sqrmc+'</p>'
listItem += '<p><span>姓名</span>:' + list.sqrList[i].sqrmc + '</p>'
if (list.sqrList[i].sqrzj == 1) {
listItem += '<p><span>证件类型</span>:身份证</p>'
}
listItem += '<p><span>证件号码</span>:'+list.sqrList[i].zjhm+'</p>'
listItem += '<p><span>联系电话</span>:'+list.sqrList[i].dhhm+'</p>'
listItem += '<p><span>证件号码</span>:' + list.sqrList[i].zjhm + '</p>'
listItem += '<p><span>联系电话</span>:' + list.sqrList[i].dhhm + '</p>'
$('#informationList').append(listItem)
}
}else {
} else {
for (var i = 0; i < userInfo.length; i++) {
listItem = '<li>'
listItem += '<p><span>姓名</span>:'+userInfo[i].username+'</p>'
listItem += '<p><span>姓名</span>:' + userInfo[i].username + '</p>'
if (userInfo[i].zjzl == 1) {
listItem += '<p><span>证件类型</span>:身份证</p>'
}
listItem += '<p><span>证件号码</span>:'+userInfo[i].zjhm+'</p>'
listItem += '<p><span>联系电话</span>:'+userInfo[i].phone+'</p>'
listItem += '<p><span>证件号码</span>:' + userInfo[i].zjhm + '</p>'
listItem += '<p><span>联系电话</span>:' + userInfo[i].phone + '</p>'
$('#informationList').append(listItem)
}
}
})
//下一步事件
function skipClick(){
skipNextPage(GetQueryString('bsm_slsq'),GetQueryString('businessno'));
function skipClick() {
skipNextPage(GetQueryString('bsm_slsq'), GetQueryString('businessno'));
}
......
......@@ -34,7 +34,7 @@ function _initData(currentPage = 1) {
if (records[i].state == '0') {
li += '<div class="item_title success">'
li += '<h3>预约成功</h3>'
li += '<a href="./yyjg.html">查看<i class="layui-icon layui-icon-right"></i></a>'
li += '<a href="./yyjg.html?appointmentId='+records[i].appointmentId+'">查看<i class="layui-icon layui-icon-right"></i></a>'
li += '</div>'
} else if (records[i].state == '1') {
li += '<div class="item_title success">'
......
......@@ -141,9 +141,9 @@
</ul>
</div>
<div class="next_button">
<button type="button" class="layui-btn layui-btn-normal">
<!-- <button type="button" class="layui-btn layui-btn-normal">
<a onclick="skipClick()">下一步</a>
</button>
</button> -->
</div>
</div>
</div>
......