Browse Source

上传修改

master
前端-胡立永 1 month ago
parent
commit
d5280f26e9
11 changed files with 187 additions and 33 deletions
  1. +15
    -0
      api/model/contact.js
  2. +11
    -11
      components/screen/screenWork.vue
  3. +6
    -0
      pages.json
  4. +1
    -1
      pages/index/center.vue
  5. +8
    -0
      pages/index/index.vue
  6. +14
    -13
      pages_order/mine/InvitationCredit.vue
  7. +4
    -6
      pages_order/mine/contract.vue
  8. +44
    -0
      pages_order/mine/contractDetail.vue
  9. +8
    -1
      pages_order/work/workDetail.vue
  10. +75
    -0
      pages_order/work/workTypeList.vue
  11. +1
    -1
      store/store.js

+ 15
- 0
api/model/contact.js View File

@ -26,6 +26,21 @@ const api = {
method: 'GET', method: 'GET',
auth: true, auth: true,
}, },
//电子合同-获取电子合同列表
queryContractList: {
url: '/employ/contract/queryContractList',
method: 'GET',
auth: true,
},
//电子合同-根据id查询电子合同详情
queryContracById: {
url: '/employ/contract/queryContracById',
method: 'GET',
auth: true,
},
} }
export default api export default api

+ 11
- 11
components/screen/screenWork.vue View File

@ -90,16 +90,16 @@
result: [], result: [],
activeName: 'areaId', activeName: 'areaId',
areaId: { areaId: {
label: '全',
label: '全',
value: 0, value: 0,
activeIndex: 0, activeIndex: 0,
color: '#333', color: '#333',
activeColor: '#3796F8', activeColor: '#3796F8',
child: [ child: [
// {
// label: '',
// value: 0,
// },
{
label: '全部',
value: 0,
},
] ]
}, },
typeId: { typeId: {
@ -207,13 +207,13 @@
}) })
this.list[1].tag = this.natureId.child this.list[1].tag = this.natureId.child
if(this.addressList[0]){
this.areaId.value = this.addressList[0].id
this.areaId.label = this.addressList[0].adress
// if(this.addressList[0]){
// this.areaId.value = this.addressList[0].id
// this.areaId.label = this.addressList[0].adress
this.defaultValue.slice(0, 1, this.addressList[0].id)
this.$forceUpdate()
}
// this.defaultValue.slice(0, 1, this.addressList[0].id)
// this.$forceUpdate()
// }
// //
this.addressList.forEach(n => { this.addressList.forEach(n => {


+ 6
- 0
pages.json View File

@ -186,6 +186,12 @@
}, },
{ {
"path": "mine/updateUser" "path": "mine/updateUser"
},
{
"path": "work/workTypeList"
},
{
"path": "mine/contractDetail"
} }
] ]
}], }],


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

@ -64,7 +64,7 @@
<view class="line"> <view class="line">
<view class="item" <view class="item"
@click="$utils.navigateTo('/pages_order/mine/IntegralRecord')">
@click="$utils.navigateTo('/pages_order/mine/InvitationCredit')">
<view class=""> <view class="">
{{UserExtensionInfo.integerNum || 0}} {{UserExtensionInfo.integerNum || 0}}
</view> </view>


+ 8
- 0
pages/index/index.vue View File

@ -30,10 +30,18 @@
<uv-grid-item <uv-grid-item
@click="$utils.navigateTo(`/pages_order/work/workList?typeId=${item.id}&title=${item.name}`)" @click="$utils.navigateTo(`/pages_order/work/workList?typeId=${item.id}&title=${item.name}`)"
v-for="(item,index) in jobTypeList" v-for="(item,index) in jobTypeList"
v-if="index < 4"
:key="index"> :key="index">
<image class="grid-icon" :src="item.image" mode="aspectFill"></image> <image class="grid-icon" :src="item.image" mode="aspectFill"></image>
<text class="grid-text">{{item.name}}</text> <text class="grid-text">{{item.name}}</text>
</uv-grid-item> </uv-grid-item>
<uv-grid-item
v-if="jobTypeList.length > 4"
@click="$utils.navigateTo(`/pages_order/work/workTypeList`)"
>
<image class="grid-icon" src="/static/image/home/5.png" mode="aspectFill"></image>
<text class="grid-text">其他招工</text>
</uv-grid-item>
</uv-grid> </uv-grid>
</view> </view>
</view> </view>


+ 14
- 13
pages_order/mine/InvitationCredit.vue View File

