|
@@ -67,7 +67,7 @@ Page({
|
|
|
request.httpServiceGet(apiUrl.getRelationInfoPath,params).then(data=>{
|
|
|
console.log(data);
|
|
|
app.globalData.relationInfo=data;
|
|
|
- let servantSetState=data.servantSetState;
|
|
|
+ let employSetState=data.employSetState;
|
|
|
|
|
|
let isOnlyOne=(data.isMoreServant<=1);
|
|
|
let isInvalid=(data.isInvalid=='1');
|
|
@@ -80,21 +80,22 @@ Page({
|
|
|
bindCode:data.employIdentifier
|
|
|
});
|
|
|
// 未完成初次设置的
|
|
|
- if(servantSetState=='0'){
|
|
|
+ if(employSetState=='1'){
|
|
|
this.setData({
|
|
|
+ unSetServiceModal:false,
|
|
|
+ });
|
|
|
+ // 获取任务设置和服务标准设置
|
|
|
+ this.isChooseSerStanSubject();
|
|
|
+ this.selectTodayTaskItem();
|
|
|
+
|
|
|
+ }else{
|
|
|
+ this.setData({
|
|
|
// unSetServiceModal:true,
|
|
|
// noSetSerStan:true,
|
|
|
noAddTaskShow:true,
|
|
|
});
|
|
|
// 获取服务标准和任务设置的具体情况
|
|
|
this.isSetServiceAndTask();
|
|
|
- }else{
|
|
|
- this.setData({
|
|
|
- unSetServiceModal:false,
|
|
|
- });
|
|
|
- // 获取任务设置和服务标准设置
|
|
|
- this.isChooseSerStanSubject();
|
|
|
- this.selectTodayTaskItem();
|
|
|
}
|
|
|
}).catch(e=>{
|
|
|
console.log(e);
|
|
@@ -309,6 +310,28 @@ Page({
|
|
|
|
|
|
}
|
|
|
},
|
|
|
+ // 跳转到服务标准页面
|
|
|
+ switchSerStandard(){
|
|
|
+// if(this.data.noSetSerStan){
|
|
|
+// my.navigateTo({
|
|
|
+// url: '../servantsettings/servantsettings'
|
|
|
+// });
|
|
|
+// }else{
|
|
|
+// my.navigateTo({
|
|
|
+// url: '../servantlist/servantlist'
|
|
|
+// });
|
|
|
+// }
|
|
|
+
|
|
|
+ },
|
|
|
+ switchSerHobby(){
|
|
|
+ // 跳转到服务偏好页面
|
|
|
+ // my.navigateTo({
|
|
|
+ // url: '../servantdetail/servantdetail'
|
|
|
+ // });
|
|
|
+
|
|
|
+
|
|
|
+ },
|
|
|
+
|
|
|
// 点击开启体验按钮
|
|
|
onFinishButtonClick(e){
|
|
|
console.log(e.target);
|
|
@@ -318,13 +341,31 @@ Page({
|
|
|
});
|
|
|
// 首次设置完成提交后台完成引导设置
|
|
|
|
|
|
-
|
|
|
+ this.finishAllSet();
|
|
|
|
|
|
}else{
|
|
|
|
|
|
}
|
|
|
},
|
|
|
|
|
|
+ finishAllSet(){
|
|
|
+ let params={
|
|
|
+ employRelationNo:app.globalData.employRelationNo,
|
|
|
+ employSetState:'1'
|
|
|
+ }
|
|
|
+ request.httpServicePost(apiUrl.updateEmploySetStatePath,params).then(data=>{
|
|
|
+ console.log(data);
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ }).catch(e=>{
|
|
|
+ console.log(e);
|
|
|
+
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
});
|