Browse Source

上传修改

master
前端-胡立永 2 months ago
parent
commit
c4bcd3a620
10 changed files with 55 additions and 34 deletions
  1. +3
    -0
      components/config/configPopup.vue
  2. +2
    -2
      components/list/bossList/bossItem.vue
  3. +3
    -4
      components/list/userList/index.vue
  4. +2
    -1
      components/list/userList/userListSwipe.vue
  5. +5
    -4
      components/list/workList/index.vue
  6. +2
    -1
      components/list/workList/workListSwipe.vue
  7. +3
    -3
      pages/index/center.vue
  8. +16
    -15
      pages_order/mine/collect.vue
  9. +18
    -3
      pages_order/mine/contactRecord.vue
  10. +1
    -1
      store/store.js

+ 3
- 0
components/config/configPopup.vue View File

@ -40,6 +40,9 @@
.configPopup { .configPopup {
.content{ .content{
padding: 30rpx 20rpx; padding: 30rpx 20rpx;
overflow: scroll;
height: 100%;
box-sizing: border-box;
} }
} }
</style> </style>

+ 2
- 2
components/list/bossList/bossItem.vue View File

@ -2,11 +2,11 @@
<view class="boss-item"> <view class="boss-item">
<view class="head"> <view class="head">
<view class="headImage"> <view class="headImage">
<image src="/static/image/center/headImage.png" mode=""></image>
<image :src="item.headImage" mode=""></image>
</view> </view>
<view class="info"> <view class="info">
<view class="name"> <view class="name">
{{ item.hanHaiMember.nickName }}
{{ item.nickName }}
<view> <view>
企业HR 企业HR
</view> </view>


+ 3
- 4
components/list/userList/index.vue View File

@ -8,7 +8,7 @@
@click="$utils.navigateTo('/pages_order/work/userDetail?id=' + item.id)" @click="$utils.navigateTo('/pages_order/work/userDetail?id=' + item.id)"
:key="index" :key="index"
v-for="(item, index) in list"> v-for="(item, index) in list">
<userItem :item="item"/>
<userItem :item="keyName ? item[keyName] : item"/>
</view> </view>
</view> </view>
</scroll-view> </scroll-view>
@ -27,9 +27,8 @@
api : { api : {
default : 'bossQueryJobList' default : 'bossQueryJobList'
}, },
handleData : {
}
handleData : {},
keyName : {}
}, },
data() { data() {
return { return {


+ 2
- 1
components/list/userList/userListSwipe.vue View File

@ -8,7 +8,7 @@
<uv-swipe-action-item <uv-swipe-action-item
@click="e => clickSwipeAction(e, item)" @click="e => clickSwipeAction(e, item)"
:options="options"> :options="options">
<userItem :item="item"/>
<userItem :item="keyName ? item[keyName] : item"/>
</uv-swipe-action-item> </uv-swipe-action-item>
</view> </view>
</uv-swipe-action> </uv-swipe-action>
@ -34,6 +34,7 @@
list : { list : {
default : [] default : []
}, },
keyName : {}
}, },
data() { data() {
return { return {


+ 5
- 4
components/list/workList/index.vue View File

@ -8,7 +8,7 @@
@click="$utils.navigateTo('/pages_order/work/workDetail?id=' + item.id)" @click="$utils.navigateTo('/pages_order/work/workDetail?id=' + item.id)"
:key="index" :key="index"
v-for="(item, index) in list"> v-for="(item, index) in list">
<workItem :item="item"/>
<workItem :item="keyName ? item[keyName] : item"/>
</view> </view>
</view> </view>
</scroll-view> </scroll-view>
@ -26,7 +26,8 @@
}, },
api : { api : {
default : 'employeeQueryJobList' default : 'employeeQueryJobList'
}
},
keyName : {}
}, },
data() { data() {
return { return {
@ -46,8 +47,8 @@
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 || res.result
this.total = res.result.total || res.result.length
this.list = res.result.records
this.total = res.result.total
} }
}) })
}, },


