|
@@ -184,6 +184,18 @@
|
|
|
{{personalForm.idCard}}
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <view class="item">
|
|
|
+ <view class="title" style="width: 250rpx;">
|
|
|
+ 真实姓名保护
|
|
|
+ </view>
|
|
|
+ <view class="input input4 " >
|
|
|
+
|
|
|
+ 关闭<u-switch size="40" @change="change3" v-model="isAnonymous"></u-switch>开启
|
|
|
+
|
|
|
+ </view>
|
|
|
+
|
|
|
+ </view>
|
|
|
+ <view class="itemView">开启后,对外显示名称将展示“X女士/先生”<br/>(只修改"真实姓名保护"无需提交审批)</view>
|
|
|
|
|
|
</view>
|
|
|
</view>
|
|
@@ -320,7 +332,8 @@
|
|
|
valueList:[-1,-1,-1,-1,-1,-1],
|
|
|
selectIndex:0,
|
|
|
form: {},
|
|
|
- userInfo:{}
|
|
|
+ userInfo:{},
|
|
|
+ isAnonymous:"",
|
|
|
}
|
|
|
},
|
|
|
onLoad(){
|
|
@@ -330,10 +343,38 @@
|
|
|
this.personalForm.realName=this.userInfo.realName
|
|
|
this.personalForm.idCard=this.userInfo.idCard
|
|
|
}
|
|
|
-
|
|
|
+ this.isAnonymous=this.userInfo.isAnonymous
|
|
|
this.myJobHunt()
|
|
|
},
|
|
|
methods: {
|
|
|
+ change3(index){
|
|
|
+ this.isAnonymous=index;
|
|
|
+ this.updateApi()
|
|
|
+ },
|
|
|
+ updateApi(){
|
|
|
+ uni.showLoading({
|
|
|
+ title: "加载中",
|
|
|
+ mask: true,
|
|
|
+ })
|
|
|
+ API.updatePerson({
|
|
|
+ intention: this.userInfo.intention,
|
|
|
+ isAnonymous:this.isAnonymous,
|
|
|
+ jobStatus:this.userInfo.jobStatus
|
|
|
+ }).then((res) => {
|
|
|
+ uni.hideLoading();
|
|
|
+ //this.userInfo.intention=this.intention?"1":"2";
|
|
|
+ this.userInfo.isAnonymous=this.isAnonymous;
|
|
|
+ //this.userInfo.jobStatus=this.jobStatus?"1":"0";
|
|
|
+ this.carhelp.setPersonInfo(this.userInfo)
|
|
|
+ uni.showToast({
|
|
|
+ icon:"none",
|
|
|
+ title:"修改成功"
|
|
|
+ })
|
|
|
+ }).catch(error => {
|
|
|
+ this.showPhone = false;
|
|
|
+ uni.hideLoading();
|
|
|
+ })
|
|
|
+ },
|
|
|
reset() {
|
|
|
this.isChecked = -1;
|
|
|
|
|
@@ -689,6 +730,9 @@
|
|
|
}
|
|
|
|
|
|
.information-group {
|
|
|
+ .itemView{
|
|
|
+ padding-bottom:20px ;
|
|
|
+ }
|
|
|
.item {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
@@ -703,6 +747,11 @@
|
|
|
color: #FF0000;
|
|
|
}
|
|
|
}
|
|
|
+ .input4{
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+
|
|
|
+ }
|
|
|
.input3{
|
|
|
padding: 16rpx 0;
|
|
|
}
|