张晓波
2023-09-19 164694c47c35d6654df69b533e8dbf8b5423efc5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<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>