@ -9,7 +9,7 @@
<image src="../static/mine/characteristic.png" mode="aspectFill" /> <image src="../static/mine/characteristic.png" mode="aspectFill" />
<view>您当前的正式积分</view> <view>您当前的正式积分</view>
</view> </view>
<view class="TopBlock-balance">100</view>
<view class="TopBlock-balance">{{UserExtensionInfo.integerNum || 0}}</view>
<view class="TopBlock-button" <view class="TopBlock-button"
@click="$utils.navigateTo('/pages_order/mine/IntegralRecord')"> @click="$utils.navigateTo('/pages_order/mine/IntegralRecord')">
<view>积分明细</view> <view>积分明细</view>
@ -17,18 +17,16 @@
</view> </view>
</view> </view>
<view class="card">
<!-- <view class="card">
<view class="card-box"> <view class="card-box">
<view class="card-top">获取正式积分</view> <view class="card-top">获取正式积分</view>
<view style="background-color: #EDEDED; height: 1rpx;" /> <view style="background-color: #EDEDED; height: 1rpx;" />
<view class="card-cell"> <view class="card-cell">
<uv-cell-group> <uv-cell-group>
<uv-cell> <uv-cell>
<!-- 自定义左侧标题 -->
<template #title> <template #title>
<text style="font-size: 12px;">邀请好友赚积分</text> <text style="font-size: 12px;">邀请好友赚积分</text>
</template> </template>
<!-- 自定义左侧标题下面的内容 -->
<template #label> <template #label>
<view style="font-size: 20rpx;color: #999999; padding: 10rpx 0;"> <view style="font-size: 20rpx;color: #999999; padding: 10rpx 0;">
<view>成功邀请一名好友注册可获得2正式积分</view> <view>成功邀请一名好友注册可获得2正式积分</view>
@ -36,15 +34,12 @@
</view> </view>
</template> </template>
<!-- 自定义右侧值 -->
<template #value> <template #value>
<text style="font-size: 24rpx; color: #4280FD;">去邀请</text> <text style="font-size: 24rpx; color: #4280FD;">去邀请</text>
</template> </template>
<!-- 自定义左侧图标 -->
<template #icon> <template #icon>
<uv-icon size="50" name="../static/mine/notepad.png" /> <uv-icon size="50" name="../static/mine/notepad.png" />
</template> </template>
<!-- 自定义右侧图标 -->
<template #right-icon> <template #right-icon>
<uv-icon color="#4280FD" size="30rpx" name="arrow-right"></uv-icon> <uv-icon color="#4280FD" size="30rpx" name="arrow-right"></uv-icon>
</template> </template>
@ -61,26 +56,21 @@
<view class="card-cell"> <view class="card-cell">
<uv-cell-group> <uv-cell-group>
<uv-cell> <uv-cell>
<!-- 自定义左侧标题 -->
<template #title> <template #title>
<text style="font-size: 12px;">我要找工作</text> <text style="font-size: 12px;">我要找工作</text>
</template> </template>
<!-- 自定义左侧标题下面的内容 -->
<template #label> <template #label>
<view style="font-size: 20rpx;color: #999999; padding: 10rpx 0;"> <view style="font-size: 20rpx;color: #999999; padding: 10rpx 0;">
<view>查看招工信息</view> <view>查看招工信息</view>
</view> </view>
</template> </template>
<!-- 自定义右侧值 -->
<template #value> <template #value>
<text style="font-size: 24rpx; color: #4280FD;">去找活</text> <text style="font-size: 24rpx; color: #4280FD;">去找活</text>
</template> </template>
<!-- 自定义左侧图标 -->
<template #icon> <template #icon>
<uv-icon size="50" name="../static/mine/notepad.png" /> <uv-icon size="50" name="../static/mine/notepad.png" />
</template> </template>
<!-- 自定义右侧图标 -->
<template #right-icon> <template #right-icon>
<uv-icon color="#4280FD" size="30rpx" name="arrow-right"></uv-icon> <uv-icon color="#4280FD" size="30rpx" name="arrow-right"></uv-icon>
</template> </template>
@ -88,9 +78,20 @@
</uv-cell-group> </uv-cell-group>
</view> </view>
</view> </view>
</view> -->
<view class=""
style="padding: 20rpx;">
<uv-parse :content="configList.config_score_rule"></uv-parse>
</view> </view>
<view class="service">如有疑问请联系客服<text>4008-678-918</text></view>
<view class="service">如有疑问请联系客服<text
style="color: #4280FD;"
@click="$refs.customerServicePopup.open()"
>{{ configList.config_service_phone }}</text></view>
<customerServicePopup ref="customerServicePopup"/>
</view> </view>
</template> </template>


