|
|
|
@ -19,10 +19,12 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<!-- 公告 --> |
|
|
|
<v-paging class="layout-main" :key="1" :ajax="article" :data="{type:'notice'}" v-if="active==0"> |
|
|
|
<template #box="list"> |
|
|
|
<!-- <v-paging class="layout-main" :key="1" :ajax="article" :data="{type:'notice'}" v-if="active==0"> --> |
|
|
|
<view class="layout-main" v-if="active==0"> |
|
|
|
<!-- <template #box="list"> --> |
|
|
|
<view class="list m-t-md" key="ul1"> |
|
|
|
<v-link tag="li" :to="{path:'/pages/notice/detail',query:{id:item.id}}" class="item d-flex p-md align-center m-x-md m-b-xs bg-panel-3 rounded box-shadow" v-for="item in $list(list)" :key="item.id"> |
|
|
|
<!-- <v-link tag="li" :to="{path:'/pages/notice/detail',query:{id:item.id}}" class="item d-flex p-md align-center m-x-md m-b-xs bg-panel-3 rounded box-shadow" v-for="item in $list(list)" :key="item.id"> --> |
|
|
|
<v-link tag="li" :to="{path:'/pages/notice/detail',query:{id:item.id}}" class="item d-flex p-md align-center m-x-md m-b-xs bg-panel-3 rounded box-shadow" v-for="item in article" :key="item.id"> |
|
|
|
<view class="flex-fill"> |
|
|
|
<view class="title color-light eps-2 m-b-xs">{{item.title}}</view> |
|
|
|
<!-- <view class="time fn-sm">{{item.created_at}}</view> --> |
|
|
|
@ -31,13 +33,15 @@ |
|
|
|
<van-icon name="arrow" /> |
|
|
|
</v-link> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
</v-paging> |
|
|
|
<!-- </template> --> |
|
|
|
</view> |
|
|
|
<!-- 消息 --> |
|
|
|
<v-paging class="layout-main" :key="2" :ajax="myNotifiables" v-if="active==1"> |
|
|
|
<!-- <view class="layout-main" v-if="active==1"> --> |
|
|
|
<template #box="list"> |
|
|
|
<view class="list m-t-md" key="ul2"> |
|
|
|
<v-link tag="li" :to="{path:'/pages/notice/msg-detail',query:{id:item.id}}" class="item d-flex p-md align-center m-x-md m-b-xs bg-panel-3 rounded box-shadow" v-for="item in $list(list)" :key="item.id"> |
|
|
|
<!-- <v-link tag="li" :to="{path:'/pages/notice/msg-detail',query:{id:item.id}}" class="item d-flex p-md align-center m-x-md m-b-xs bg-panel-3 rounded box-shadow" v-for="item in myNotifiables" :key="item.id"> --> |
|
|
|
<view class="flex-fill"> |
|
|
|
<view class="title color-light eps-2 m-b-xs">{{item.data.title}}</view> |
|
|
|
<!-- <view class="time fn-sm">{{item.created_at}}</view> --> |
|
|
|
@ -58,15 +62,25 @@ export default { |
|
|
|
return { |
|
|
|
active: 1, |
|
|
|
myNotifiables: Member.myNotifiables, |
|
|
|
article:Member.article |
|
|
|
// article:Member.article |
|
|
|
article:Member.notice |
|
|
|
}; |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
|
|
|
|
}, |
|
|
|
created() { |
|
|
|
Member.notice({page: 1}).then(res => { |
|
|
|
this.article = res.data; |
|
|
|
}) |
|
|
|
// Member.myNotifiables({page: 1}).then(res => { |
|
|
|
// this.myNotifiables = res.data.data; |
|
|
|
// }) |
|
|
|
}, |
|
|
|
filters: { |
|
|
|
parseTime(val) { |
|
|
|
return formData.parseTime(val); |
|
|
|
// return formData.parseTime(val); |
|
|
|
return val; |
|
|
|
}, |
|
|
|
}, |
|
|
|
}; |
|
|
|
|