Browse Source

上传修改

master
前端-胡立永 7 months ago
parent
commit
5f2616b3a3
15 changed files with 192 additions and 71 deletions
  1. +1
    -0
      App.vue
  2. +20
    -5
      api/api.js
  3. +5
    -2
      components/list/bossList/index.vue
  4. +18
    -16
      components/screen/screenWork.vue
  5. +1
    -1
      config.js
  6. +22
    -5
      pages.json
  7. +2
    -2
      pages/index/center.vue
  8. +27
    -26
      pages_order/mine/IntegralRecord.vue
  9. +10
    -1
      pages_order/mine/collect.vue
  10. +36
    -3
      pages_order/mine/contactRecord.vue
  11. +12
    -1
      pages_order/mine/releaseWork.vue
  12. +13
    -5
      pages_order/mine/seeMy.vue
  13. +6
    -2
      pages_order/work/userDetail.vue
  14. +6
    -2
      pages_order/work/workDetail.vue
  15. +13
    -0
      store/store.js

+ 1
- 0
App.vue View File

@ -6,6 +6,7 @@
// this.$store.commit('initConfig') // this.$store.commit('initConfig')
this.$store.commit('getJobTypeList') this.$store.commit('getJobTypeList')
this.$store.commit('getAddressList') this.$store.commit('getAddressList')
this.$store.commit('getNatureList')
}, },
onHide: function() { onHide: function() {
} }


+ 20
- 5
api/api.js View File

