zhengkaixin пре 3 година
родитељ
комит
5481f54351

+ 1 - 1
pages/hr/query/index.js

@@ -72,7 +72,7 @@ export default {
 			
 		},
 		onReachBottom() {
-			if(this.list.length<this.recordsTotal){
+			if(this.result.length<this.recordsTotal){
 				this.myLoadmore();
 			}
 		},

+ 5 - 4
pages/job/index/index.js

@@ -85,9 +85,10 @@ export default {
 				API_common.getScreenList().then((response) => {
 					
 					var list=response.data;
-					this.popupList=list.map((item)=>{
-						return item.name;
-					})
+					this.popupList=list
+					// .map((item)=>{
+					// 	return item.name;
+					// })
 				}).catch(error => {
 						uni.showToast({
 							
@@ -182,7 +183,7 @@ export default {
 			 ckPopup(item){
 				//this.querypopup=item;
 				 this.showpopup=false;
-				 this.gotoUrl('pages/job/query/query?key='+item);
+				 this.gotoUrl('pages/job/query/query?key='+item.id+'&name='+item.name);
 			 }
 			
 		},onReady(){ 

+ 2 - 2
pages/job/index/index.vue

@@ -38,8 +38,8 @@
 						<h3>招聘岗位</h3>
 					</view>
 					<view class="jp-search-tag">
-						<u-tag  v-for="(item,index) in popupList" :key="index" :text="item" mode="dark" 
-						:color="querypopup==item?'#FFFFFF':'#666666'"  :bg-color="querypopup==item?'#2295FF':'#f1f1f1'"
+						<u-tag  v-for="(item,index) in popupList" :key="index" :text="item.name" mode="dark" 
+						:color="querypopup==item.name?'#FFFFFF':'#666666'"  :bg-color="querypopup==item.name?'#2295FF':'#f1f1f1'"
 						@click="ckPopup(item)"
 						/>
 						 

+ 1 - 1
pages/job/newsIndex/newsList/index.js

@@ -19,7 +19,7 @@ export default {
 		
 		},
 		onReachBottom() {
-			if(this.list.length<this.recordsTotal){
+			if(this.result.length<this.recordsTotal){
 				this.myLoadmore();
 			}
 		},

+ 15 - 5
pages/job/query/index.js

@@ -56,7 +56,8 @@ export default {
 					"7724a25f-a781-46f4-b048-d9812108ff02" , //工作经验
 					"c1887d9d-e945-4875-be3f-905195cd8a8e"//学历
 				],
-				dataMap:{},
+				dataMap:{},
+				init:false,
 			}
 		},
 		components: {
@@ -72,8 +73,16 @@ export default {
 				...this.whereDataInit
 			}
 			
-			if(op.key){
-				this.key=op.key;
+			if(op.key){
+				this.init=true;
+				
+				this.whereData[3]={
+					label:op.name,
+					name:op.name,
+					value:op.key,
+				};
+			
+				
 			}
 			if(op.all){
 				this.myfocus=false;
@@ -275,7 +284,8 @@ export default {
 				
 			},
 			noSearch(){
-				this.ing=true;
+				this.ing=true;
+				 
 				this.whereData={
 					...this.whereDataInit
 				}
@@ -344,7 +354,7 @@ export default {
 			this.record=this.carhelp.get("searchHistory");
 			this.getDataMap();
 			this.isReady=true;
-			if(this.key||!this.myfocus ){
+			if(this.init||this.key||!this.myfocus ){
 				this.submit()
 			}
 		},onShow(){