doum
2025-09-04 9d901b4215323c97a00a068cd962f5c9c04dadfa
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<template>
    <view class="index">
        <view class="index_t">
            <text>办公室安全上报</text>
            <image src="/static/img_egg@2x.png" mode="widthFix"></image>
        </view>
        <view class="index_list">
            <view class="index_list_item" @click="jump(1)">
                <view class="index_list_item_info">
                    <text>SHE事件上报</text>
                    <text>FAC/NM</text>
                </view>
                <image src="/static/bg_a.png" mode="widthFix"></image>
            </view>
            <view class="index_list_item" @click="jump(2)">
                <view class="index_list_item_info">
                    <text>跌绊滑风险上报</text>
                    <text>TAG</text>
                </view>
                <image src="/static/bg_b.png" mode="widthFix"></image>
            </view>
            <view class="index_list_item" @click="jump(3)" v-if="userInfo.dcaButton === 1">
                <view class="index_list_item_info">
                    <text>深度符合性审查DCA</text>
                    <text>DCA</text>
                </view>
                <image src="/static/bg_c.png" mode="widthFix"></image>
            </view>
        </view>
    </view>
</template>
 
<script>
    import { mapState } from 'vuex'
    export default {
        computed: {
            ...mapState(['userInfo'])
        },
        data() {
            return {
                title: 'Hello'
            }
        },
        onLoad() {
 
        },
        methods: {
            jump(type) {
                switch (type) {
                    case 1:
                        uni.navigateTo({
                            url: '/pages/reporting_she/reporting_she'
                        })
                        break;
                    case 2:
                        uni.navigateTo({
                            url: '/pages/riskReporting/riskReporting'
                        })
                        break;
                    case 3:
                        uni.navigateTo({
                            url: '/pages/report_dca/report_dca'
                        })
                        break;
                }
            }
        }
    }
</script>
 
<style lang="scss" scoped>
    .index {
        width: 100vw;
        padding: 30rpx;
        box-sizing: border-box;
        height: calc(100vh - 44px - 50px);
        background: linear-gradient( 180deg, #B5D2FF 0%, #FFFFFF 100%);
        .index_t {
            width: 100%;
            height: 196rpx;
            display: flex;
            align-items: center;
            justify-content: space-between;
            text {
                font-weight: 900;
                font-size: 52rpx;
                color: #222222;
            }
            image {
                width: 290rpx;
                height: 100%;
            }
        }
        .index_list {
            width: 100%;
            display: flex;
            flex-direction: column;
            margin-top: 12rpx;
            .index_list_item {
                width: 100%;
                height: 200rpx;
                margin-bottom: 30rpx;
                position: relative;
                .index_list_item_info {
                    width: 100%;
                    height: 100%;
                    padding: 0 48rpx;
                    box-sizing: border-box;
                    display: flex;
                    justify-content: center;
                    flex-direction: column;
                    position: relative;
                    z-index: 99;
                    text {
                        &:nth-child(1) {
                            font-weight: bold;
                            font-size: 34rpx;
                            color: #FFFFFF;
                        }
                        &:nth-child(2) {
                            font-weight: 400;
                            font-size: 26rpx;
                            color: rgba(255,255,255,0.6);
                            margin-top: 10rpx;
                        }
                    }
                }
                image {
                    width: 100%;
                    height: 100%;
                    position: absolute;
                    top: 0;
                    left: 0;
                }
            }
        }
    }
</style>