@ -101,6 +101,11 @@ const config = {
url: '/api/common/queryJobTypeList', url: '/api/common/queryJobTypeList',
method: 'GET', method: 'GET',
}, },
//获取工作性质列表
commonQueryJobNatureList: {
url: '/api/common/queryJobNatureList',
method: 'GET',
},
//获取banner图列表 //获取banner图列表
commonQueryBannerList: { commonQueryBannerList: {
url: '/api/common/queryBannerList', url: '/api/common/queryBannerList',
@ -139,7 +144,7 @@ const config = {
//获取工作信息列表 //获取工作信息列表
employeeQueryJobList: { employeeQueryJobList: {
url: '/api/employee/queryJobList',
url: '/api/employee/queryJobListByAll',
method: 'GET', method: 'GET',
}, },
//根据Id查看工作详情 //根据Id查看工作详情
@ -152,12 +157,17 @@ const config = {
url: '/api/employee/queryJobCollectionList', url: '/api/employee/queryJobCollectionList',
method: 'GET', method: 'GET',
}, },
//联系记录-我看过谁(我的找活)
//我的找活
employeeQueryResumeByUserId: {
url: '/api/employee/queryResumeByUserId',
method: 'GET',
},
//联系记录-我看过谁
employeeQueryWatchWho: { employeeQueryWatchWho: {
url: '/api/employee/queryWatchWho', url: '/api/employee/queryWatchWho',
method: 'GET', method: 'GET',
}, },
//联系记录-谁看过我(谁看过我的简历)
//联系记录-谁看过我
employeeQueryWatchMe: { employeeQueryWatchMe: {
url: '/api/employee/queryWatchMe', url: '/api/employee/queryWatchMe',
method: 'GET', method: 'GET',
@ -191,12 +201,17 @@ const config = {
url: '/api/boss/queryJobCollectionList', url: '/api/boss/queryJobCollectionList',
method: 'GET', method: 'GET',
}, },
//会员中心-联系记录-我看过谁(我的招工)
//我的招工
bossQueryJobListByUserId: {
url: '/api/boss/queryJobListByUserId',
method: 'GET',
},
//会员中心-联系记录-我看过谁
bossQueryWatchWho: { bossQueryWatchWho: {
url: '/api/boss/queryWatchWho', url: '/api/boss/queryWatchWho',
method: 'GET', method: 'GET',
}, },
//会员中心-联系记录-谁看过我(谁看过我的招工)
//会员中心-联系记录-谁看过我
bossQueryWatchMe: { bossQueryWatchMe: {
url: '/api/boss/queryWatchMe', url: '/api/boss/queryWatchMe',
method: 'GET', method: 'GET',


+ 5
- 2
components/list/bossList/index.vue View File

@ -26,6 +26,9 @@
}, },
api : { api : {
default : '' default : ''
},
list : {
default : []
} }
}, },
data() { data() {
@ -35,7 +38,7 @@
pageSize: 10, pageSize: 10,
}, },
total : 0, total : 0,
list : 10,
list2 : 10,
} }
}, },
methods: { methods: {
@ -46,7 +49,7 @@
this.$api(this.api, this.queryParams, res => { this.$api(this.api, this.queryParams, res => {
if(res.code == 200){ if(res.code == 200){
this.list = res.result.records
this.list2 = res.result.records
this.total = res.result.total this.total = res.result.total
} }
}) })


+ 18
- 16
components/screen/screenWork.vue View File

@ -58,7 +58,7 @@
@click="clickTag(item, i)" @click="clickTag(item, i)"
v-for="(t, i) in item.tag" v-for="(t, i) in item.tag"
:key="t"> :key="t">
{{ t }}
{{ t.label }}
</view> </view>
</view> </view>
</view> </view>
@ -95,14 +95,6 @@
label: '全国', label: '全国',
value: 0, value: 0,
}, },
{
label: '金牌讲解员',
value: 1
},
{
label: '专业讲解员',
value: 2
},
] ]
}, },
craft: { craft: {
@ -132,11 +124,11 @@
] ]
}, },
list : [ list : [
{
title : '您目前所属的年龄段',
tag : ['18岁~35岁', '35岁~45岁', '45岁~50岁', '50岁以上'],
index : 0,
},
// {
// title : '',
// tag : ['1835', '3545', '4550', '50'],
// index : 0,
// },
{ {
title : '您希望从事的工种', title : '您希望从事的工种',
tag : ['电工', '焊工', '叉车', '其他'], tag : ['电工', '焊工', '叉车', '其他'],
@ -169,16 +161,26 @@
currentDropItem() { currentDropItem() {
return this[this.activeName]; return this[this.activeName];
}, },
...mapState(['jobTypeList']),
...mapState(['jobTypeList', 'natureList']),
}, },
mounted() { mounted() {
console.log('=================================');
//
this.jobTypeList.forEach(n => { this.jobTypeList.forEach(n => {
this.craft.child.push({ this.craft.child.push({
label: n.name, label: n.name,
value: n.id, value: n.id,
}) })
}) })
this.list[0].tag = this.craft.child
//
this.natureList.forEach(n => {
this.nature.child.push({
label: n.name,
value: n.id,
})
})
this.list[1].tag = this.nature.child
}, },
methods: { methods: {
clickTag(item, i){ clickTag(item, i){


+ 1
- 1
config.js View File

@ -13,7 +13,7 @@ const type = 'dev'
// 环境配置 // 环境配置
const config = { const config = {
dev : { dev : {
baseUrl : 'https://employadmin.augcl.com/employ-api',
baseUrl : 'http://augcl.natapp1.cc/employ-api',
}, },
prod : { prod : {
baseUrl : 'https://employadmin.augcl.com/employ-api', baseUrl : 'https://employadmin.augcl.com/employ-api',


+ 22
- 5
pages.json View File

@ -21,7 +21,8 @@
{ {
"path": "pages/index/center", "path": "pages/index/center",
"style": { "style": {
"navigationBarTitleText": ""
"navigationBarTitleText": "",
"navigationBarTextStyle": "white"
} }
} }
], ],
@ -55,16 +56,32 @@
"path": "work/workDetail" "path": "work/workDetail"
}, },
{ {
"path": "mine/collect"
"path": "mine/collect",
"style": {
"navigationBarTitleText": "",
"navigationBarTextStyle": "white"
}
}, },
{ {
"path": "mine/contactRecord"
"path": "mine/contactRecord",
"style": {
"navigationBarTitleText": "",
"navigationBarTextStyle": "white"
}
}, },
{ {
"path": "mine/releaseWork"
"path": "mine/releaseWork",
"style": {
"navigationBarTitleText": "",
"navigationBarTextStyle": "white"
}
}, },
{ {
"path": "mine/seeMy"
"path": "mine/seeMy",
"style": {
"navigationBarTitleText": "",
"navigationBarTextStyle": "white"
}
}, },
{ {
"path": "mine/contract" "path": "mine/contract"


+ 2
- 2
pages/index/center.vue View File

@ -96,7 +96,7 @@
<uv-grid :col="4" :border="false"> <uv-grid :col="4" :border="false">
<uv-grid-item @click="$utils.navigateTo('/pages_order/mine/releaseWork')"> <uv-grid-item @click="$utils.navigateTo('/pages_order/mine/releaseWork')">
<image class="image" src="/static/image/center/a1.png" mode=""></image> <image class="image" src="/static/image/center/a1.png" mode=""></image>
<text class="grid-text">我的找活</text>
<text class="grid-text">{{ role ? '我的招工' : '我的找活'}}</text>
</uv-grid-item> </uv-grid-item>
<uv-grid-item @click="$utils.navigateTo('/pages_order/mine/seeMy')"> <uv-grid-item @click="$utils.navigateTo('/pages_order/mine/seeMy')">
@ -190,7 +190,7 @@
tabber, tabber,
}, },
computed: { computed: {
...mapState(['userInfo']),
...mapState(['userInfo', 'role']),
headImage(){ headImage(){
return '/static/image/center/headImage.png' return '/static/image/center/headImage.png'
}, },


+ 27
- 26
pages_order/mine/IntegralRecord.vue View File

@ -7,15 +7,15 @@
<view class="number"> <view class="number">
当前积分 当前积分
<view> <view>
0
{{ formal.score + temporarily.score }}
</view> </view>
</view> </view>
<view class="bottom"> <view class="bottom">
<view> <view>
正式积分0
正式积分{{ formal.score }}
</view> </view>
<view> <view>
临时积分0
临时积分{{ temporarily.score }}
</view> </view>
</view> </view>
</view> </view>
@ -53,29 +53,6 @@
data() { data() {
return { return {
title : '积分记录', title : '积分记录',
agentFlow : {
total : 0,
records : [
{
type : 0,
money : 100,
createTime : '2024-04-02 20:00',
title : "佣金提现",
},
{
type : 0,
money : 100,
createTime : '2024-04-02 20:00',
title : "佣金提现",
},
{
type : 0,
money : 100,
createTime : '2024-04-02 20:00',
title : "佣金提现",
},
]
},
x : ['+', '-'], x : ['+', '-'],
status : 0, status : 0,
tabs: [ tabs: [
@ -88,12 +65,23 @@
], ],
type : 0, type : 0,
mixinsListApi : 'commonQueryScoreRecord', mixinsListApi : 'commonQueryScoreRecord',
//
formal : {
score : 0
},
//
temporarily : {
score : 0
},
} }
}, },
onLoad(e) { onLoad(e) {
this.status = e.status this.status = e.status
this.queryParams.type = this.type this.queryParams.type = this.type
}, },
onShow() {
this.getCounst()
},
methods: { methods: {
leftClick() { // leftClick() { //
uni.navigateBack(-1) uni.navigateBack(-1)
@ -101,6 +89,19 @@
clickTabs({index}) { clickTabs({index}) {
this.type = index this.type = index
this.queryParams.type = this.type this.queryParams.type = this.type
this.getData()
},
getCounst(){
this.$api('commonQueryScore', {type : 0}, res => {
if(res.code == 200){
this.formal = res.result
}
})
this.$api('commonQueryScore', {type : 1}, res => {
if(res.code == 200){
this.temporarily = res.result
}
})
}, },
} }
} }


+ 10
- 1
pages_order/mine/collect.vue View File

@ -10,7 +10,7 @@
<workListSwipe <workListSwipe
:options="options" :options="options"
@clickSwipeAction="clickSwipeAction" @clickSwipeAction="clickSwipeAction"
:list="list"/>
:list="list2"/>
</view> </view>
</template> </template>
@ -34,6 +34,7 @@
}, },
], ],
mixinsListApi : 'employeeQueryCollectionJobList', mixinsListApi : 'employeeQueryCollectionJobList',
list2 : [],
} }
}, },
computed : { computed : {
@ -48,6 +49,14 @@
clickSwipeAction({e, item}){ clickSwipeAction({e, item}){
console.log(e, item); console.log(e, item);
}, },
getDataThen(list, total, result){
let l = []
result.forEach(res => {
res.employJob.employCollectionJob = res.employCollectionJob
l.push(res.employJob)
})
this.list2 = l
},
} }
} }
</script> </script>


