Browse Source

上拉刷新

zhengkaixin 3 years ago
parent
commit
eceb63ec48

+ 1 - 1
.env.dev.js

@@ -4,7 +4,7 @@ const UNI_APP = {
 	NODE_ENV :"dev",
 	NODE_ENV :"dev",
 	SIMPLE_RUN:true,// 无视权限控制跳转页面   , 用于样式人员快速访问各种功能 ,快速测试等
 	SIMPLE_RUN:true,// 无视权限控制跳转页面   , 用于样式人员快速访问各种功能 ,快速测试等
 	openId:"oHjCawigqi8SEAwutwkQ-VEgdp3k",//测试用openId  
 	openId:"oHjCawigqi8SEAwutwkQ-VEgdp3k",//测试用openId  
-	
+	//openId:"oHjCawmHqG44pqUW54iBlenaHYB8",
 	//小鹏管家appid
 	//小鹏管家appid
 	VUE_APP_WXAPPID:"wx7e70eb62a8459869"
 	VUE_APP_WXAPPID:"wx7e70eb62a8459869"
 }  
 }  

+ 2 - 1
.env.test.js

@@ -3,7 +3,8 @@ const UNI_APP = {
     BASE_URL: 'http://121.37.187.149/jp-employment-server',
     BASE_URL: 'http://121.37.187.149/jp-employment-server',
 	NODE_ENV :"test",
 	NODE_ENV :"test",
 	SIMPLE_RUN:false,
 	SIMPLE_RUN:false,
-	openId:"oHjCawigqi8SEAwutwkQ-VEgdp3k",//测试用openId
+	//openId:"oHjCawigqi8SEAwutwkQ-VEgdp3k",//测试用openId
+	openId:"oHjCawmHqG44pqUW54iBlenaHYB8",
 	//小鹏管家appid
 	//小鹏管家appid
 	VUE_APP_WXAPPID:"wx7e70eb62a8459869"
 	VUE_APP_WXAPPID:"wx7e70eb62a8459869"
 }  
 }  

+ 5 - 0
pages/hr/my/collection/index.js

@@ -18,6 +18,11 @@ export default {
 		},
 		},
 		onLoad(op){
 		onLoad(op){
 			//this.id=op.id;
 			//this.id=op.id;
+		},
+		onReachBottom() {
+			if(this.result.length<this.recordsTotal){
+				this.myLoadmore();
+			}
 		},
 		},
 		methods: {
 		methods: {
 			del(id){
 			del(id){

+ 5 - 0
pages/hr/my/enroll/index.js

@@ -56,6 +56,11 @@ export default {
 				current: 0
 				current: 0
 			}
 			}
 		},
 		},
+		onReachBottom() {
+			if(this.list[this.current].list.length<this.list[this.current].recordsTotal){
+				this.myLoadmore();
+			}
+		},
 		components: {
 		components: {
 		ResumeItem
 		ResumeItem
 		},
 		},

+ 5 - 0
pages/hr/my/follow/index.js

@@ -11,6 +11,11 @@ export default {
 				src: '/static/img/head.png',
 				src: '/static/img/head.png',
 			}
 			}
 		},
 		},
+		onReachBottom() {
+			if(this.list.length<this.recordsTotal){
+				this.myLoadmore();
+			}
+		},
 		components: {
 		components: {
 		
 		
 		},
 		},

+ 5 - 0
pages/hr/my/look/index.js

