| @ -0,0 +1,25 @@ | |||
| // 积分相关接口 | |||
| const api = { | |||
| //会员中心-我的收藏(数量统计) | |||
| bossQueryCollectionCount: { | |||
| url: '/api/boss/queryCollectionCount', | |||
| method: 'GET', | |||
| auth: true, | |||
| }, | |||
| //会员中心-联系记录-谁看过我(数量统计) | |||
| bossQueryWatchMeCount: { | |||
| url: '/api/boss/queryWatchMeCount', | |||
| method: 'GET', | |||
| auth: true, | |||
| }, | |||
| //会员中心-联系记录-我看过谁(数量统计) | |||
| bossQueryWatchWhoCount: { | |||
| url: '/api/boss/queryWatchWhoCount', | |||
| method: 'GET', | |||
| auth: true, | |||
| }, | |||
| } | |||
| export default api | |||
| @ -0,0 +1,39 @@ | |||
| // 登录相关接口 | |||
| const api = { | |||
| // 微信登录接口 | |||
| wxLogin: { | |||
| url: '/api/login/login', | |||
| method: 'GET', | |||
| limit : 500, | |||
| showLoading : true, | |||
| }, | |||
| // 修改个人信息接口 | |||
| updateInfo: { | |||
| url: '/info/updateInfo', | |||
| method: 'POST', | |||
| auth: true, | |||
| limit : 500, | |||
| showLoading : true, | |||
| }, | |||
| //隐私政策 | |||
| getPrivacyPolicy: { | |||
| url: '/login/getPrivacyPolicy', | |||
| method: 'GET', | |||
| }, | |||
| //用户协议 | |||
| getUserAgreement: { | |||
| url: '/login/getUserAgreement', | |||
| method: 'GET', | |||
| }, | |||
| // 获取个人信息 | |||
| getInfo: { | |||
| url: '/employ/user/updateUser', | |||
| method: 'GET', | |||
| auth: true, | |||
| }, | |||
| } | |||
| export default api | |||
| @ -0,0 +1,14 @@ | |||
| // 积分相关接口 | |||
| const api = { | |||
| // 每日签到获取积分 | |||
| addScoreBySign: { | |||
| url: '/employ/score/addScoreBySign', | |||
| method: 'POST', | |||
| auth : true, | |||
| limit : 1500, | |||
| }, | |||
| } | |||
| export default api | |||
| @ -0,0 +1,67 @@ | |||
| <template> | |||
| <uv-popup ref="popup" :round="30" | |||
| :safeAreaInsetBottom="false" | |||
| > | |||
| <view class="content"> | |||
| <view class="title"> | |||
| 签到领积分 | |||
| </view> | |||
| <image src="/static/image/home/12.png" mode="widthFix" | |||
| style="width: 100%;"></image> | |||
| <view class="uni-color-btn" | |||
| @click="checkin"> | |||
| 立即签到 | |||
| </view> | |||
| </view> | |||
| </uv-popup> | |||
| </template> | |||
| <script> | |||
| export default { | |||
| name:"checkinScore", | |||
| data() { | |||
| return { | |||
| }; | |||
| }, | |||
| mounted() { | |||
| this.getCheckin() | |||
| }, | |||
| methods : { | |||
| getCheckin(){ | |||
| this.$refs.popup.open() | |||
| }, | |||
| checkin(){ | |||
| this.$api('addScoreBySign', res => { | |||
| if(re.code == 200){ | |||
| uni.showToast({ | |||
| title: '签到成功' | |||
| }) | |||
| this.$refs.popup.close() | |||
| } | |||
| }) | |||
| }, | |||
| } | |||
| } | |||
| </script> | |||
| <style scoped lang="scss"> | |||
| .content{ | |||
| width: 560rpx; | |||
| padding: 40rpx; | |||
| .title{ | |||
| text-align: center; | |||
| font-weight: 900; | |||
| font-size: 60rpx; | |||
| color: $uni-color; | |||
| word-spacing: 18px; | |||
| } | |||
| .uni-color-btn{ | |||
| padding: 30rpx 0; | |||
| border-radius: 20rpx; | |||
| } | |||
| } | |||
| </style> | |||
| @ -0,0 +1,116 @@ | |||
| <template> | |||
| <view class="page"> | |||
| <navbar title="发布找活" | |||
| leftClick | |||
| @leftClick="$utils.navigateBack"/> | |||
| <view class="box"> | |||
| <view class="list"> | |||
| <view class="item" v-for="(item, index) in list" :key="index"> | |||
| <view class="title"> | |||
| {{ item.title }} | |||
| </view> | |||
| <view class="tagList"> | |||
| <view :class="{act : i == item.index}" @click="clickTag(item, i)" v-for="(t, i) in item.tag" | |||
| :key="t"> | |||
| {{ t }} | |||
| </view> | |||
| </view> | |||
| </view> | |||
| </view> | |||
| <uv-textarea | |||
| v-model="form.content" | |||
| count | |||
| :maxlength="300" | |||
| autoHeight | |||
| placeholder="请输入详细介绍"></uv-textarea> | |||
| <view class="uni-color-btn"> | |||
| 发布 | |||
| </view> | |||
| </view> | |||
| </view> | |||
| </template> | |||
| <script> | |||
| export default { | |||
| data() { | |||
| return { | |||
| list: [ | |||
| { | |||
| title: '您希望从事的工种', | |||
| tag: ['电工', '焊工', '叉车', '其他'], | |||
| index: 0, | |||
| }, | |||
| { | |||
| title: '您希望从事的工作区域', | |||
| tag: ['长沙'], | |||
| index: 0, | |||
| }, | |||
| { | |||
| title: '您目前所属的年龄段', | |||
| tag: ['18岁~35岁', '35岁~45岁', '45岁~50岁', '50岁以上'], | |||
| index: 0, | |||
| }, | |||
| { | |||
| title: '您希望从事的工作性质', | |||
| tag: ['全职', '临时工', ], | |||
| index: 0, | |||
| }, | |||
| ], | |||
| form : {} | |||
| } | |||
| }, | |||
| methods: { | |||
| } | |||
| } | |||
| </script> | |||
| <style scoped lang="scss"> | |||
| .page{ | |||
| background-color: #fff; | |||
| min-height: 100vh; | |||
| .box{ | |||
| padding: 30rpx; | |||
| .list { | |||
| .item { | |||
| margin-top: 20rpx; | |||
| .title { | |||
| font-weight: 900; | |||
| font-size: 30rpx; | |||
| } | |||
| .tagList { | |||
| display: flex; | |||
| flex-wrap: wrap; | |||
| padding: 10rpx 0; | |||
| view { | |||
| background: rgba($uni-color, 0.1); | |||
| padding: 10rpx 20rpx; | |||
| margin: 10rpx; | |||
| border-radius: 10rpx; | |||
| font-size: 26rpx; | |||
| } | |||
| .act { | |||
| color: #fff; | |||
| background: $uni-color; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| /deep/ .uv-textarea{ | |||
| background-color: rgba($uni-color, 0.1) !important; | |||
| min-height: 400rpx; | |||
| } | |||
| } | |||
| } | |||
| </style> | |||
| @ -0,0 +1,213 @@ | |||
| <template> | |||
| <view class="page"> | |||
| <image src="/static/image/home/banner.png" mode="aspectFill" | |||
| class="bgImage"></image> | |||
| <view class="box"> | |||
| <view class="boss-box"> | |||
| <image src="/static/image/center/headImage.png" | |||
| class="headImage" | |||
| mode="aspectFill"></image> | |||
| <view class="info"> | |||
| <view class="title"> | |||
| 李先生<text></text> | |||
| </view> | |||
| <view class="desc"> | |||
| 广州有限公司 · 老板 | |||
| <view class="vip"> | |||
| vip | |||
| </view> | |||
| </view> | |||
| </view> | |||
| </view> | |||
| <view class="firm"> | |||
| <view class="title"> | |||
| 任职企业 | |||
| </view> | |||
| <view class="firm-info"> | |||
| <image src="/static/image/center/headImage.png" | |||
| class="image" | |||
| mode="aspectFill"></image> | |||
| <view class="info"> | |||
| <view class="name"> | |||
| 广州有限公司 | |||
| </view> | |||
| <view class="desc"> | |||
| 0-20人 | |||
| </view> | |||
| </view> | |||
| </view> | |||
| <view class="album"> | |||
| <uv-album :urls="urls"></uv-album> | |||
| </view> | |||
| </view> | |||
| <view class="list-work"> | |||
| <view class="text"> | |||
| 发布职位<text>19</text> | |||
| </view> | |||
| <view style="margin: 20rpx;" | |||
| @click="$utils.navigateTo('/pages_order/work/userDetail?id=' + item.id)" | |||
| :key="index" | |||
| v-for="(item, index) in list"> | |||
| <workItem :item="item"/> | |||
| </view> | |||
| </view> | |||
| </view> | |||
| </view> | |||
| </template> | |||
| <script> | |||
| import userHead from '../components/user/userHead.vue' | |||
| import mixinList from '@/mixins/list.js' | |||
| import workItem from '@/components/list/workList/workItem.vue' | |||
| export default { | |||
| mixins : [mixinList], | |||
| components : { | |||
| userHead, | |||
| workItem, | |||
| }, | |||
| data() { | |||
| return { | |||
| id : 0, | |||
| detail : {}, | |||
| collectionFlag : false, | |||
| mixinsListApi : 'employeeQueryJobList', | |||
| urls: ['https://via.placeholder.com/400x200.png/3c9cff/fff'], | |||
| } | |||
| }, | |||
| onLoad({id}) { | |||
| this.id = id | |||
| }, | |||
| onShow() { | |||
| // this.getDetail() | |||
| }, | |||
| methods: { | |||
| getDetail(){ | |||
| let data = { | |||
| jobId : this.id | |||
| } | |||
| if(uni.getStorageSync('token')){ | |||
| data.token = uni.getStorageSync('token') | |||
| } | |||
| this.$api('employeeQueryJobById', data, res => { | |||
| if(res.code == 200){ | |||
| this.detail = res.result.employJob | |||
| this.collectionFlag = res.result.collectionFlag | |||
| } | |||
| }) | |||
| }, | |||
| } | |||
| } | |||
| </script> | |||
| <style scoped lang="scss"> | |||
| .page{ | |||
| min-height: 100vh; | |||
| .bgImage{ | |||
| width: 100%; | |||
| height: 500rpx; | |||
| } | |||
| .box{ | |||
| margin-top: -100rpx; | |||
| .boss-box{ | |||
| background-color: #fff; | |||
| margin: 20rpx; | |||
| border-radius: 20rpx; | |||
| padding: 20rpx; | |||
| position: relative; | |||
| box-shadow: 0 0 10rpx 10rpx #00000009; | |||
| padding-top: 140rpx; | |||
| .headImage{ | |||
| border-radius: 50%; | |||
| width: 150rpx; | |||
| height: 150rpx; | |||
| position: absolute; | |||
| top: -50rpx; | |||
| left: 30rpx; | |||
| } | |||
| .info{ | |||
| padding: 0 20rpx; | |||
| line-height: 46rpx; | |||
| .title{ | |||
| font-weight: 900; | |||
| font-size: 32rpx; | |||
| } | |||
| .desc{ | |||
| display: flex; | |||
| align-items: center; | |||
| font-size: 24rpx; | |||
| .vip{ | |||
| padding: 4rpx 20rpx; | |||
| border-radius: 20rpx; | |||
| border: 1rpx solid #EF7834; | |||
| color: #EF7834; | |||
| margin-left: 30rpx; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| .firm{ | |||
| background-color: #fff; | |||
| margin: 20rpx; | |||
| border-radius: 20rpx; | |||
| padding: 20rpx; | |||
| position: relative; | |||
| box-shadow: 0 0 10rpx 10rpx #00000009; | |||
| .title{ | |||
| font-size: 32rpx; | |||
| font-weight: 900; | |||
| padding: 20rpx; | |||
| } | |||
| .firm-info{ | |||
| display: flex; | |||
| .image{ | |||
| width: 140rpx; | |||
| height: 140rpx; | |||
| border-radius: 20rpx; | |||
| } | |||
| .info{ | |||
| display: flex; | |||
| flex-direction: column; | |||
| justify-content: space-around; | |||
| margin-left: 30rpx; | |||
| font-size: 26rpx; | |||
| .name{ | |||
| font-weight: 900; | |||
| } | |||
| .desc{ | |||
| } | |||
| } | |||
| } | |||
| .album{ | |||
| padding: 20rpx 0; | |||
| } | |||
| } | |||
| .list-work{ | |||
| .text{ | |||
| background-color: #fff; | |||
| padding: 26rpx; | |||
| font-weight: 900; | |||
| text{ | |||
| font-weight: 500; | |||
| color: #666666; | |||
| font-size: 26rpx; | |||
| margin-left: 20rpx; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| } | |||
| </style> | |||