linwe
2023-11-11 39efb25bef53fc12a481f7a2f94df200baae45fd
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
<template>
    <view class="">
        
    <view v-for="(item,index) in notice" :key="index">
        <view class="notic-list"   @click="navigatorPage('/detail')">
            <view class="f-28 mb-30">
                {{item.title}}
            </view>
            <view class="flex a-i-c j-c-s-b">
                <view class="f-28 flex a-i-c">
                    <view class="flex a-i-c mr-30">
                        <u-icon name="thumb-up-fill" size="24" color="#CECECE"></u-icon>
                        <text class="f-24 c-99 ml-10">{{item.countNumber}}</text>
                    </view>
                    <view class="flex a-i-c">
                        <u-icon name="eye-fill" size="24" color="#CECECE"></u-icon>
                        <text class="f-24 c-99 ml-10">{{item.viewNumber}}</text>
                    </view>
                </view>
                <text class="f-24 c-99">{{item.createTime}}</text>
            </view>
        </view>
    </view>
    
    </view>
</template>
 
<script>
    import {
        getPage
    } from "@/api/article/article.js";
    export default {
        data(){
            return {
                notice: [],
            }
        },
        onLoad() {
            this.getNoticeList()
        },
        methods:{
            async getNoticeList() {
                const param = {
                    size: 10,
                    current: 1
                }
                const res = await getPage(param)
                this.notice = res.data.records
            
            },
            navTo(){
                this.$u.func.globalNavigator('detail', "navTo")
            }
        }
    }
</script>
 
<style>
    .notic-list {
        padding: 30rpx 0;
        border-bottom: 1px solid #f5f5f5;
    }
</style>