wjt
2024-06-20 5470b3652246095d9d73d8aa03ce8830459af8c9
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
<template>
    <view class="page-content">
    
        <view class="banner">
            <image src="https://picsum.photos/200/200" mode=""></image>
        </view>
        <view class="main-page-box">
            <view class="second-box">
                <image src="/static/index.png" class="icon"></image>
                <view class="driver"></view>
                <view class="right-box">
                    <view>
                        <view class="u-line-1 margin-bottom">海关总署贸易持续发展2024年立法局...</view>
                        <view class="u-line-1">国家医疗保障局办公室关于发布管理... </view>
                    </view>
                    <view class="icon-box">
                        <u-icon name="arrow-right" size="14" color="#868C98FF"></u-icon>
                    </view>
                </view>
            </view>
            <view class="policy-list">
                <u-button @click="applyPulicy">执法申请</u-button>
                <u-button v-if="isJudge">执法审批</u-button>
                <u-button>执法结果上报</u-button>
                <u-button>记录查询</u-button>
                <u-button>数据看板</u-button>
            </view>
        </view>
    </view>
</template>
 
<script>
    import {  getInfo } from '@/api/auth.js'
    import tabsCom from '@/policy/components/tabs.vue'
    export default {
        components: {
            tabsCom
        },
        data() {
            return {
                isJudge: false
            }
        },
        onShow() {
            this.getInfo()
        },
        methods: {
            getInfo() {
                getInfo().then(val =>{
                    // console.log()
                    this.isJudge = val.data.roles.some(item => item.includes('check_enforce'))
                })
            },
            applyPulicy() {
                uni.navigateTo({
                    url: '/policy/policyApply/policyApply'
                })
            }
        }
    }
</script>
 
<style lang="scss" scoped>
    .page-content{
        .banner{
            width: 100%;
            height: 400rpx;
            image{
                width: 100%;
                height: 100%;
            }
        }
        .main-page-box{
            position: relative;
            top: -60rpx;
        }
        .second-box{
            margin: 0 32rpx;
            background-color: white;
            border-radius: 20rpx;
            padding: 34rpx 24rpx;
            display: flex;
            justify-content: space-between;
            align-items: center;
            .icon{
                width: 76rpx;
                height: 76rpx;
                
            }
            .driver{
                height: 50rpx;
                width: 2rpx;
                background-color: #F1F1F1;
                margin: 0 24rpx;
            }
            .right-box{
                display: flex;
                justify-content: space-between;
                align-items: center;
                width: calc(100% - 76rpx - 50rpx);
                font-size: 26rpx;
                color: #4A4E60FF;
                .icon-box{
                    background-color: #F1F1F1;
                    border-radius: 50%;
                    padding: 10rpx;
                }
                .margin-bottom{
                    margin-bottom: 10rpx;
                }
            }
        }
        .policy-list{
            margin: 22rpx 32rpx;
        }
    }
</style>