فهرست منبع

手机登录方式, 简历必填要求

zhengkaixin 3 سال پیش
والد
کامیت
6b6d28e8a5

+ 1 - 1
apis/job/job.js

@@ -50,7 +50,7 @@ export function getRecruitmentDetails(id) {
   
   export function collectResume(id,status) {
   	return request({
-  		url: '/mobile/resumeApi/collectResume',
+  		url: '/mobile/recruitmentApi/collectRecruitment',
   		data: {
 			recruitmentId:id,
 			status:status

+ 2 - 4
apis/login.js

@@ -35,13 +35,11 @@ export function wechatLogin(data) {
 		url:url 
 	})
 } 
-export function validateCode(tel) {
+export function validateCode(data) {
 	 
 	return requestWhite({
 		method: 'post',
-		data:{
-			telephone:tel
-		} ,
+		data:data ,
 		url: '/mobile/jobUserApi/validateCode'
 	})
 } 

+ 73 - 8
components/job/addResume.js

@@ -117,13 +117,15 @@ export default {
 			this.form=info;
 			this.form.categoryName=info.positionCategoryName
 			this.form.categoryId=info.positionCategoryId;
-			
-			this.pirList=info.resumeUrls.split(',');
-			this.fileList=this.pirList.map((item)=>{
-				return {
-					url:item
-				}
-			});
+			if(info.resumeUrls){
+				this.pirList=info.resumeUrls.split(',');
+				this.fileList=this.pirList.map((item)=>{
+					return {
+						url:item
+					}
+				});
+			}
+		
  			this.workExp=work.map((item)=>{
 				item.timeS=item.startTime;
 				item.timeE=item.endTime;
@@ -171,6 +173,56 @@ export default {
 				})
 				return false;
 			}
+			
+			var b=false;
+			this.workExp.find((item)=>{
+				debugger
+				if(!item.timeS||!item.timeE){
+					uni.showToast({
+						title:"请完善工作经历中的工作时间"
+						
+					})
+					b=true
+					return true;
+				}else if(!item.name||!item.remark||!item.content){
+					uni.showToast({
+						title:"请完善工作经历中的详细信息"
+					})
+					b=true
+					return true;
+				}else{
+					return false;
+				}
+			})
+			if(b){
+							 return false;
+			}
+			this.educationExp.find((item)=>{
+				debugger
+				if(!item.timeS||!item.timeE){
+					uni.showToast({
+						title:"请完善教育经历中的在校时间"
+						
+					})
+					b=true
+					return true;
+				}else if(!item.name||!item.remark||!item.content){
+					uni.showToast({
+						title:"请完善教育经历中的详细信息"
+					})
+					b=true
+					return true;
+				}else{
+					return false;
+				}
+			})
+			 
+			 if(b){
+				 return false;
+			 }
+			
+			
+			
 			uni.showLoading({
 				title:"提交中"
 			})
@@ -179,7 +231,15 @@ export default {
 				educationExp:this.educationExp,
 			}
 			this.form.expJson=JSON.stringify(expJson);
-			this.form.resumeUrls=this.picList.join();
+			this.form.resumeUrls=this.picList.filter(item=>{
+				if(item){
+					return true;
+				}else{
+					return false;
+				}
+			}).join();
+			
+			 
 			API.submitResume(this.form).then((response) => {
 				
 				uni.showToast({
@@ -377,10 +437,15 @@ export default {
 		beforeUpload(index, list){
 			console.log(list);
 		},
+		onErrorUpload(){
+			this.picList.push("")
+		},
 		successUpload(data, index, lists, name){
+			console.log(this.picList);
 			this.picList.push(data.data)
 		},
 		removeUpload(data, index, lists, name){
+			debugger
 			this.picList.splice(data,1)
 		}
 	},

+ 2 - 2
components/job/addResume.vue

@@ -51,11 +51,11 @@
 				<u-form-item label="期望工作地" :required ="true">
 					<u-input  v-model="form.dreamAdd" placeholder="请填写期望工作地" ></u-input>
 				</u-form-item>
-				<u-form-item :required ="true" ><!-- label="自我介绍" -->
+				<u-form-item :required ="true" label="自我介绍" ><!--  -->
 					<u-input v-model="form.introduction" type="textarea" placeholder="请输入个人介绍,500字以内"/>
 				</u-form-item>
 				<u-form-item label="简历附件" label-position="top">
-					<u-upload :action="action" :file-list="fileList" :header="header" name="photoFile" :form-data="formData"  @on-remove="removeUpload" @on-success="successUpload"	 >
+					<u-upload :action="action" :file-list="fileList" :header="header" name="photoFile" :form-data="formData"  @on-remove="removeUpload" @on-error="onErrorUpload" @on-success="successUpload"	 >
 						
 						
 					</u-upload>

+ 3 - 3
pages/job/personal/install/resume/resume.vue

@@ -53,7 +53,7 @@
 					
 				</view>
 			</view>
-			<view class="resumeInfo-info">
+			<view class="resumeInfo-info" v-if="workExpList.length">
 				<view class="resumeInfo-info-head">
 					工作经历
 				</view>
@@ -66,14 +66,14 @@
 							</view>
 							<view class="undergo-item-row">
 								<p>{{item.startTime}} - {{item.endTime}}</p>
-								<span>保密</span>
+								<!-- <span>保密</span> -->
 							</view>
 						</view>
 						 
 					</view>
 				</view>
 			</view>
-			<view class="resumeInfo-info">
+			<view class="resumeInfo-info" v-if="educationExperienceList.length">
 				<view class="resumeInfo-info-head">
 					教育经历
 				</view>

+ 3 - 2
pages/login/index.js

@@ -7,7 +7,8 @@ import {
 	} from '@/utils'
 export default {
 		data() {
-			return {
+			return {
+				test:process.env.NODE_ENV === "development",
 				phone:"",
 				isReady:false,
 				vcode:"",
@@ -41,7 +42,7 @@ export default {
 				this.tab=2
 			}
 			if(this.form=="job"){
-				this.tab=0
+				this.tab=1
 			}
 			this.message=op.message;
 			this.backUrl=op.back;

+ 4 - 3
pages/login/wxLogin/wxLogin.vue

@@ -22,7 +22,7 @@
 				</view>
 				<view class="content"  v-show="tab==2">
 					<view class="login-input">
-						<input type="text" v-model="tel" placeholder="请输入账号\手机号" />
+						<input type="text" v-model="tel" placeholder="请输入账号" />
 					</view>
 					<view class="login-input">
 						<input type="password" v-model="password" placeholder="请输入密码" />
@@ -43,10 +43,11 @@
 					
 				</view>
 				<view class="wxLogin-foot" v-show="tab!=4">
-					<view class="wxLogin-foot-btn">
+					<view class="wxLogin-foot-btn" v-if="test">
+						<!--  原有设计接口, 后续因为手机号必填,删减 -->
 						<u-button shape="circle" v-show="tab!=0" @click="tab=0">微信登录</u-button>
 						<u-button shape="circle" v-show="tab!=1&&form=='job'"  @click="tab=1">手机登录</u-button>
-						<u-button shape="circle" v-show="tab!=2"  @click="tab=2">密码登录</u-button>
+						<u-button shape="circle" v-show="tab!=2&&form=='hr'"  @click="tab=2">密码登录</u-button>
 					</view>
 					<view class="wxLogin-foot-text">
 						<u-checkbox-group>