@@ -18,6 +18,11 @@ export default {
 		},
 		},
 		onLoad(op){
 		onLoad(op){
 			//this.id=op.id;
 			//this.id=op.id;
+		},
+		onReachBottom() {
+			if(this.list.length<this.recordsTotal){
+				this.myLoadmore();
+			}
 		},
 		},
 		methods: {
 		methods: {
 			 
 			 

+ 5 - 0
pages/hr/my/position/index.js

@@ -38,6 +38,11 @@ export default {
 		},
 		},
 		components: {
 		components: {
 		
 		
+		},
+		onReachBottom() {
+			if(this.list[this.current].list.length<this.list[this.current].recordsTotal){
+				this.myLoadmore();
+			}
 		},
 		},
 		onLoad(op){
 		onLoad(op){
 			//this.id=op.id;
 			//this.id=op.id;

+ 5 - 0
pages/hr/newsIndex/servicesList/index.js

@@ -23,6 +23,11 @@ export default {
 		},
 		},
 		components: {
 		components: {
 		
 		
+		},
+		onReachBottom() {
+			if(this.list[this.current].list.length<this.list[this.current].recordsTotal){
+				this.myLoadmore();
+			}
 		},
 		},
 		onLoad(op){
 		onLoad(op){
 			//this.id=op.id;
 			//this.id=op.id;

+ 5 - 0
pages/hr/query/index.js

@@ -70,6 +70,11 @@ export default {
 				this.myfocus=false;
 				this.myfocus=false;
 			}
 			}
 			
 			
+		},
+		onReachBottom() {
+			if(this.list.length<this.recordsTotal){
+				this.myLoadmore();
+			}
 		},
 		},
 		methods: {
 		methods: {
 			
 			

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

@@ -110,7 +110,7 @@ export default {
 				var obj=this.list[this.current];
 				var obj=this.list[this.current];
 				var data={
 				var data={
 					type:obj.status,
 					type:obj.status,
-					pageIndex:obj.pageIndex
+					pageSize:5
 				};
 				};
 				
 				
 				 API.getRecruitmentList(data).then((response) => {
 				 API.getRecruitmentList(data).then((response) => {

+ 5 - 0
pages/job/newsIndex/newsList/index.js

@@ -17,6 +17,11 @@ export default {
 		},
 		},
 		components: {
 		components: {
 		
 		
+		},
+		onReachBottom() {
+			if(this.list.length<this.recordsTotal){
+				this.myLoadmore();
+			}
 		},
 		},
 		onLoad(op){
 		onLoad(op){
 			this.page.classifyId=op.id;
 			this.page.classifyId=op.id;

+ 5 - 0
pages/job/personal/my/resumeCollect/index.js

@@ -16,6 +16,11 @@ export default {
 		components: {
 		components: {
 		RecruitmentItem
 		RecruitmentItem
 		},
 		},
+		onReachBottom() {
+			if(this.list.length<this.recordsTotal){
+				this.myLoadmore();
+			}
+		},
 		onLoad(op){
 		onLoad(op){
 			//this.id=op.id;
 			//this.id=op.id;
 		},
 		},

+ 6 - 0
pages/job/personal/my/resumeList/index.js

@@ -47,6 +47,12 @@ export default {
 		},
 		},
 		onLoad(op){
 		onLoad(op){
 			//this.id=op.id;
 			//this.id=op.id;
+		},
+		onReachBottom() {
+			if(this.list[this.current].list.length<this.list[this.current].recordsTotal){
+			
+				this.myLoadmore();
+			}
 		},
 		},
 		methods: {
 		methods: {
 			myLoadmore(){
 			myLoadmore(){

+ 5 - 0
pages/job/personal/my/resumeLook/index.js

@@ -16,6 +16,11 @@ export default {
 		components: {
 		components: {
 		RecruitmentItem
 		RecruitmentItem
 		},
 		},
+		onReachBottom() {
+			if(this.list.length<this.recordsTotal){
+				this.myLoadmore();
+			}
+		},
 		onLoad(op){
 		onLoad(op){
 			//this.id=op.id;
 			//this.id=op.id;
 		},
 		},

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

@@ -61,6 +61,11 @@ export default {
 		},
 		},
 		components: {
 		components: {
 			RecruitmentItem
 			RecruitmentItem
+		},
+		onReachBottom() {
+			if(this.result.length<this.result.recordsTotal){
+				this.myLoadmore();
+			}
 		},
 		},
 		onLoad(op){
 		onLoad(op){
 			this.whereData={
 			this.whereData={