wjt
2024-07-23 c3b2d6d35b77d11ff86d45926501493b7fc8886e
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
<template>
    <view class="page-content">
 
        <view class="banner">
            <image src="/static/head.png" mode=""></image>
        </view>
        <view class="main-page-box">
            <view class="second-box" @click="goPolicyList">
                <image src="/static/hqzc.png" class="icon"></image>
                <view class="driver"></view>
                <view class="right-box" >
                    <view class="article-list">
                        <view class="u-line-1 margin-bottom" v-for="(item, index) in policyList" :key="index">
                            {{item.docTitle}}</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">
                <image src="/static/policy/zhi1.png"  v-if="userAuth"  @click="applyPulicy" mode="widthFix"></image>
                <image src="/static/policy/zhi2.png" v-if="isJudge" @click="recordZhifa" mode="widthFix"></image>
                <image src="/static/policy/zhi3.png" v-if="userAuth" @click="report" mode="widthFix"></image>
                <image src="/static/policy/zhi4.png" v-if="userAuth" @click="applyRecord" mode="widthFix"></image>
                <image src="/static/policy/zhi5.png" @click="goDataLook" v-if="userType == '00'" mode="widthFix">
                </image>
            </view>
        </view>
    </view>
</template>
 
<script>
    import {
        getInfo,
        docList
    } from '@/api/auth.js'
    import tabsCom from '@/policy/components/tabs.vue'
    export default {
        props: {
            isJudge: {
                type: Boolean,
                default: false
            },
            userType: {
                type: String,
                default: ""
            },
            userAuth: {
                type: Boolean,
                default: false
            }
        },
        components: {
            tabsCom
        },
        data() {
            return {
                // isJudge: false,
                policyList: []
            }
        },
        mounted() {
            // this.getInfo()
            this.docList()
        },
        methods: {
            // getInfo() {
            //     getInfo().then(val =>{
            // if(val.data.data.roles) {
            //     this.isJudge = val.data.data.roles.some(item => item.includes('check_enforce'))
            // }
            //     })
            // },
            applyPulicy() {
                uni.navigateTo({
                    url: '/policy/policyApply/policyApply'
                })
            },
            goDataLook() {
                uni.navigateTo({
                    url: '/policy/dataLook/dataLook'
                })
            },
            report() {
                uni.navigateTo({
                    url: '/policy/reportPage/reportPage'
                })
            },
            applyRecord() {
                console.log(this.userAuth)
                if(this.userAuth) {
                    uni.navigateTo({
                        url: '/policy/applyLook/applyLook'
                    })
                } else {
                    uni.navigateTo({
                        url: '/policy/applyRecord/applyRecord'
                    })
                }
            
            },
            recordZhifa() {
                uni.navigateTo({
                    url: '/policy/translate/translate'
                })
            },
            // 去往惠企政策
            goPolicyList() {
                uni.navigateTo({
                    url: `/pages/hqzc/list`
                })
            },
            docList() {
                docList({
                    pageSize: 2,
                    pageNum: 1
                }).then(val => {
                    this.policyList = val.data.rows
                })
            }
        }
    }
</script>
 
<style lang="scss" scoped>
    .page-content {
        .banner {
            width: 100%;
            height: 520rpx;
 
            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;
 
                .article-list {
                    width: 80%;
                }
 
                .icon-box {
                    background-color: #F1F1F1;
                    border-radius: 50%;
                    padding: 10rpx;
                }
 
                .margin-bottom {
                    margin-bottom: 10rpx;
                }
 
                .margin-bottom:last-child {
                    margin-bottom: 0;
                }
            }
        }
 
        .policy-list {
            margin: 22rpx 32rpx;
 
            image {
                width: 100%;
                height: 160rpx;
                margin-bottom: 20rpx;
            }
 
            image::last-child {
                margin-bottom: 0;
            }
        }
    }
</style>