<template>
|
<view class="home_index">
|
<view class="home_content">
|
<u-navbar
|
title="岗位职责"
|
bgColor="transparent"
|
leftIconColor="#fff"
|
titleStyle="text-align:left;width:100%;color:#fff;margin-left:40px;"
|
:autoBack="true">
|
</u-navbar>
|
<view class="home_top_bg"></view>
|
<view class="position_main">
|
<view class="position_items" v-for="(item,index) in positionList" :key="index" @click="btnClick(item)">
|
<view class="position_items_phone">
|
<u-image src="@/static/work1.png" width="35px" height="35px" mode="widthFix"></u-image>
|
</view>
|
<view class="position_items_name">{{item.posName}}</view>
|
</view>
|
</view>
|
</view>
|
</view>
|
</template>
|
|
<script>
|
import work1 from '@/static/work1.png'
|
import work2 from '@/static/work2.png'
|
import work3 from '@/static/work3.png'
|
import work4 from '@/static/work4.png'
|
import work5 from '@/static/work5.png'
|
import work6 from '@/static/work6.png'
|
import work7 from '@/static/work7.png'
|
import work8 from '@/static/work8.png'
|
import work9 from '@/static/work9.png'
|
import { basrUrl } from '@/api/http';
|
export default {
|
data(){
|
return{
|
positionList:[
|
],//岗位职责列表
|
}
|
},
|
onLoad() {
|
this.getPositionInfo()
|
},
|
methods:{
|
//获得岗位信息
|
getPositionInfo(){
|
this.$api.reboSystem.workPositonLists({}).then(res=>{
|
if(res.statusMsg === 'ok'){
|
this.positionList = res.data.list
|
}else{
|
uni.$u.toast(res.statusMsg);
|
}
|
})
|
},
|
//点击跳转详情界面
|
btnClick(val){
|
uni.navigateTo({
|
url: `./positionDetails?posDesc=${val.posDesc}&posName=${val.posName}`
|
})
|
}
|
}
|
}
|
</script>
|
|
<style scoped lang="scss">
|
.home_index{
|
background-color: #F6F6F6;
|
width: 100%;
|
height: 100vh;
|
overflow: hidden;
|
.home_content{
|
position: relative;
|
height: calc(100vh - 110rpx);
|
.home_top_bg{
|
background: url('https://s1.ax1x.com/2022/09/14/vvBuYq.png') no-repeat;
|
background-size: 100% 100%;
|
height: 40vh;
|
position: absolute;
|
left: 0;
|
top: 0;
|
right: 0;
|
}
|
|
.position_main{
|
height: 50vh;
|
margin: 0 15px;
|
position: absolute;
|
left: 0;
|
top: 150px;
|
right: 0;
|
display: flex;
|
flex-wrap: wrap;
|
justify-content: space-between;
|
|
.position_items{
|
width: 107px;
|
height: 107px;
|
margin-bottom: 15px;
|
background-color: #FFFFFF;
|
border-radius: 6px;
|
display: flex;
|
justify-content: center;
|
align-items: center;
|
flex-direction: column;
|
|
.position_items_phone{
|
// width: 100%;
|
// height: 100%;
|
}
|
.position_items_name{
|
margin-top:8px;
|
font-size: 15px;
|
color: #333333;
|
}
|
}
|
}
|
}
|
}
|
</style>
|