Browse Source

上传修改

master
前端-胡立永 4 months ago
parent
commit
068061f158
7 changed files with 95 additions and 46 deletions
  1. +10
    -0
      api/api.js
  2. +1
    -1
      components/base/tabbar.vue
  3. +7
    -7
      components/list/workList/index.vue
  4. +28
    -8
      components/list/workList/workItem.vue
  5. +2
    -2
      config.js
  6. +11
    -8
      pages/index/index.vue
  7. +36
    -20
      pages_order/work/workDetail.vue

+ 10
- 0
api/api.js View File

@ -58,6 +58,16 @@ const config = {
*/ */
//获取工作信息列表
employeeQueryJobList: {
url: '/api/employee/queryJobList',
method: 'GET',
},
//根据Id查看工作详情
employeeQueryJobById: {
url: '/api/employee/queryJobById',
method: 'GET',
},
/** /**
* boss的接口 * boss的接口


+ 1
- 1
components/base/tabbar.vue View File

@ -64,7 +64,7 @@
if(index == this.select){ if(index == this.select){
return return
} }
uni.redirectTo({
uni.reLaunch({
url: item.pagePath url: item.pagePath
}) })
}, },


+ 7
- 7
components/list/workList/index.vue View File

@ -5,7 +5,7 @@
@scrolltolower="loadMoreData"> @scrolltolower="loadMoreData">
<view class="workList"> <view class="workList">
<view <view
@click="$utils.navigateTo('/pages_order/work/workDetail?id=' + 123)"
@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="item"/>
@ -25,7 +25,7 @@
default : 'auto' default : 'auto'
}, },
api : { api : {
default : ''
default : 'employeeQueryJobList'
} }
}, },
data() { data() {
@ -35,26 +35,26 @@
pageSize: 10, pageSize: 10,
}, },
total : 0, total : 0,
list : 10,
list : [],
} }
}, },
methods: { methods: {
queryVideoList(){
getData(){
if(uni.getStorageSync('token')){ if(uni.getStorageSync('token')){
this.queryParams.token = uni.getStorageSync('token') this.queryParams.token = uni.getStorageSync('token')
} }
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
// this.total = res.result.total
this.list = res.result.records
this.total = res.result.total
} }
}) })
}, },
loadMoreData(){ loadMoreData(){
if(this.queryParams.pageSize <= this.list.length){ if(this.queryParams.pageSize <= this.list.length){
this.queryParams.pageSize += 10 this.queryParams.pageSize += 10
this.queryVideoList()
this.getData()
} }
}, },
} }


+ 28
- 8
components/list/workList/workItem.vue View File

@ -2,25 +2,40 @@
<view class="work-item"> <view class="work-item">
<view class="top"> <view class="top">
<view class="title"> <view class="title">
产品经理
{{ item.title }}
</view> </view>
<view class="price">
12-18K
<view class="price"
v-if="item.salaryLow > 1000">
<text>
{{ (item.salaryLow / 1000).toFixed(0) }}
</text>
<text
v-if="item.salaryUp">
-{{ (item.salaryUp / 1000).toFixed(0) }}
</text>
K
</view>
<view class="price" v-else>
<text>{{ item.salaryLow }}</text>
<text
v-if="item.salaryUp">-{{ item.salaryUp }}</text>
</view> </view>
</view> </view>
<view class="tag-list"> <view class="tag-list">
<view <view
v-for="(item, index) in 5"
:key="index">
包吃
v-for="(t, i) in item.tab.split('、')"
:key="i">
{{ t }}
</view> </view>
</view> </view>
<view class="bottom"> <view class="bottom">
<view class="address"> <view class="address">
2.5km | 楚河汉区
<!-- <text>2.5km | 楚河汉区</text> -->
{{ item.workAddress }}
</view> </view>
<view class="time"> <view class="time">
09月23日 1620
<!-- 09月23日 1620 -->
{{ $dayjs(item.createTime).format('YYYY-MM-DD') }}
</view> </view>
<view class="phone"> <view class="phone">
<image src="/static/image/home/phone.png" mode=""></image> <image src="/static/image/home/phone.png" mode=""></image>
@ -32,6 +47,11 @@
<script> <script>
export default { export default {
props : {
item : {
default : {}
}
},
data() { data() {
return { return {


+ 2
- 2
config.js View File

@ -13,10 +13,10 @@ const type = 'dev'
// 环境配置 // 环境配置
const config = { const config = {
dev : { dev : {
baseUrl : 'http://www.gcosc.fun:82',
baseUrl : 'https://employadmin.augcl.com/employ-api',
}, },
prod : { prod : {
baseUrl : 'http://xxx.xxx.xxx/xxx',
baseUrl : 'https://employadmin.augcl.com/employ-api',
} }
} }


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

@ -117,17 +117,20 @@
// this.$refs.videoList.queryVideoList() // this.$refs.videoList.queryVideoList()
// this.queryBannerList() // this.queryBannerList()
// }, // },
// onShow() {
// this.$refs.videoList.queryVideoList()
// this.queryBannerList()
// },
// //
// onReachBottom() {
// this.$refs.videoList.loadMoreData()
// },
onShow() {
this.$refs.workList.getData()()
this.queryBannerList()
},
//
onReachBottom() {
this.$refs.workList.loadMoreData()
},
methods: { methods: {
clickItem(){ clickItem(){
},
queryBannerList(){
}, },
} }
} }


+ 36
- 20
pages_order/work/workDetail.vue View File

@ -4,30 +4,30 @@
<view class="box"> <view class="box">
<view class="title"> <view class="title">
平面设计
{{ detail.title }}
</view> </view>
<view class="price"> <view class="price">
6000-11000
{{ detail.salaryLow }}-{{ detail.salaryUp }}
</view> </view>
<view class="line"> <view class="line">
<view>
<!-- <view>
<image src="../static/work/address.png" mode=""></image> <image src="../static/work/address.png" mode=""></image>
深圳·罗湖区·东门
</view>
{{ detail.workAge }}
</view> -->
<view> <view>
<image src="../static/work/g.png" mode=""></image> <image src="../static/work/g.png" mode=""></image>
1-3
{{ detail.workAge }}
</view> </view>
<view> <view>
<image src="../static/work/x.png" mode=""></image> <image src="../static/work/x.png" mode=""></image>
大专
{{ detail.qulification }}
</view> </view>
</view> </view>
<view class="line"> <view class="line">
该职位位于昨日新发布
该职位位于{{ $dayjs(detail.createTime).format('YYYY-MM-DD') }}
</view> </view>
<view class="userHead"> <view class="userHead">
@ -38,8 +38,12 @@
<view class="title2"> <view class="title2">
工作地址 工作地址
</view> </view>
<view class="line">
<!--
深圳罗湖区深圳市百货广场大厦罗湖区百货广场大厦东深圳罗湖区深圳市百货广场大厦罗湖区百货广场大厦东 深圳罗湖区深圳市百货广场大厦罗湖区百货广场大厦东深圳罗湖区深圳市百货广场大厦罗湖区百货广场大厦东
-->
<view class="line"
style="justify-content: space-between;">
{{ detail.workAddress }}
<uv-icon <uv-icon
size="30rpx" size="30rpx"
color="666" color="666"
@ -62,27 +66,25 @@
<uv-icon <uv-icon
size="30rpx" size="30rpx"
color="666" color="666"
name="arrow-right"
name="star"
></uv-icon> ></uv-icon>
收藏 收藏
</view> </view>
</view> </view>
<view class="tag-list"> <view class="tag-list">
<view>
不接受居家办公
</view>
<view>
不接受居家办公
</view>
<view>
不接受居家办公
<view v-for="(t, i) in detail.tab.split('、')">
{{ t }}
</view> </view>
</view> </view>
<view
<!-- <view
class="text" class="text"
v-html="text"> v-html="text">
</view> -->
<view
class="text">
<uv-parse :content="detail.workDetail"></uv-parse>
</view> </view>
</view> </view>
@ -106,13 +108,27 @@
data() { data() {
return { return {
text : '', text : '',
id : 0,
detail : {},
} }
}, },
onLoad({id}) {
this.id = id
},
onShow() { onShow() {
this.text = this.$utils.stringFormatHtml(text) this.text = this.$utils.stringFormatHtml(text)
this.getData()
}, },
methods: { methods: {
getData(){
this.$api('employeeQueryJobById', {
jobId : this.id
}, res => {
if(res.code == 200){
this.detail = res.result
}
})
},
} }
} }
</script> </script>


Loading…
Cancel
Save