Parcourir la source

职位详情添加岗位对应跨境标签

wkw il y a 7 mois
Parent
commit
eeb822129d
2 fichiers modifiés avec 34 ajouts et 13 suppressions
  1. 22 12
      pages/index/game/order.vue
  2. 12 1
      pages/my/jobPosting.vue

+ 22 - 12
pages/index/game/order.vue

@@ -124,6 +124,14 @@
 						<view class="jobRemarks-box-c-con-item" v-html="info.positionDetails">
 						</view>
 					</view>
+					
+					<view class="job-info-c-label flex align-center flex-wrap" v-if="info.positionTag">
+						<view class="job-info-c-label-item"
+							v-for="(item,index) in info.positionTag?info.positionTag.split(','):[]"
+							:key="index">
+							{{item}}
+						</view>
+					</view>
 
 					<view class="jobRemarks-box-c-line"></view>
 
@@ -917,18 +925,7 @@
 				text-align: left;
 			}
 
-			.job-info-c-label {
-				margin-top: 30rpx;
-
-				.job-info-c-label-item {
-					margin-right: 30rpx;
-					color: rgba(153, 153, 153, 1);
-					font-size: 24rpx;
-					padding: 4px;
-					border-radius: 6px;
-					background: rgba(198, 198, 198, 0.1);
-				}
-			}
+			
 
 			.job-info-c-price {
 				color: rgba(1, 107, 246, 1);
@@ -942,6 +939,19 @@
 			}
 		}
 	}
+	.job-info-c-label {
+		margin-top: 30rpx;
+	
+		.job-info-c-label-item {
+			margin-bottom: 15rpx;
+			margin-right: 20rpx;
+			color: rgba(153, 153, 153, 1);
+			font-size: 24rpx;
+			padding: 4px;
+			border-radius: 6px;
+			background: rgba(198, 198, 198, 0.1);
+		}
+	}
 
 	.enterprise-box-c-info {
 				width: 100%;

+ 12 - 1
pages/my/jobPosting.vue

@@ -40,9 +40,18 @@
 				</view>
 				<view class="check-title-big">岗位描述</view>
 				<view class="check-select" @click="goJobContent">
+				    <view class="select-txt" v-if="textList.length > 0">
+				      <view v-for="(item, index) in textList" :key="index">
+				        {{ item }}
+				      </view>
+				    </view>
+					<view class="select-txt" v-else>介绍工作内容、职位要求</view>
+				    <u-icon name="arrow-down" color="#D3D3D6" size="22"></u-icon>
+				  </view>
+				<!-- <view class="check-select" @click="goJobContent">
 					<view class="select-txt">{{ this.text ? this.text : "介绍工作内容、职位要求" }}</view>
 					<u-icon name="arrow-down" color="#D3D3D6" size="22"></u-icon>
-				</view>
+				</view> -->
 				<view class="txt-desc">注:职位名称、职位类型等发布后不可修改</view>
 			</view>
 		</view>
@@ -65,6 +74,7 @@ export default {
 			update: "",
 			vipPostTimes: 0,
 			text: "",
+			textList: [],
 			status: "",
 			companyName: "",
 			companyId: "",
@@ -109,6 +119,7 @@ export default {
 		}
 		this.descListener = uni.$on("jobDescUpdated", (data) => {
 			this.text = data.desc; // 赋值给当前页变量
+			this.textList = this.text.split('\n').filter(i => i.trim());
 		});
 
 		this.onJobEvent = (data) => {