Explorar el Código

置顶 - 真实姓名保护

zhengkaixin hace 1 año
padre
commit
1b648d2acf

+ 1 - 1
config/.env.dev.js

@@ -10,7 +10,7 @@ const UNI_APP = {
 	openId:"o_5WO4hc7MyyVNjSDePRIft6AokI",//个人企业都注册
 	//openId:"o_5WO4qUozermjNRBqypzMZg56Qw",// 杨所199
 	openId:"o_5WO4tDGT3bJ-9Bpdizcdbs-HbI", //152
-	//openId:"006",// 个人  注册 ,企业未
+	//openId:"o_5WO4vGBgkh_aAzZV19XV5aKVas",// 个人  注册 ,企业未
 	//openId:"323",// 个人  未注册 ,企业 注册
 	 
 	//小鹏管家appid

+ 10 - 1
pages/main/index/index.vue

@@ -104,7 +104,7 @@
 					<view class="content-1">
 						<!-- 职位 -->
 						<view class="position">
-							{{item.positionName}}
+						<span class="tophot" v-if="item.isTopping" >置顶</span>	{{item.positionName}}
 						</view>
 						<!-- 薪水 -->
 						<view class="salary">
@@ -335,7 +335,16 @@
 			display: none !important;
 		}
 	}
+	.tophot{
+		padding:2rpx 6rpx;
+		border: 1px solid  #2795FD ;
+		border-radius: 8rpx;
+		color:#2795FD ;
+		line-height: 24rpx;
+		font-size: 24rpx;
+		margin-right: 12rpx;
 
+	}
 	// 头部
 	.top {
 

+ 51 - 2
pages/packages/mine/myJobInformation/myJobInformation.vue

@@ -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;
 				}

+ 11 - 1
pages/tab/jobInformation/jobInformation.vue

@@ -36,7 +36,7 @@
 				<view class="content-1">
 					<!-- 职位 -->
 					<view class="position">
-						{{item.positionName}}
+						<span class="tophot" v-if="item.isTopping" >置顶</span>	{{item.positionName}}
 					</view>
 					<!-- 薪水 -->
 					<view class="salary">
@@ -256,6 +256,16 @@
 	}
 </style>
 <style lang="scss" scoped>
+	.tophot{
+		padding:2rpx 6rpx;
+		border: 1px solid  #2795FD ;
+		border-radius: 8rpx;
+		color:#2795FD ;
+		line-height: 24rpx;
+		font-size: 24rpx;
+		margin-right: 12rpx;
+	
+	}
 	.search {
 		background-color: #fff;
 		padding: 16rpx 32rpx;