yuanhao
2025-05-19 cc610ef597a4b600b4c48c80026f3a99be171f3b
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
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
<template>
    <view>
        <img src="/static/head.png" class="head" alt="" />
        <view class="hqzc" @click="more1()">
            <img src="/static/hqzc.png" class="img" alt="" />
            <view class="line"></view>
            <view class="font">
                <p v-for="(item,index) in list1" :key="index" class="u-line-1">{{item.docTitle}}</p>
                <!-- <p>海关总署贸易持续发展2024年立法...</p>
                <p>国家医疗保障局办公室关于发布管理... </p> -->
            </view>
            <img src="/static/i06.png" class="more"  alt="" style="width: 46rpx;height: 46rpx;"/>
        </view>
        <view class="btnbox">
            <image mode="widthFix" src="/static/i01.png" class="more" alt="" style="margin-right: 18rpx;" @click="goMyCompany('01')"/>
            <image mode="widthFix" src="/static/i02.png" class="more" alt="" @click="goMyCompany('02')"/>
            <image mode="widthFix" src="/static/i03.png" class="more" alt="" style="margin-right: 18rpx;" @click="goMyCompany('01')"/>
            <image mode="widthFix" src="/static/i04.png" class="more" alt="" @click="goMyCompany('00')"/>
                <!-- <u-button @click="goMyCompany('01')">我是执法人员</u-button>
                <u-button @click="goMyCompany('02')">我是企业</u-button>
                <u-button @click="goMyCompany('00')">运营管理</u-button> -->
        </view>
        <view class="login-news" @click="goLogin">
            <image src="/static/index-1.png" mode="widthFix" @click="goLogin"></image>
        </view>
        <view class="msgbox">
            <view class="tit">
                <view class="t">
                    信息公示
                </view>
                <view class="m" @click="more2()">
                    查更多>
                </view>
            </view>
            <view class="item" v-for="(item,index) in list2">
                <img src="/static/i05.png" class="img" alt="" />
                <view class="right">
                    <view class="name">
                        {{item.companyName}}
                    </view>
                    <view class="box">
                        <view class="l">
                            <p>执法单位:{{item.executeDeptName}}</p>
                            <p>执法时间:{{item.executeTime}}</p>
                        </view>
                        <view class="r" @click="kankna(item.orderId)">
                            去查看
                        </view>
                    </view>
                </view>
            </view>
        <!--     <view class="item">
                <img src="/static/i05.png" class="img" alt="" />
                <view class="right">
                    <view class="name">
                        北京斯诚科技发展有限公司
                    </view>
                    <view class="box">
                        <view class="l">
                            <p>执法单位:农业农村局</p>
                            <p>执法时间:2024-06-03 12:30:67</p>
                        </view>
                        <view class="r">
                            去查看
                        </view>
                    </view>
                </view>
            </view>
            <view class="item">
                <img src="/static/i05.png" class="img" alt="" />
                <view class="right">
                    <view class="name">
                        北京华星擘达物业管理有限公司
                    </view>
                    <view class="box">
                        <view class="l">
                            <p>执法单位:农业农村局</p>
                            <p>执法时间:2024-06-03 12:30:67</p>
                        </view>
                        <view class="r">
                            去查看
                        </view>
                    </view>
                </view>
            </view>
            <view class="item">
                <img src="/static/i05.png" class="img" alt="" />
                <view class="right">
                    <view class="name">
                        布雷曼管理咨询(北京)有限公司
                    </view>
                    <view class="box">
                        <view class="l">
                            <p>执法单位:农业农村局</p>
                            <p>执法时间:2024-06-03 12:30:67</p>
                        </view>
                        <view class="r">
                            去查看
                        </view>
                    </view>
                </view>
            </view>
            <view class="item">
                <img src="/static/i05.png" class="img" alt="" />
                <view class="right">
                    <view class="name">
                        北京元大投资有限公司
                    </view>
                    <view class="box">
                        <view class="l">
                            <p>执法单位:农业农村局</p>
                            <p>执法时间:2024-06-03 12:30:67</p>
                        </view>
                        <view class="r">
                            去查看
                        </view>
                    </view>
                </view>
            </view> -->
        </view>
        <view style="height: 30rpx;"></view>
    </view>
</template>
 
