username@email.com
2024-09-09 626943b5ba84ce44bc19f4c3b8e8e94638bec733
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
<template>
    <view class="coreshop-margin-left-10 coreshop-margin-right-10 coreshop-margin-bottom-10  coreshop-margin-top-10  coreshop-bg-white" v-if="count > 0">
        <u-notice-bar :text="notcieText" url="/pages/notice/list/list" bgColor="#ffffff" color="#333333"></u-notice-bar>
    </view>
</template>
 
<script>
    export default {
        name: "coreshopNotice",
        components: {
        },
        props: {
            coreshopData: {
                type: Array,
                required: true,
            }
        },
        data() {
            return {
                notcieText: "",
            }
        },
        created() {
            if (this.coreshopData.length > 0) {
                for (var i = 0; i < this.coreshopData.length; i++) {
                    this.notcieText += this.coreshopData[i].title + '【' + this.$u.timeFormat(this.coreshopData[i].createTime, 'yyyy年mm月dd日') + '】' + '\u00A0\u00A0\u00A0\u00A0\u00A0';
                }
            };
        },
        computed: {
            count() {
                return (this.coreshopData.length > 0)
            }
        }
    }
</script>