|
@@ -9,12 +9,13 @@ Page({
|
|
servantTypeValue: '',//保姆工种,
|
|
servantTypeValue: '',//保姆工种,
|
|
servantDescribleList: [],
|
|
servantDescribleList: [],
|
|
noServantList:false,
|
|
noServantList:false,
|
|
|
|
+ noServantPic:false
|
|
},
|
|
},
|
|
onLoad() {
|
|
onLoad() {
|
|
this.setData({
|
|
this.setData({
|
|
- servantName: app.globalData.relationInfo.servantName,
|
|
|
|
- weekday: app.globalData.relationInfo.servantTaskPeriod.workDay,
|
|
|
|
- servantTypeValue: app.globalData.relationInfo.servantType
|
|
|
|
|
|
+ servantName: app.globalData.servantInfo.employerName,
|
|
|
|
+ weekday: app.globalData.servantInfo.servantTaskPeriod.workDay,
|
|
|
|
+ servantTypeValue: app.globalData.servantInfo.servantType
|
|
}),
|
|
}),
|
|
console.log("employRelationNo=" + app.globalData.employRelationNo)
|
|
console.log("employRelationNo=" + app.globalData.employRelationNo)
|
|
this.initServantDescribleInfo()
|
|
this.initServantDescribleInfo()
|
|
@@ -22,20 +23,22 @@ Page({
|
|
initServantDescribleInfo() {
|
|
initServantDescribleInfo() {
|
|
let params = {
|
|
let params = {
|
|
"employRelationNo": app.globalData.employRelationNo,
|
|
"employRelationNo": app.globalData.employRelationNo,
|
|
- "subjectType": "SN000002",
|
|
|
|
- "userType": "1"
|
|
|
|
|
|
+ "subjectType": "SN000001",
|
|
|
|
+ "userType": "2"
|
|
}
|
|
}
|
|
- request.httpServicePost(apiUrl.servantDescribleInfo, params).then(data => {
|
|
|
|
|
|
+ request.httpServicePost(apiUrl.customerDescribleInfo, params).then(data => {
|
|
console.log("保姆描述信息=" + data.length);
|
|
console.log("保姆描述信息=" + data.length);
|
|
if (data.length == 0) {
|
|
if (data.length == 0) {
|
|
this.setData({
|
|
this.setData({
|
|
- noServantList: true,
|
|
|
|
|
|
+ noServantPic: true,
|
|
|
|
+ noServantList:false,
|
|
servantDescribleList:[]
|
|
servantDescribleList:[]
|
|
});
|
|
});
|
|
} else {
|
|
} else {
|
|
console.log("aaa" + data[0])
|
|
console.log("aaa" + data[0])
|
|
this.setData({
|
|
this.setData({
|
|
- noServantList: false,
|
|
|
|
|
|
+ noServantList: true,
|
|
|
|
+ noServantPic:false,
|
|
servantDescribleList:data
|
|
servantDescribleList:data
|
|
});
|
|
});
|
|
}
|
|
}
|