<script>
    import {  docList,showList } from '@/api/index.js'
    
    // 00营商办,01执法,02企业 区分不同的登陆页面
    export default {
        onLoad() {
            
        },
        onShow() {
            this.getInfo()
            const value = uni.getStorageSync("userInfo")
            const sessionToken = uni.getStorageSync('sessionToken')
            if(sessionToken && value && value.userType) {
                const qiyeData = uni.getStorageSync('qiyedata')
                if(value.userType == '02') {
                    uni.reLaunch({
                        url:`/qiye/qiyeIndex/qiyeIndex?id=${qiyeData.deptId}`
                    })
                } else if(value.userType == '01'){
                    uni.reLaunch({
                        url:`/policy/policyIndex/policyIndex`
                    })
                } else {
                    uni.reLaunch({
                        url:`/policy/policyIndex/policyIndex`
                    })
                }
            }
        },
        data() {
            return {
                list1:[],
                list2:[],
            }
        },
        methods: {
            kankna(id){
                uni.navigateTo({
                    url: `/pages/message/details?id=${id}`
                })
            },
            more1(){
                uni.navigateTo({
                    url: `/pages/hqzc/list`
                })
            },
            more2(){
                uni.navigateTo({
                    url: `/pages/message/list`
                })
            },
            getInfo() {
                docList({pageNum:1,pageSize:2}).then(val =>{
                    let data = val.data.rows
                    for(let i = 0;i<data.length;i++){
                        if(data[i].docTitle.length>17){
                            data[i].docTitle = data[i].docTitle.slice(0, 17) + '...'
                        }
                    }
                    this.list1 = data
                })
                showList({pageNum:1,pageSize:10}).then(val =>{
                    //console.log(val.data.rows)
                    this.list2 = val.data.rows
                })
            },
            goMyCompany(item) {
                uni.navigateTo({
                    url: `/pages/companyLogin/companyLogin?code=${item}`
                })
            },
            goLogin() {
                uni.scanCode({
                    success: (val) =>{
                        uni.navigateTo({
                            url: `/pages/visitiorRegis/visitiorRegis?value=${val.result}`
                        })
                    }
                })
            }
        }
    };
</script>
<style>
    page{
        background: #F7F7F7;
    }
</style>
<style lang="scss" scoped>
 
    .hqzc{
        position: absolute;
        border-radius: 5px;
        background: #fff;
        display: flex;
        width: calc(100vw - 64rpx);
        align-items: center;
        left: 32rpx;
        top: 500rpx;
        padding: 24rpx;
        box-sizing: border-box;
        
        .line{
            width: 2rpx;
            height: 50rpx;
            background: #f1f1f1;
            margin-right: 18rpx;
        }
        .img{
            width: 76rpx;
            height: 76rpx;
            margin-right: 18rpx;
        }
        .more{
            width: 28rpx;
            height: 28rpx;
        }
        .font{
            font-size: 26rpx;
            color: #4A4E60;
            margin-right: 50rpx;
            width: 450rpx;
            // text-align: center;
            text-align: left;
        }
    }
    .btnbox{
        margin-top: 110rpx;
        margin-left: 32rpx;
        margin-right: 32rpx;
        image{
            width: 334rpx;
            height: 208rpx;
        }
    }
    .msgbox{
        background: #fff;
        border-radius: 5px;
        padding: 24rpx;
        box-sizing: border-box;
        margin: 20rpx 32rpx;
        .tit{
            display: flex;
            justify-content: space-between;
            .t{
                color: #202d44;
                font-size: 36rpx;
                font-weight: bolder;
            }
            .m{
                color: #7e8596;
                font-size: 24rpx;
            }
        }
        .item{
            display: flex;
            margin-top: 26rpx;
            border-bottom: 1px solid #F1F1F1;
            padding-bottom: 26rpx;
            .img{
                width: 56rpx;
                height: 56rpx;
            }
            .right{
                width: 90%;
                .name{
                    color: #202d44;
                    font-size: 32rpx;
                    line-height: 44rpx;
                    margin-bottom: 24rpx;
                }
                .box{
                    display: flex;
                    justify-content: space-between;
                    .l{
                        font-size: 26rpx;
                         color: #7e8593;
                         max-width: 80%;
                         
                    }
                    .r{
                        width: 132rpx;
                        height: 64rpx;
                        line-height: 64rpx;
                        border-radius: 5px;
                        border: 1px solid #ABD2FF;
                        background: #F0F8FF;
                        color: #1171e0;
                        text-align: center;
                        font-size: 30rpx;
                    }
                }
            }
        }
        .item:last-child{
            border: none;
            padding-bottom: 0;
        }
 
    }
    .head{
        width: 100%;
        height: 518rpx;
    }
    .login-news{
        margin: 20rpx 32rpx;
        image{
            width: 100%;
        }
    }
</style>