hejianhao
4 天以前 60bdd6e881fbefc8c375eb9e9d71009d6c63859d
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
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
<template>
    <view class="content">
        <view class="top_content">
            <image src="/static/home/bg@2x.png" class="bg-img vw100" style="z-index: 1;" mode=""></image>
            <view class="main">
                <image src="/static/home/img6.png" mode="widthFix"></image>
                <image class="w-275 mt-15" src="/static/home/img3.png" mode="widthFix"></image>
                <view class="flex a-center mt-17   mb-31">
                    <image src="/static/home/img5.png" mode="widthFix"></image>
                </view>
                <swiper class="swiper" :indicator-dots="false" :autoplay="true" :interval="3000">
                    <swiper-item v-for="item, index in bannerlist" :key="index">
                        <image style="height: 270rpx;width: 688rpx;border-radius: 19rpx;" :src="item.url" mode="">
                        </image>
                    </swiper-item>
                </swiper>
            </view>
        </view>
        <view v-if="userInfo.isAdmin == 0" class="flex fs-27 font-bold a-center pt-38 pl-31">
            <image src="/static/home/社区@2x.png" mode="aspectFill" class="w-31 h-31 mr-12"></image>
            服务社区:{{ userInfo.roleName }}
        </view>
        <view v-if="userInfo.isAdmin == 1" class="flex j-between a-center pt-38 pl-31 pr-31">
            <view class="flex fs-27 font-bold a-center">
                <image src="/static/home/角色管理@2x.png" mode="aspectFill" class="w-31 h-31 mr-12"></image>
                <view class="flex a-center">
                    <view class="shrink0">
                        当前角色:
                    </view>
                    <view class="">
                        {{ userInfo.roleName }}
                    </view>
                </view>
            </view>
        </view>
 
        <view class="pt-38 pl-31 pr-31 flex flex-column">
            <view class="flex j-between a-center">
                <!-- <text class="color1 fs-31 font-bold">工作台</text> -->
                <!-- <text class="color2 fs-27" @click="showData = !showData">查看更多</text> -->
                <view @click="showData = !showData" class="fs-23 flex a-center border1 w-154 h-38 j-center br-29">
                    <image src="/static/more.png" mode="aspectFill" class="w-19 h-19 mr-8"></image>
                    更多功能
                </view>
                <view @click="showChangeRole" class="fs-23 flex a-center border1 w-154 h-38 j-center br-29">
                    <image src="/static/home/切换@2x.png" mode="aspectFill" class="w-19 h-19 mr-8"></image>
                    切换角色
                </view>
            </view>
            <view class="flex flex-wrap j-between mt-23">
                <view class="pt-38 pb-38 bg1 w-333 br-19 flex a-center relative"
                    :class="userInfo.isPartymember === false && 'bg2'" @click="onClick()">
                    <image v-if="userInfo.auditStatus === null" src="/static/home/注册@2x.png" mode="aspectFill"
                        class="w-112 h-85 absolute" style="right: -12rpx;top: -23rpx;"></image>
                    <image v-if="userInfo.auditStatus == 2" src="/static/home/拒绝@2x.png" mode="aspectFill"
                        class="w-112 h-85 absolute" style="right: -12rpx;top: -23rpx;"></image>
                    <image v-if="userInfo.auditStatus == 0" src="/static/home/审核中@2x (1).png" mode="aspectFill"
                        class="w-112 h-85 absolute" style="right: -12rpx;top: -23rpx;"></image>
                    <image class="w-94 h-77 ml-38" src="/static/home/img7.png" mode=""></image>
                    <text class="ml-37 font-bold">党员证件</text>
                </view>
                <view class="pt-38 pb-38 bg1 w-333 flex br-19 a-center" @click="goTopage()">
                    <image class="w-81 h-77 ml-38" src="/static/home/img2.png" mode=""></image>
                    <text class="ml-37 font-bold">诉求录入</text>
                </view>
                <view class="pt-38  pb-38 bg1 w-333 mt-19 br-19 flex a-center" @click="goToList()">
                    <image class="w-81 h-77 ml-38" src="/static/home/img4.png" mode=""></image>
                    <text class="ml-37 font-bold ">诉求列表</text>
                </view>
                <!-- <view class="pt-38 pb-38 bg1 w-333 br-19 mt-19 flex a-center">
                    <image class="w-79 h-77 ml-38" src="/static/home/img1.png" mode=""></image>
                    <text class="ml-37 font-bold">回访评价</text>
                </view> -->
 
                <view class="pt-38 pb-38 bg1 w-333 br-19 mt-19 flex a-center" @click="toStatistics">
                    <image class="w-81 h-77 ml-38" src="/static/home/img8.png" mode=""></image>
                    <text class="ml-37 font-bold">统计分析</text>
                </view>
                <view class="pt-38 pb-38 bg1 w-333 br-19 mt-19 flex a-center" @tap.stop="toCertificationAudit"
                    v-if="showData && userInfo.isAdmin == 1">
                    <image class="w-81 h-77 ml-38" src="/static/home/Group 2@2x.png" mode=""></image>
                    <text class="ml-37 font-bold">党员审核</text>
                </view>
                <view class="pt-38 pb-38 bg1 w-333 br-19 mt-19 flex a-center" @tap.stop="toSupervision"
                    v-if="showData && userInfo.isAdmin == 1">
                    <image class="w-81 h-77 ml-38" src="/static/home/supervision.png" mode=""></image>
                    <text class="ml-37 font-bold">诉求监督</text>
                </view>
            </view>
            <view class="flex j-between a-center mt-38">
                <!-- <text class="color1">消息通知</text> -->
            </view>
            <view class=" mt-15">
                <view class="flex a-center">
                    <view class="msg mr-19" @click="changeActive(1)" :class="isactive == 1 ? 'active' : ''">
                        消息
                        <view v-if="noreadlist.length > 0" class="tips">
                            {{ noreadlist.length }}
                        </view>
                    </view>
                    <view class="representative" @click="changeActive(2)" :class="isactive == 2 ? 'active' : ''">
                        待办
                        <view v-if="noreadlists.length > 0" class="tips">
                            {{ noreadlists.length }}
                        </view>
                    </view>
                </view>
                <view class="list mt-29">
                    <view v-if="isactive == 1 ? msgList.length == 0 : msgLists.length == 0" class="txt-center">
                        <image src="../../static/空空如也@2x.png" mode="widthFix" class="w80"></image>
                        <view class="fs-23 mt-20 mb-20 color4">暂无数据</view>
                    </view>
                    <view class="flex a-center mb-27" v-for="item in isactive == 1 ? msgList : msgLists" :key="item.id">
                        <view class="avater pb-33">
                            <image class="w-85 h-85 br50" src="/static/home/img9.png" mode=""></image>
                            <view class="tips" v-if="item.readStatus==2"></view>
                        </view>
                        <view class="border-b flex1 ml-18 pb-33">
                            <view class="fs-31  font-w500 flex  flex1 j-between">
                                <text>{{item.title}}</text>
                                <text class="fs-23 font-w400">{{item.time}}</text>
                            </view>
                            <view class="fs-27 flex j-between mt-8">
                                <text style="color: rgba(102, 102, 102, 1);">{{ item.promptType == 1 ? '临期提醒' : '超时提醒'
                                    }}</text>
                                <view class="read" v-if="item.readStatus == 1">已读</view>
                                <view class="noread" v-else>未读</view>
                            </view>
                        </view>
                    </view>
                    <text v-if="isactive == 1 ? msgList.length > 0 : msgLists.length > 0"
                        class="flex j-center fs-27 color4 pb-48" @click="Allread">全部已读</text>
                </view>
            </view>
        </view>
        <popupCertificate :show="isClick" @onCancel="isClick = false"></popupCertificate>
 
        <!-- 用户多个角色时切换角色弹窗 -->
        <u-popup :show="changeRolePopup" round="16rpx" @close="closeChangeRole">
            <u-toast ref="uToast"></u-toast>
            <view class="relative pb-20">
                <image @tap.stop="closeChangeRole" src="@/static/closeImg.png" class="w-35 h-35 absolute"
                    style="right: 31rpx;top: 46rpx;" />
                <view class="txt-center pt-38 pb-40 fs-35 lh-48 font-bold">选择角色</view>
                <view class="lineBox mb-10"></view>
                <view style="height: 546rpx;overflow-y: auto;">
                    <view @tap.stop="changeRole(item)" v-for="(item,index) in userInfo.permissions" :key="index"
                        :class="item.identity == userInfo.identity && 'bgcolor2'"
                        class="mt-38 bgcolor1 br-58 fs-31 ml-54 mr-62 py-37 txt-center">
                        <view>{{ item.name }}</view>
                    </view>
                </view>
            </view>
        </u-popup>
        <!-- 认证弹窗 -->
        <CustomPopup :overlayOpacity="overlayOpacity" ref="renzhengPop" confirmText="去认证" @close="closeH5"
            @comfirm="toRenzheng">
            <view class="txt-center fs-31 lh-42 pt-50 pb-17 color5">
                <view class="">
                    您暂未认证党员信息,
                </view>
                请认证后查看!
            </view>
        </CustomPopup>
        <!-- 审核中弹窗 -->
        <CustomPopup ref="shenhePop" confirmText="查看详情" @close="closeH5" @comfirm="toRenzhengDetail">
            <view class="txt-center fs-31 lh-42 pt-50 pb-35 color5">
                <view class="">
                    您提交的党员信息正在审核中,
                </view>
                请稍后!
            </view>
        </CustomPopup>
        <!-- 拒绝弹窗 -->
        <CustomPopup ref="jujuePop" confirmText="查看详情" @close="closeH5" @comfirm="toRenzhengDetail">
            <view class="txt-center fs-31 lh-42 pt-50 pb-60 color5">
                您提交的党员信息审核不通过!
            </view>
        </CustomPopup>
        <!-- 冻结弹窗 -->
        <CustomPopup ref="dongjiePop" confirmText="确认" :isOneBtn="true" @comfirm="comfirmDongjie">
            <view class="txt-center fs-31 lh-42 pt-50 pb-60 color5">
                当前账号已冻结,请联系管理员!
            </view>
        </CustomPopup>
        <!-- 确认弹窗 -->
        <CustomPopup ref="confirmPop" confirmText="确认" :isCountDown="true" :isOneBtn="true" @comfirm="comfirm">
            <view class="txt-center fs-31 lh-42 pt-48 pb-58 color5">
                <view class="">
                    请仔细核对账号信息和功能, 是否与
                </view>
                <view class="">
                    本人职责匹配,如不匹配,请向社区、
                </view>
                <view class="">
                    部门反映修改权限!
                </view>
            </view>
        </CustomPopup>
    </view>
