Ver código fonte

添加屏蔽公司功能

wkw 6 meses atrás
pai
commit
d0dfd03c51
2 arquivos alterados com 44 adições e 24 exclusões
  1. 15 21
      package/jobIntention/jobList.vue
  2. 29 3
      pages/my/onlineResume.vue

+ 15 - 21
package/jobIntention/jobList.vue

@@ -1,5 +1,5 @@
 <template>
-	<view>
+	<view class="flex flex-direction" style="height: 100vh;">
 		<!-- 职业选择头部 -->
 		<view class="profession-header" :style="{ paddingTop: (12 + statusBarHeight) + 'px' }">
 			<view class="header-content">
@@ -12,15 +12,15 @@
 		</view>
 		
 		<!-- 搜索 -->
-		<!-- <view class="search flex justify-center align-center">
+		<view class="search flex justify-center align-center">
 			<view class="search-box">
-				<u-search placeholder="搜索位" :show-action="false" @change="getSearchList" v-model="keyword"></u-search>
+				<u-search placeholder="搜索位" :show-action="false" @change="getSearchList" v-model="keyword"></u-search>
 			</view>
-		</view> -->
+		</view>
 		<!-- 搜索列表 -->
 		<view class="searchList flex justify-center" v-if="keyword!=''">
 			<view class="searchList-box">
-				<scroll-view scroll-y="true" class="searchList-box-scroll">
+				<scroll-view scroll-y="true" class="searchList-box-scroll" style="height: 100%;">
 					<view class="searchList-box-item" @click="selectJob(item)" v-for="(item,index) in searchList" :key="index">
 						<view class="">
 							{{item.ruleClassifyName}}
@@ -232,14 +232,8 @@
 	}
 	.searchList{
 		width: 100%;
-		/* #ifdef MP-WEIXIN */
-		height: calc(100vh - 100rpx);
-		/* #endif */
-		/* #ifndef MP-WEIXIN */
-		height: calc(100vh - 180rpx);
-		/* #endif */
-		position: fixed;
-		bottom: 0;
+		flex: 1;
+		overflow: auto;
 		.searchList-box{
 			width: 686rpx;
 			.searchList-box-scroll{
@@ -275,12 +269,12 @@
 	}
 	.list{
 		width: 100;
-		height: calc(100vh - 180rpx);
+		flex: 1;
 		gap: 12rpx;
-		
+		overflow: auto;
 		.list-l{
 			width: 25%;
-			height: 90%;
+			height: 100%;
 			border-radius: 6px;
 			background: rgba(245, 245, 245, 1);
 			
@@ -301,7 +295,7 @@
 		}
 		.list-r{
 			width: 75%;
-			height: 90%;
+			height: 100%;
 			background-color: #ffffff;
 			border-left: 1rpx solid #F2F2F7;
 			box-sizing: border-box;
@@ -377,10 +371,10 @@
 	}
 	
 	.bottom-btn-container {
-		position: fixed;
-		bottom: 0;
-		left: 0;
-		right: 0;
+		// position: fixed;
+		// bottom: 0;
+		// left: 0;
+		// right: 0;
 		padding: 30rpx 20rpx;
 		background: #fff;
 		border-top: 1px solid #f0f0f0;

+ 29 - 3
pages/my/onlineResume.vue

@@ -118,14 +118,13 @@
 					</view>
 
 					<view class="experience-list">
-						<view class="experience-item" @click.stop="goToWorkExperience(item.workExpId)"
-							v-for="item in detail.workExps">
+						<view class="experience-item" v-for="item in detail.workExps">
 							<view class="company-logo">
 								<image src="../../static/images/index/changsha.svg" class="logo-img" mode="aspectFit">
 								</image>
 							</view>
 							<view class="experience-content">
-								<view class="experience-box" v-for="it in item.workExpDetails">
+								<view class="experience-box" v-for="it in item.workExpDetails" @click.stop="goToWorkExperience(item.workExpId)">
 									<view class="job-info-row">
 										<view class="job-title">{{ it.position }}</view>
 										<view class="job-department">{{ it.department }}</view>
@@ -146,6 +145,10 @@
 										<view class="tag" v-for="skill in it.skills">{{ skill }}</view>
 									</view>
 								</view>
+								<view class="flex align-center justify-between">
+									<view style="color: #78828a;font-size: 22rpx;">不对该公司展示</view>
+									<u-switch v-model="item.isShield" @change="changeIsDisplay(item)"></u-switch>
+								</view>
 							</view>
 							<view @click.stop="commonDelete(item.workExpId, 'workExps')">
 								<image src="../../static/images/index/delete.svg" class="delete-icon" />
@@ -270,6 +273,28 @@ export default {
 		uni.$off('skillsUpdated')
 	},
 	methods: {
+		// 是否屏蔽该公司
+		changeIsDisplay(item){
+			let data = {
+				workExp:{
+					isShield:item.isShield?1:0,
+					workExpId:item.workExpId
+				}
+			}
+			this.$Request.postJson("/app/userFirst/addWorkExp", data).then((res) => {
+				if (res.code == 0) {
+					uni.showToast({
+						title: "修改成功",
+						icon: "none"
+					});
+				} else {
+					uni.showToast({
+						title: res.msg,
+						icon: "none",
+					});
+				}
+			});
+		},
 		goBack() {
 			uni.navigateBack();
 		},
@@ -292,6 +317,7 @@ export default {
 						} catch (e) {
 							console.warn('item.type JSON解析失败:', item.type);
 						}
+						item.isShield = item.isShield == 1?true:false
 						item.workExpDetails = [];
 						res.data.workExpList.forEach(function (it) {
 							console.log(it.skills);