dataReview.js
2.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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'));
// 房屋信息
console.log(list , houseInfo);
houseInfo = getFDCQ2(GetQueryString('bsm_slsq'));
$('#typesPower p').text(list.qllxmc);
$('#businessType p').text(list.shortname);
$('#acceptanceNumber p').text(list.wwsqbh);
$('#dateAcceptance p').text(list.sqrq);
$('#unitNumber p').text(houseInfo.bdcdyh);
$('#titleCertificate p').text(houseInfo.bdcqzh);
$('#beLocated p').text(houseInfo.fdzl);
$('#area p').text(houseInfo.jzmj);
// 买方信息
var listItem;
let userInfo = [];
userInfo.push(getCookie('myCookie'));
console.log(userInfo)
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>'
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>'
$('#informationList').append(listItem)
}
}else {
for (var i = 0; i < userInfo.length; i++) {
listItem = '<li>'
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>'
$('#informationList').append(listItem)
}
}
})
//下一步事件
function skipClick(){
skipNextPage(GetQueryString('bsm_slsq'),GetQueryString('businessno'));
}