+ 36
- 3
pages_order/mine/contactRecord.vue View File

@ -16,19 +16,25 @@
@click="clickTabs"></uv-tabs> @click="clickTabs"></uv-tabs>
</view> </view>
<!-- 工人看到的 -->
<workList :api="api" ref="list" v-if="!role && type == 0"/>
<bossList :api="api" ref="list" v-if="!role && type == 1"/>
<workList api="employeeQueryWatchWho" ref="workList" v-if="type == 0"/>
<bossList ref="bossList" v-if="type == 1"/>
<!-- 老板看到的 -->
<userList :api="api" ref="list" v-if="role"/>
</view> </view>
</template> </template>
<script> <script>
import workList from '@/components/list/workList/index.vue' import workList from '@/components/list/workList/index.vue'
import bossList from '@/components/list/bossList/index.vue' import bossList from '@/components/list/bossList/index.vue'
import userList from '@/components/list/userList/index.vue'
import { mapState } from 'vuex'
export default { export default {
components : { components : {
bossList, bossList,
workList, workList,
userList,
}, },
data() { data() {
return { return {
@ -41,13 +47,40 @@
}, },
], ],
type : 0, type : 0,
api : ''
} }
}, },
computed : {
...mapState([
'role',
]),
},
onLoad() {
this.setApi()
},
onShow() {
this.$nextTick(() => {
this.$refs.list.getData()
})
},
onReachBottom() {
this.$refs.list.loadMoreData()
},
methods: { methods: {
clickTabs({index}) { clickTabs({index}) {
this.type = index this.type = index
this.setApi()
this.$nextTick(() => {
this.$refs.list.getData()
})
},
setApi(){
if(this.role){
this.api = ['bossQueryWatchWho', 'bossQueryWatchMe'][this.type]
}else{
this.api = ['employeeQueryWatchWho', 'employeeQueryWatchMe'][this.type]
}
}, },
} }
} }
</script> </script>