</template>
 
<script>
    import dayjs from '../../uni_modules/uview-ui/libs/util/dayjs'
    import popupCertificate from '../components/certificate/certificate.vue'
    import {
        getBanner,
        getMessagelist,
        getappletcinfo,
        getread,
        getCurrentUserInfo,
        changeIdentity,
        confirmContent,
        getSignature
    } from './service.js'
    export default {
        components: {
            popupCertificate
        },
        data() {
            return {
                isactive: 1,
                list1: [],
                showData: false,
                isClick: false,
                pageNum: 1,
                bannerlist: [],
                msgList: [],
                msgLists: [],
                msgListTotal: [],
                userInfo: {},
                isLoading: false,
                noreadlist: [],
                noreadlists: [],
                changeRolePopup: false,
                activeRole: 1,
                overlayOpacity: 0.5
            }
        },
        // watch: {
        //     '$store.state.isList': {
        //         handler(newVal, oldVal) {
        //             if (newVal) {
        //                 uni.navigateTo({
        //                     url: '/pages/list/list'
        //                 })
        //                 this.$store.commit('SET_ISLIST', false)
        //             }
        //         },
        //         deep: true
        //     }
        // },
        onPullDownRefresh() {
            if (!this.isLoading) {
                this.pageNum = this.pageNum + 1
                this.getMessagelist()
            } else {
                return uni.showToast({
                    title: '没有更多了...',
                    icon: 'none'
                })
            }
 
        },
        onLoad(e) {
 
            if (e.token) {
                uni.setStorageSync('token', 'Bearer ' + e.token)
            }
        },
        onShow() {
            if (this.$store.state.isList) {
                uni.navigateTo({
                    url: '/pages/list/list'
                })
                this.$store.commit('SET_ISLIST', false)
                return
            }
            this.getBanner()
            this.getMessagelist()
            this.getappletcinfo()
        },
        methods: {
            toSupervision() {
                uni.navigateTo({
                    url: '/pages/supervision/supervision'
                })
            },
            toStatistics() {
                uni.navigateTo({
                    url: '/pages/statistics/index'
                })
            },
            // 管理员确认
            comfirm() {
                confirmContent().then(res => {
                    this.$refs.confirmPop.closePopup()
                })
            },
            //关闭切换角色弹窗
            closeChangeRole() {
                this.changeRolePopup = false
                this.getMessagelist()
                this.getappletcinfo()
            },
            changeRole(item) {
                this.activeRole = item - 1
                this.changeRolePopup = false
            },
            //确认冻结
            comfirmDongjie() {
                let arr = this.userInfo.permissions.filter(item => {
                    return !item.isFrozen
                })
                if (arr.length == 0) {
                    //全部身份被冻结,返回小程序主页
                    this.$jweixin.miniProgram.navigateBack()
                } else {
                    this.changeRolePopup = true
                }
                this.$refs.dongjiePop.closePopup()
            },
            // 认证详情
            toRenzhengDetail() {
                uni.navigateTo({
                    url: '/pages/authentication/authentication?detail=1'
                })
                this.$refs.jujuePop.closePopup()
                this.$refs.shenhePop.closePopup()
            },
            // 切换角色
            changeRole(e) {
                if (e.isFrozen) {
                    //冻结状态
                    this.changeRolePopup = false
                    this.$refs.dongjiePop.showPopup()
                } else {
                    changeIdentity({
                        identity: e.identity
                    }).then(res => {
                        this.$refs.uToast.show({
                            type: "success",
                            title: "修改成功",
                            message: "修改成功",
                        });
                        setTimeout(() => {
                            this.changeRolePopup = false
                            this.getMessagelist()
                            this.getappletcinfo()
                        }, 1000)
                    })
                }
            },
            showChangeRole() {
                this.changeRolePopup = true
            },
            // 跳转认证
            toRenzheng() {
                uni.navigateTo({
                    url: '/pages/authentication/authentication'
                })
                this.$refs.renzhengPop.closePopup()
            },
            // 关闭webview
            closeH5() {
                if (this.userInfo.isAdmin == 1) {
                    //是上级则不返回小程序
                    return
                }
                this.$jweixin.miniProgram.navigateBack()
                // getSignature().then(res => {
                // jweixin.config({
                //     debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来
                //     appld: 'wx118de8a734d269f0',
                //     timestamp: res.data.timestamp, // 必填,生成签名的 时间戳
                //     noncestr: res.data.nonceStr, // 必填,生成签名的随机串
                //     signature: res.data.signature, // 必填,签名
                //     jsApiList: [
                //         'miniProgram.navigateBack',
                //         'miniProgram.navigateTo',
                //         'miniProgram.postMessage',
                //     ] // 必填,需要使用的JS接口列表
                // })
                // jweixin.ready(() => {
                // 在这里调用任何你需要的JS-SDK功能 
                // jweixin.miniProgram.navigateBack()
                // });
 
                // jweixin.error((err) => {
                // 处理错误情况
                // uni.showToast({
                //     title: '配置失败'
                // });
                // })
                // })
 
            },
            Allread() {
                getread().then(resp => {
                    this.getMessagelist()
                })
            },
            getBanner() {
                getBanner().then(resp => {
                    this.bannerlist = resp.data
                })
            },
            async getappletcinfo() {
 
                // 获取三个身边当前用户信息 用于判断用户是否是上级
                let res = await getCurrentUserInfo()
                // 获取身份信息
                let resp = await getappletcinfo()
                let index = resp.data.permissions.findIndex(item => item.identity == 2)
                resp.data.isAdmin = index >= 0 ? 1 : 0
 
                if (resp.data.permissions.length > 0) {
                    let obj = resp.data.permissions.find(item => item.identity == resp.data.identity)
                    resp.data.roleName = obj.name
                }
 
                this.userInfo = {
                    ...resp.data,
                    ...res.data
                }
                uni.setStorageSync('userInfo', this.userInfo)
                if (this.userInfo.isFrozen) {
                    //账号被冻结
                    this.$refs.dongjiePop.showPopup()
                    return
                }
 
                if (!this.userInfo.isPartymember && this.userInfo.identity == '1' && this.userInfo.auditStatus ==
                    null) {
                    // 党员没有认证,多个角色
                    this.$refs.renzhengPop.showPopup()
                    this.overlayOpacity = 0.5
                    return
                }
                if (!this.userInfo.isPartymember && this.userInfo.auditStatus === null && !this.userInfo.identity) {
                    // 没有认证过且没有提交认证,单个角色
                    this.$refs.renzhengPop.showPopup()
                    this.overlayOpacity = 1
                    return
                }
                if (!this.userInfo.isPartymember && this.userInfo.auditStatus === 0 && this.userInfo.identity != '2') {
                    // 审核中
                    this.$refs.shenhePop.showPopup()
                    return
                }
                console.log(this.userInfo);
                if (!this.userInfo.isPartymember && this.userInfo.auditStatus === 2 && this.userInfo.identity != '2') {
                    // 审核拒绝
                    this.$refs.jujuePop.showPopup()
                    return
                }
                if (this.userInfo.identity == 1 && !this.userInfo.isConfirm && this.userInfo.auditStatus == 1) {
                    //没有确认党员信息
                    uni.navigateTo({
                        url: '/pages/party-member-info/party-member-info'
                    })
                    return
                }
                if (this.userInfo.identity == 2 && !this.userInfo.isConfirmContent) {
                    //管理员确认
                    this.$refs.confirmPop.showPopup()
                }
            },
            getMessagelist() {
                const data = {
                    pageNum: this.pageNum,
                    pageSize: 5
                }
                getMessagelist(data).then(resp => {
 
                    if (resp.data.records.length < 5 && this.pageNum == 1) {
                        this.msgListTotal = resp.data.records
                        this.isLoading = true
 
                    } else if (resp.data.records.length < 5 && this.pageNum != 1) {
                        this.msgListTotal = [...this.msgListTotal, resp.data.records]
                        this.isLoading = true
                    } else {
                        this.msgListTotal = [...this.msgListTotal, resp.data.records]
                        this.isLoading = false
                    }
                    this.msgListTotal = this.msgListTotal.map(item => {
                        const timeDifference = new Date().getTime() - new Date(item.createTime)
                            .getTime()
                        // 使用 dayjs 的 duration 来处理时间差
 
                        // 计算总秒数
                        const totalSeconds = Math.floor(timeDifference / 1000);
                        // 计算天数
                        const days = Math.floor(totalSeconds / (3600 * 24));
                        // 计算剩余的秒数
                        const remainingSecondsAfterDays = totalSeconds % (3600 * 24);
                        // 计算小时数
                        const hours = Math.floor(remainingSecondsAfterDays / 3600);
                        // 计算剩余的秒数
                        const remainingSecondsAfterHours = remainingSecondsAfterDays % 3600;
                        // 计算分钟数
                        const minutes = Math.floor(remainingSecondsAfterHours / 60);
 
                        item.time = days && hours ? `${days} 天前 ` : !days && hours ?
                            `${hours}小时 ${minutes} 分钟前` : `${minutes} 分钟前`
 
                        return item
                    })
                    this.msgList = JSON.parse(JSON.stringify(this.msgListTotal)).filter(item => item
                        .promptType ==
                        2)
                    this.msgLists = JSON.parse(JSON.stringify(this.msgListTotal)).filter(item => item
                        .promptType ==
                        1)
                    this.noreadlists = this.msgLists.filter(item => item.readStatus === 0)
                    this.noreadlist = this.msgList.filter(item => item.readStatus === 0)
 
                })
            },
            changeActive(value) {
                this.isactive = value
                if (value == 1) {
                    this.msgList = JSON.parse(JSON.stringify(this.msgListTotal)).filter(item => item
                        .promptType ==
                        2)
                    this.noreadlist = this.msgList.filter(item => item.readStatus === 0)
                } else {
 
                    this.msgLists = JSON.parse(JSON.stringify(this.msgListTotal)).filter(item => item
                        .promptType ==
                        1)
                    this.noreadlists = this.msgLists.filter(item => item.readStatus === 0)
                }
 
 
            },
            change() {
 
            },
            onClick() {
                if (!this.userInfo.isPartymember && this.userInfo.auditStatus === null) {
                    // 没有认证过且没有提交认证
                    this.$refs.renzhengPop.showPopup()
                    return
                }
                if (!this.userInfo.isPartymember && this.userInfo.auditStatus === 0) {
                    // 认证审核中
                    this.$refs.shenhePop.showPopup()
                    return
                }
                if (!this.userInfo.isPartymember && this.userInfo.auditStatus === 2) {
                    // 认证拒绝
                    this.$refs.jujuePop.showPopup()
                    return
                }
                this.isClick = true
            },
            goTopage() {
                uni.navigateTo({
                    url: '/pages/Appeal/Appeal',
                    success: function(res) {
                        // 跳转成功的回调函数
                    },
                    fail: function(err) {
                        // 跳转失败的回调函数
                    },
                    complete: function() {
                        // 无论跳转成功或失败都会执行的回调函数
                    }
                });
 
            },
            goToList() {
                uni.navigateTo({
                    url: '/pages/list/list'
                })
            },
            toCertificationAudit() {
                uni.navigateTo({
                    url: '/pages/certificationAudit/certificationAudit'
                })
            }
        }
    }
