|
|
@ -3,10 +3,10 @@ |
|
|
|
|
|
|
|
<view class="banner"> |
|
|
|
<uv-swiper |
|
|
|
:list="bannerList" |
|
|
|
:list="banner" |
|
|
|
indicator |
|
|
|
height="620rpx" |
|
|
|
keyName="url"></uv-swiper> |
|
|
|
keyName="image"></uv-swiper> |
|
|
|
<!-- indicatorStyle="bottom: 100rpx;" --> |
|
|
|
|
|
|
|
<view class="top"> |
|
|
@ -27,12 +27,12 @@ |
|
|
|
<view class="grid"> |
|
|
|
<uv-grid :border="false" |
|
|
|
:col="5"> |
|
|
|
<!-- @click="$utils.navigateTo('/pages_order/work/workList?id=' + item.id)" --> |
|
|
|
<uv-grid-item |
|
|
|
v-for="(item,index) in baseList" |
|
|
|
@click="$utils.navigateTo('/pages_order/work/workList')" |
|
|
|
v-for="(item,index) in jobTypeList" |
|
|
|
:key="index"> |
|
|
|
<image class="grid-icon" :src="item.icon" mode="aspectFill"></image> |
|
|
|
<text class="grid-text">{{item.title}}</text> |
|
|
|
<image class="grid-icon" :src="item.image" mode="aspectFill"></image> |
|
|
|
<text class="grid-text">{{item.name}}</text> |
|
|
|
</uv-grid-item> |
|
|
|
</uv-grid> |
|
|
|
</view> |
|
|
@ -41,7 +41,6 @@ |
|
|
|
<!-- 筛选器 --> |
|
|
|
<screenWork @clickItem="clickItem"/> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 老板看到的 --> |
|
|
|
<userList ref="workList" v-if="role"/> |
|
|
|
|
|
|
@ -62,7 +61,6 @@ |
|
|
|
import screenWork from '@/components/screen/screenWork.vue' |
|
|
|
import { |
|
|
|
mapState, |
|
|
|
mapGetters |
|
|
|
} from 'vuex' |
|
|
|
export default { |
|
|
|
components : { |
|
|
@ -73,42 +71,15 @@ |
|
|
|
userList |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
...mapState(['userInfo', 'role']), |
|
|
|
...mapState([ |
|
|
|
'userInfo', |
|
|
|
'role', |
|
|
|
'banner', |
|
|
|
'jobTypeList' |
|
|
|
]), |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
baseList : [ |
|
|
|
{ |
|
|
|
icon : '/static/image/home/1.png', |
|
|
|
title : '电工', |
|
|
|
path : '/pages_order/service/applyRelic', |
|
|
|
}, |
|
|
|
{ |
|
|
|
icon : '/static/image/home/1.png', |
|
|
|
title : '焊工', |
|
|
|
path : '/pages_order/service/applyRelic', |
|
|
|
}, |
|
|
|
{ |
|
|
|
icon : '/static/image/home/1.png', |
|
|
|
title : '叉车', |
|
|
|
path : '/pages_order/service/applyRelic', |
|
|
|
}, |
|
|
|
{ |
|
|
|
icon : '/static/image/home/1.png', |
|
|
|
title : '钳工', |
|
|
|
path : '/pages_order/service/applyRelic', |
|
|
|
}, |
|
|
|
{ |
|
|
|
icon : '/static/image/home/1.png', |
|
|
|
title : '其他招工', |
|
|
|
path : '/pages_order/service/applyRelic', |
|
|
|
}, |
|
|
|
], |
|
|
|
bannerList: [ |
|
|
|
{ |
|
|
|
url: '/static/image/home/banner.png', |
|
|
|
}, |
|
|
|
], |
|
|
|
productList: [], |
|
|
|
keyword : '', |
|
|
|
} |
|
|
@ -118,8 +89,8 @@ |
|
|
|
// this.queryBannerList() |
|
|
|
// }, |
|
|
|
onShow() { |
|
|
|
this.$refs.workList.getData()() |
|
|
|
this.queryBannerList() |
|
|
|
this.$refs.workList.getData() |
|
|
|
this.$store.commit('getBanner') |
|
|
|
}, |
|
|
|
//滚动到屏幕底部 |
|
|
|
onReachBottom() { |
|
|
@ -128,9 +99,6 @@ |
|
|
|
methods: { |
|
|
|
clickItem(){ |
|
|
|
|
|
|
|
}, |
|
|
|
queryBannerList(){ |
|
|
|
|
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|