+ 2
- 1
components/list/workList/workListSwipe.vue View File

@ -8,7 +8,7 @@
<uv-swipe-action-item <uv-swipe-action-item
@click="e => clickSwipeAction(e, item)" @click="e => clickSwipeAction(e, item)"
:options="options"> :options="options">
<workItem :item="item"/>
<workItem :item="keyName ? item[keyName] : item"/>
</uv-swipe-action-item> </uv-swipe-action-item>
</view> </view>
</uv-swipe-action> </uv-swipe-action>
@ -34,6 +34,7 @@
list : { list : {
default : [] default : []
}, },
keyName : {}
}, },
data() { data() {
return { return {


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

@ -55,18 +55,18 @@
30000 30000
</view> </view>
<view class=""> <view class="">
正式积分
我的积分
</view> </view>
</view> </view>
<view class="item">
<!-- <view class="item">
<view class=""> <view class="">
30000 30000
</view> </view>
<view class=""> <view class="">
临时积分 临时积分
</view> </view>
</view>
</view> -->
<view class="item" <view class="item"
@click="$utils.navigateTo('/pages_order/mine/collect')"> @click="$utils.navigateTo('/pages_order/mine/collect')">


+ 16
- 15
pages_order/mine/collect.vue View File

@ -11,13 +11,14 @@
:options="options" :options="options"
v-if="role" v-if="role"
@clickSwipeAction="clickSwipeAction" @clickSwipeAction="clickSwipeAction"
:list="list2"/>
:list="list"/>
<workListSwipe <workListSwipe
:options="options" :options="options"
v-else v-else
keyName="employJob"
@clickSwipeAction="clickSwipeAction" @clickSwipeAction="clickSwipeAction"
:list="list2"/>
:list="list"/>
</view> </view>
</template> </template>
@ -58,19 +59,19 @@
clickSwipeAction({e, item}){ clickSwipeAction({e, item}){
console.log(e, item); console.log(e, item);
}, },
getDataThen(list, total, result){
let l = []
result.forEach(res => {
if(this.role){
res.employResume.collection = res.employCollectionResume
l.push(res.employResume)
}else{
res.employJob.collection = res.employCollectionJob
l.push(res.employJob)
}
})
this.list2 = l
},
// getDataThen(list, total, result){
// let l = []
// result.forEach(res => {
// if(this.role){
// res.employResume.collection = res.employCollectionResume
// l.push(res.employResume)
// }else{
// res.employJob.collection = res.employCollectionJob
// l.push(res.employJob)
// }
// })
// this.list2 = l
// },
} }
} }
</script> </script>


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

@ -17,11 +17,26 @@
</view> </view>
<!-- 工人看到的 --> <!-- 工人看到的 -->
<workList :api="api" ref="list" v-if="!role && type == 0"/>
<bossList :api="api" ref="list" v-if="!role && type == 1"/>
<workList
:api="api"
ref="list"
keyName="employJob"
v-if="!role && type == 0"
/>
<bossList
:api="api"
ref="list"
v-if="!role && type == 1"/>
<!-- 老板看到的 --> <!-- 老板看到的 -->
<userList :api="api" ref="list" v-if="role"/>
<userList
:api="api"
ref="list"
keyName="employResume"
v-if="role"/>
</view> </view>
</template> </template>


+ 1
- 1
store/store.js View File

@ -10,7 +10,7 @@ const store = new Vuex.Store({
state: { state: {
configList: [], //配置列表 configList: [], //配置列表
// 角色 true为老板 false为工人 // 角色 true为老板 false为工人
role : true,
role : false,
userInfo : {}, //用户信息 userInfo : {}, //用户信息
banner : [],//轮播图 banner : [],//轮播图
jobTypeList : [],//工种 jobTypeList : [],//工种


Loading…
Cancel
Save