+ 4
- 6
pages_order/mine/contract.vue View File

@ -17,6 +17,7 @@
<view class="content"> <view class="content">
<view class="projectContent" <view class="projectContent"
v-for="(item, index) in list" v-for="(item, index) in list"
@click="$utils.navigateTo('/pages_order/mine/contractDetail?id=' + item.id)"
:key="index"> :key="index">
<image src="../static/contract/contract.png" alt="" /> <image src="../static/contract/contract.png" alt="" />
<view class="itemList"> <view class="itemList">
@ -66,22 +67,19 @@
}, },
], ],
type : 0, type : 0,
mixinsListApi : 'bossQueryContractList',
mixinsListApi : 'queryContractList',
} }
}, },
computed : { computed : {
...mapState([
'role',
]),
}, },
onLoad() { onLoad() {
this.mixinsListApi = (this.role ? 'boss' : 'employee') + 'QueryContractList'
this.queryParams.role = this.role ? 1 : 0
}, },
methods: { methods: {
clickTabs({index}) { clickTabs({index}) {
this.type = index this.type = index
this.getData()
}, },
} }
} }
</script> </script>


+ 44
- 0
pages_order/mine/contractDetail.vue View File

@ -0,0 +1,44 @@
<template>
<view class="page">
<navbar title="电子合同"
leftClick
@leftClick="$utils.navigateBack"/>
</view>
</template>
<script>
export default {
data() {
return {
id : 0,
detail : {},
}
},
onLoad({id}) {
this.id = id
this.getDetail()
},
methods: {
getDetail(){
let data = {
contractId: this.id
}
if (uni.getStorageSync('token')) {
// data.token = uni.getStorageSync('token')
}
this.$api('queryContracById', data, res => {
if (res.code == 200) {
this.detail = res.result
}
})
},
}
}
</script>
<style scoped lang="scss">
</style>

+ 8
- 1
pages_order/work/workDetail.vue View File

@ -139,7 +139,7 @@
hanHaiMember: {}, hanHaiMember: {},
total: 0, total: 0,
collectionFlag: false, collectionFlag: false,
mixinsListApi: 'employeeQueryJobList',
mixinsListApi: '',
} }
}, },
onLoad({ onLoad({
@ -166,6 +166,13 @@
this.personInfo = res.result.personInfo this.personInfo = res.result.personInfo
this.companyInfo = res.result.companyInfo this.companyInfo = res.result.companyInfo
this.hanHaiMember = res.result.hanHaiMember this.hanHaiMember = res.result.hanHaiMember
this.mixinsListApi = 'employeeQueryJobList'
this.queryParams.typeId = this.detail.typeId
this.queryParams.areaId = this.detail.areaId
this.getData()
} }
}) })
}, },


+ 75
- 0
pages_order/work/workTypeList.vue View File

@ -0,0 +1,75 @@
<template>
<view class="page">
<navbar
title="工种"
leftClick @leftClick="$utils.navigateBack" />
<view class="content"
>
<view class="grid">
<uv-grid :border="false"
:col="5">
<uv-grid-item
@click="$utils.navigateTo(`/pages_order/work/workList?typeId=${item.id}&title=${item.name}`)"
v-for="(item,index) in jobTypeList"
:key="index">
<image class="grid-icon" :src="item.image" mode="aspectFill"></image>
<text class="grid-text">{{item.name}}</text>
</uv-grid-item>
</uv-grid>
</view>
</view>
</view>
</template>
<script>
import { mapState } from 'vuex'
export default {
data() {
return {
}
},
computed: {
...mapState([
'userInfo',
'role',
'banner',
'jobTypeList',
'UserExtensionInfo',
]),
},
methods: {
}
}
</script>
<style scoped lang="scss">
.page{
.content{
position: relative;
margin: 30rpx;
.grid{
padding-bottom: 30rpx;
background-color: #fff;
border-radius: 30rpx;
// border-top-left-radius: 60rpx;
// border-top-right-radius: 60rpx;
// box-shadow: 0 -10rpx 10rpx 10rpx #00000013;
.grid-icon{
width: 80rpx;
height: 80rpx;
margin-bottom: 10rpx;
margin-top: 30rpx;
}
.grid-text{
font-size: 24rpx;
font-weight: 900;
}
}
}
}
</style>

+ 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 : false,
role : true,
userInfo : {}, //用户信息 userInfo : {}, //用户信息
banner : [],//轮播图 banner : [],//轮播图
jobTypeList : [],//工种 jobTypeList : [],//工种


Loading…
Cancel
Save