+ 12
- 1
pages_order/mine/releaseWork.vue View File

@ -3,6 +3,7 @@
<view class="page"> <view class="page">
<navbar title="我的找活" <navbar title="我的找活"
:title="role ? '我的招工' : '我的找活'"
bgColor="#3796F8" bgColor="#3796F8"
leftClick leftClick
color="#fff" color="#fff"
@ -13,7 +14,7 @@
<workListSwipe <workListSwipe
:options="options" :options="options"
@clickSwipeAction="clickSwipeAction" @clickSwipeAction="clickSwipeAction"
:list="10"/>
:list="list"/>
</view> </view>
</template> </template>
@ -21,6 +22,7 @@
import workListSwipe from '@/components/list/workList/workListSwipe.vue' import workListSwipe from '@/components/list/workList/workListSwipe.vue'
import statisticsNumber from '../components/statistics/statisticsNumber.vue' import statisticsNumber from '../components/statistics/statisticsNumber.vue'
import mixinList from '@/mixins/list.js' import mixinList from '@/mixins/list.js'
import { mapState } from 'vuex'
export default { export default {
mixins : [mixinList], mixins : [mixinList],
components : { components : {
@ -43,8 +45,17 @@
} }
}, },
], ],
mixinsListApi : 'employeeQueryResumeByUserId',
} }
}, },
computed : {
...mapState([
'role',
]),
},
onLoad() {
this.mixinsListApi = this.role ? 'bossQueryJobListByUserId' : 'employeeQueryResumeByUserId'
},
methods: { methods: {
clickSwipeAction({e, item}){ clickSwipeAction({e, item}){
console.log(e, item); console.log(e, item);


+ 13
- 5
pages_order/mine/seeMy.vue View File

@ -1,7 +1,7 @@
<template> <template>
<!-- 谁看过我 --> <!-- 谁看过我 -->
<view class="page"> <view class="page">
<navbar title="谁看过我简历"
<navbar :title="role ? '谁看过我的招工' : '谁看过我的简历'"
bgColor="#3796F8" bgColor="#3796F8"
leftClick leftClick
color="#fff" color="#fff"
@ -9,17 +9,17 @@
<statisticsNumber title="简历被查看量"/> <statisticsNumber title="简历被查看量"/>
<bossList ref="bossList" v-if="!role"/>
<bossList :api="mixinsListApi" ref="list" v-if="!role"/>
</view> </view>
</template> </template>
<script> <script>
import bossList from '@/components/list/bossList/index.vue' import bossList from '@/components/list/bossList/index.vue'
import statisticsNumber from '../components/statistics/statisticsNumber.vue' import statisticsNumber from '../components/statistics/statisticsNumber.vue'
import mixinList from '@/mixins/list.js'
// import mixinList from '@/mixins/list.js'
import { mapState } from 'vuex' import { mapState } from 'vuex'
export default { export default {
mixins : [mixinList],
// mixins : [mixinList],
components : { components : {
statisticsNumber, statisticsNumber,
bossList bossList
@ -40,7 +40,7 @@
} }
}, },
], ],
mixinsListApi : 'bossQueryWatchMe',
mixinsListApi : '',
} }
}, },
computed : { computed : {
@ -51,6 +51,14 @@
onLoad() { onLoad() {
this.mixinsListApi = (this.role ? 'boss' : 'employee') + 'QueryWatchMe' this.mixinsListApi = (this.role ? 'boss' : 'employee') + 'QueryWatchMe'
}, },
onShow() {
this.$nextTick(() => {
this.$refs.list.getData()
})
},
onReachBottom() {
this.$refs.list.loadMoreData()
},
methods: { methods: {
clickSwipeAction({e, item}){ clickSwipeAction({e, item}){
console.log(e, item); console.log(e, item);


+ 6
- 2
pages_order/work/userDetail.vue View File

@ -138,9 +138,13 @@
}, },
methods: { methods: {
getData(){ getData(){
this.$api('bossQueryResumeById', {
let data = {
resumeId : this.id resumeId : this.id
}, res => {
}
if(uni.getStorageSync('token')){
data.token = uni.getStorageSync('token')
}
this.$api('bossQueryResumeById', data, res => {
if(res.code == 200){ if(res.code == 200){
this.detail = res.result this.detail = res.result
} }


+ 6
- 2
pages_order/work/workDetail.vue View File

@ -121,9 +121,13 @@
}, },
methods: { methods: {
getData(){ getData(){
this.$api('employeeQueryJobById', {
let data = {
jobId : this.id jobId : this.id
}, res => {
}
if(uni.getStorageSync('token')){
data.token = uni.getStorageSync('token')
}
this.$api('employeeQueryJobById', data, res => {
if(res.code == 200){ if(res.code == 200){
this.detail = res.result this.detail = res.result
} }


+ 13
- 0
store/store.js View File

@ -14,6 +14,7 @@ const store = new Vuex.Store({
userInfo : {}, //用户信息 userInfo : {}, //用户信息
banner : [],//轮播图 banner : [],//轮播图
jobTypeList : [],//工种 jobTypeList : [],//工种
natureList : [],//工作性质
addressList : [],//开放地址 addressList : [],//开放地址
}, },
getters: { getters: {
@ -113,6 +114,18 @@ const store = new Vuex.Store({
state.banner = res.result.records state.banner = res.result.records
}) })
}, },
// 获取工作性质列表
getNatureList(state){
api('commonQueryJobNatureList', {
pageNo : 1,
pageSize : 99999,
}, res => {
if(res.code != 200){
return
}
state.natureList = res.result.records
})
},
logout(state){ logout(state){
uni.showModal({ uni.showModal({
title: '确认退出登录吗', title: '确认退出登录吗',


Loading…
Cancel
Save