</script>
 
<style lang="scss">
    /* 将toast的z-index设置为最高 */
    .border-b {
 
        border-bottom: 2rpx solid rgba(0, 10, 26, 0.07);
    }
 
    .color1 {
        color: #3D2124;
    }
 
    .color2 {
        color: rgba(61, 33, 36, 0.6);
    }
 
    .color4 {
        color: rgba(0, 0, 0, 0.4);
    }
 
    .color5 {
        color: #666160;
    }
 
    .bgcolor1 {
        background: #F7F7F7;
    }
 
    .bgcolor2 {
        color: #fff;
        background: #FC8D55;
        box-shadow: 0rpx 4rpx 19rpx 0rpx rgba(239, 119, 58, 0.5);
    }
 
    .bg1 {
        background-color: rgba(255, 248, 230, 1);
    }
 
    .bg2 {
        background-color: #E5DFCF;
    }
 
    .flex-wrap {
        flex-wrap: wrap;
    }
 
    .read {
        width: 77rpx;
        height: 42rpx;
        border-radius: 8rpx;
        border: 2rpx solid rgba(0, 0, 0, 0.15);
        font-weight: 400;
        font-size: 23rpx;
        color: rgba(0, 0, 0, 0.45);
        display: flex;
        align-items: center;
        justify-content: center;
    }
 
    .noread {
        width: 77rpx;
        height: 42rpx;
        background: #FFF1F0;
        border-radius: 8rpx;
        border: 2rpx solid #FFCCC7;
        font-weight: 400;
        font-size: 23rpx;
        color: #FF4D4F;
        display: flex;
        align-items: center;
        justify-content: center;
    }
 
    .avater {
        position: relative;
 
        .tips {
            position: absolute;
            top: 0;
            left: 63rpx;
            width: 12rpx;
            height: 12rpx;
            border-radius: 50%;
            background: #FF3141;
        }
    }
 
    .top_content {
 
        position: relative;
 
        .main {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 0 31rpx;
            position: absolute;
            bottom: 8rpx;
            z-index: 100;
            left: 0;
 
            .tip {
 
                /* 让文字颜色透明,显示出渐变背景 */
                color: #FFEEA7;
                /* 设置文字大小 */
 
                font-weight: 800;
                font-size: 31rpx;
 
 
 
            }
 
            .title {
                font-weight: 400;
                font-size: 58rpx;
                color: #FFEEA7;
                line-height: 85rpx;
                text-shadow: 0px 4px 8px rgba(0, 0, 0, 0.26);
                text-align: right;
                font-style: normal;
            }
        }
    }
 
    .bg-img {
        height: 550rpx;
    }
 
    .swiper {
        width: 688rpx;
        height: 270rpx;
        border-radius: 19rpx;
 
    }
 
    // swiper-item{
    //     border-radius: 19rpx;
    // }
 
    .msg {
        width: 173rpx;
        height: 58rpx;
        border-radius: 29rpx;
        background: #F6F6F6;
        font-weight: 400;
        color: #797F81;
        font-size: 27rpx;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
 
        .tips {
            position: absolute;
            top: -12rpx;
            right: 35rpx;
            width: 27rpx;
            height: 27rpx;
            text-align: center;
            line-height: 27rpx;
            background: #FF3141;
            border: 2rpx solid #FFFFFF;
            border-radius: 50%;
 
            font-weight: 400;
            font-size: 17rpx;
            color: #FFFFFF;
 
        }
    }
 
    .representative {
        font-weight: 400;
        font-size: 27rpx;
        color: #797F81;
        width: 173rpx;
        height: 58rpx;
        background: #F6F6F6;
        border-radius: 29rpx;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
 
        .tips {
            position: absolute;
            top: -12rpx;
            right: 35rpx;
            width: 27rpx;
            height: 27rpx;
            text-align: center;
            line-height: 27rpx;
            background: #FF3141;
            border: 2rpx solid #FFFFFF;
            border-radius: 50%;
 
            font-weight: 400;
            font-size: 17rpx;
            color: #FFFFFF;
 
        }
    }
 
    .active {
        background: linear-gradient(270deg, #FC8D55 0%, #FF4948 100%);
        color: #FFFFFF;
        font-weight: 600;
    }
 
    .lineBox {
        width: 100%;
        height: 1rpx;
        background: #E5E5E5;
    }
 
    .border1 {
        border: 2rpx solid #FC8D55;
        color: #FC8D55;
    }
</style>