智慧保安互联网APP
zengh
2022-06-21 4efeb31d5b4921d7e851c256009486ad86bc70e2
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
<template>
    <view class="container">
        <u-navbar :is-fixed="false" :border-bottom="false" :is-back="false" title="好友"
            :background="{ background: '#0BB9C8' }" title-color="#fff">
            <image slot="right" src="/static/images/home/message.png" class="message-icon" mode="widthFix"></image>
        </u-navbar>
        <friend v-for="(item,index) in friendlist" :key='index' :data="item"></friend>
    </view>
</template>
 
<script>
    export default {
        data() {
            return {
                friendlist:[
                    {
                        name: 'liu',
                        havetalk: 0,
                        id: 1,
                        msg: 'xxxxxxxxxx',
                        imgsrc:''
                    },{
                        name: 'liu2',
                        havetalk: 4,
                        id: 2,
                        msg: 'xxxxxxxxxx',
                        imgsrc:''
                    },
                ]
            };
        },
        onReady() {
            
        },
        methods: {
        }
    };
</script>
 
<style lang="scss">
    .swiper-box {
        height: 100vh;
    }
 
    .message-icon {
        width: 32rpx;
        height: auto;
        margin-right: 27rpx;
    }
 
    .tab {
        margin-bottom: 10rpx;
    }
 
</style>