doum
昨天 0d0e67818a45161af14114211f43aafd232a6da2
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
<template>
    <view class="news-container">
        <uni-search-bar
            class="seacrh-style"
            radius="36"
            bgColor="#f5f5f5"
            placeholder="搜索标题"
            clearButton="auto"
            cancelButton="none"
            @confirm="search"
        />
        <view v-for="(item, index) in data" :key="index" class="notify-item" @click="showDetail(index)">
            <uni-badge
                :is-dot="true"
                :text="1"
                absolute="rightTop"
                size="normal"
            >
                <image src="@/static/merchant/ic_xiaoxi@2x.png" mode=""></image>
            </uni-badge>
            
            <view class="notify-message">
                <view class="notify-title">系统通知</view>
                <view class="notify-content">尊敬的各位用户:为了给您带来更好的体验,电子商务平台于2022年12月30日已完成优化更新。</view>
                <view class="notify-time">发布于2023-03-12 19:00</view>
            </view>
        </view>
        <view class="bottom-style">{{ isMore ? '-没有更多了-' : '上拉加载更多' }}</view>
        <view class="safe-area"></view>
    </view>
</template>
 
<script>
    export default {
        data() {
            return {
                data: [1,2,3,4,5,6,7,7],
                isMore: true
            };
        },
        methods: {
            search(res) {
                
            },
            showDetail(index) {
                uni.navigateTo({
                    url: '/pages/merchant/merchatCenter/notifyDetail'
                })
            }
        }
    }
</script>
 
<style lang="scss" scoped>
.news-container {
    height: 100%;
    overflow-y: scroll;
    background-color: #fff;
}
.seacrh-style {
    height: 72rpx;
    background: #F5F5F5;
    border-radius: 36rpx;
}
.notify-item {
    padding: 28rpx 32rpx;
    height: 234rpx;
    box-sizing: border-box;
    border-bottom: 2rpx solid #E5E5E5;
    display: flex;
    image {
        width: 72rpx;
        height: 72rpx;
        background: #FCECEC;
        border-radius: 36rpx;
        
    }
    .notify-message {
        margin-left: 16rpx;
        flex: 1;
        .notify-title {
            height: 32rpx;
            font-size: 32rpx;
            font-weight: 500;
            color: #222222;
            line-height: 32rpx;
            margin-bottom: 20rpx;
        }
        .notify-content {
            font-size: 26rpx;
            font-weight: 400;
            color: #666666;
            line-height: 40rpx;
            margin-bottom: 24rpx;
        }
        .notify-time {
            height: 24rpx;
            font-size: 24rpx;
            font-weight: 400;
            color: #999999;
            line-height: 24rpx;
        }
    }
}
.bottom-style {
    height: 22rpx;
    font-size: 22rpx;
    font-family: PingFangSC-Regular, PingFang SC;
    font-weight: 400;
    color: #CCCCCC;
    line-height: 22rpx;
    text-align: center;
    margin-top: 50rpx;
}
.safe-area {
    height: env(safe-area-inset-bottom);
    padding: 20rpx;
}
</style>