diff --git a/App.vue b/App.vue
index 2e2c3d3..ba619ac 100644
--- a/App.vue
+++ b/App.vue
@@ -4,6 +4,8 @@
},
onShow: function() {
// this.$store.commit('initConfig')
+ this.$store.commit('getJobTypeList')
+ // this.$store.commit('getAddressList')
},
onHide: function() {
}
diff --git a/api/api.js b/api/api.js
index 02a5510..0e926f4 100644
--- a/api/api.js
+++ b/api/api.js
@@ -21,8 +21,8 @@ const config = {
*/
// 微信登录接口
wxLogin: {
- url: '/login/login',
- method: 'POST',
+ url: '/api/login/login',
+ method: 'GET',
limit : 500,
showLoading : true,
},
@@ -52,6 +52,22 @@ const config = {
*/
+ //获取工种列表
+ commonQueryJobTypeList: {
+ url: '/api/common/queryJobTypeList',
+ method: 'GET',
+ },
+ //获取banner图列表
+ commonQueryBannerList: {
+ url: '/api/common/queryBannerList',
+ method: 'GET',
+ },
+ //获取开放地址列表
+ commonQueryAddressList: {
+ url: '/api/common/queryAddressList',
+ method: 'GET',
+ },
+
/**
* 求职者的接口
@@ -68,10 +84,35 @@ const config = {
url: '/api/employee/queryJobById',
method: 'GET',
},
+ //我的收藏
+ employeeQueryCollectionJobList: {
+ url: '/api/employee/queryJobCollectionList',
+ method: 'GET',
+ },
+ //联系记录-我看过谁(我的找活)
+ employeeQueryWatchWho: {
+ url: '/api/employee/queryWatchWho',
+ method: 'GET',
+ },
+ //联系记录-谁看过我(谁看过我的简历)
+ employeeQueryWatchMe: {
+ url: '/api/employee/queryWatchMe',
+ method: 'GET',
+ },
/**
* boss的接口
*/
+ //获取简历列表
+ bossQueryJobList: {
+ url: '/api/boss/queryJobList',
+ method: 'GET',
+ },
+ //根据Id查看简历详情
+ bossQueryResumeById: {
+ url: '/api/boss/queryResumeById',
+ method: 'GET',
+ },
}
export function api(key, data, callback, loadingTitle) {
diff --git a/components/list/bossList/index.vue b/components/list/bossList/index.vue
index f5ed9ce..02e11bf 100644
--- a/components/list/bossList/index.vue
+++ b/components/list/bossList/index.vue
@@ -39,22 +39,22 @@
}
},
methods: {
- queryVideoList(){
+ getData(){
if(uni.getStorageSync('token')){
this.queryParams.token = uni.getStorageSync('token')
}
this.$api(this.api, this.queryParams, res => {
if(res.code == 200){
- this.list = res.result
- // this.total = res.result.total
+ this.list = res.result.records
+ this.total = res.result.total
}
})
},
loadMoreData(){
if(this.queryParams.pageSize <= this.list.length){
this.queryParams.pageSize += 10
- this.queryVideoList()
+ this.getData()
}
},
}
diff --git a/components/list/userList/index.vue b/components/list/userList/index.vue
index d1b92b1..26659eb 100644
--- a/components/list/userList/index.vue
+++ b/components/list/userList/index.vue
@@ -5,9 +5,9 @@
@scrolltolower="loadMoreData">
+ v-for="(item, index) in list">
@@ -25,7 +25,7 @@
default : 'auto'
},
api : {
- default : ''
+ default : 'bossQueryJobList'
}
},
data() {
@@ -35,26 +35,26 @@
pageSize: 10,
},
total : 0,
- list : 10,
+ list : [],
}
},
methods: {
- queryVideoList(){
+ getData(){
if(uni.getStorageSync('token')){
this.queryParams.token = uni.getStorageSync('token')
}
this.$api(this.api, this.queryParams, res => {
if(res.code == 200){
- this.list = res.result
- // this.total = res.result.total
+ this.list = res.result.records
+ this.total = res.result.total
}
})
},
loadMoreData(){
if(this.queryParams.pageSize <= this.list.length){
this.queryParams.pageSize += 10
- this.queryVideoList()
+ this.getData()
}
},
}
diff --git a/components/list/userList/userItem.vue b/components/list/userList/userItem.vue
index 1986a61..fa4db5e 100644
--- a/components/list/userList/userItem.vue
+++ b/components/list/userList/userItem.vue
@@ -2,28 +2,49 @@
-
+
- 李老板
+
+ {{ item.name }}
- 装配电工
+
+ {{ item.typeId_dictText }}
+
+
+
+ {{ item.natureId_dictText }}
- 男 · 汉族 · 本科 · 应届生
+
+ {{ item.sex }} · {{ item.nation }} · {{ item.qualification }} · 应届生
-
- 12-18K
+
+
+ {{ (item.salaryLow / 1000).toFixed(0) }}
+
+
+ -{{ (item.salaryUp / 1000).toFixed(0) }}
+
+ K
+
+
+ {{ item.salaryLow }}
+ -{{ item.salaryUp }}
- 09月23日 16:20
+
+ {{ $dayjs(item.createTime).format('YYYY-MM-DD') }}
@@ -35,11 +56,21 @@
+
+
diff --git a/pages_order/work/workDetail.vue b/pages_order/work/workDetail.vue
index 823d441..82c7590 100644
--- a/pages_order/work/workDetail.vue
+++ b/pages_order/work/workDetail.vue
@@ -73,7 +73,7 @@
-
+
{{ t }}
diff --git a/store/store.js b/store/store.js
index 9f0e776..3c88d36 100644
--- a/store/store.js
+++ b/store/store.js
@@ -10,8 +10,11 @@ const store = new Vuex.Store({
state: {
configList: [], //配置列表
// 角色 true为老板 false为工人
- role : false,
+ role : true,
userInfo : {}, //用户信息
+ banner : [],//轮播图
+ jobTypeList : [],//工种
+ addressList : [],//开放地址
},
getters: {
},
@@ -74,6 +77,42 @@ const store = new Vuex.Store({
}
})
},
+ // 获取工种列表
+ getJobTypeList(state){
+ api('commonQueryJobTypeList', {
+ pageNo : 1,
+ pageSize : 99999,
+ }, res => {
+ if(res.code != 200){
+ return
+ }
+ state.jobTypeList = res.result.records
+ })
+ },
+ // 获取开放地址
+ getAddressList(state){
+ api('commonQueryAddressList', {
+ pageNo : 1,
+ pageSize : 99999,
+ }, res => {
+ if(res.code != 200){
+ return
+ }
+ state.addressList = res.result.records
+ })
+ },
+ // 获取轮播图
+ getBanner(state){
+ api('commonQueryBannerList', {
+ pageNo : 1,
+ pageSize : 99999,
+ }, res => {
+ if(res.code != 200){
+ return
+ }
+ state.banner = res.result.records
+ })
+ },
},
actions: {},
})