346149741
2024-06-22 0a2589ad83ffe64d021b009e33f8ff93b27d8536
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
<template>
    <view class="box">
        <view class="item" v-for="(item,index) in list1">
            <view class="name">
                {{item.docTitle}}
            </view>
            <view class="time">
                {{item.createTime}}
            </view>
            <view class="bottom" @click="chakan(item.docId)">
                <view class="left">
                    查看详情
                </view>
                <img src="/static/i08.png" class="img" alt="" />
            </view>
        </view>
    <!--     <view class="item">
            <view class="name">
                涨了,本月起发放!一图看懂养老金怎么调
            </view>
            <view class="time">
                2023.04.05 12:23
            </view>
            <view class="bottom">
                <view class="left">
                    查看详情
                </view>
                <img src="/static/i08.png" class="img" alt="" />
            </view>
        </view>
        <view class="item">
            <view class="name">
                涨了,本月起发放!一图看懂养老金怎么调
            </view>
            <view class="time">
                2023.04.05 12:23
            </view>
            <view class="bottom">
                <view class="left">
                    查看详情
                </view>
                <img src="/static/i08.png" class="img" alt="" />
            </view>
        </view>
        <view class="item">
            <view class="name">
                涨了,本月起发放!一图看懂养老金怎么调
            </view>
            <view class="time">
                2023.04.05 12:23
            </view>
            <view class="bottom">
                <view class="left">
                    查看详情
                </view>
                <img src="/static/i08.png" class="img" alt="" />
            </view>
        </view> -->
    </view>
</template>
 
<script>
    import {  docList } from '@/api/index.js'
    
    export default {
        
        data() {
            return {
                list1:[],
                queryParams: {
                    pageNum: 1,
                    pageSize: 10
                },
                total: 1,
            }
        },
        onShow() {
            this.list1 = []
            this.queryParams.pageNum = 1
            this.getList()
        },
        onReachBottom() {
            if(this.list1.length == this.total) {
                return
            }
            this.queryParams.pageNum++
            this.getList()
        },
        methods: {
            chakan(id){
                uni.navigateTo({
                    url: `/pages/hqzc/details?id=${id}`
                })
            },
            getList() {
                docList({...this.queryParams}).then(val => {
                    // console.log(val.data)
                    this.total = val.data.total
                    this.list1 = [...this.list1,...val.data.rows]
                })
            },
        }
    }
</script>
 
<style>
    page{
        background-color: #F4F4F4;
    }
</style>
<style scoped lang="scss">
    .box{
        .item{
            background: #fff;
            border-radius: 5px;
            padding: 24rpx;
            box-sizing: border-box;
            margin: 20rpx 32rpx;
            .name{
                color: #202d44;
                font-size:32rpx;
                margin-bottom: 16rpx;
            }
            .time{
                color: #7e8596;
                font-size: 26rpx;
                margin-bottom: 16rpx;
            
            }
            .bottom{
                    padding-top: 14rpx;
                    border-top: 1px solid #f1f1f1;
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                .left{
                     color: #202d44;
                     font-size: 28rpx;
                     font-weight: 400;
                }
                .img{
                    width: 28rpx;
                    height: 28rpx;
                }
            }
        }
 
    }
    
</style>