消息中心

This commit is contained in:
2021-09-25 10:59:03 +08:00
parent 2d0fbac73b
commit 3a48656538
9 changed files with 77 additions and 5 deletions

View File

@@ -22,6 +22,7 @@
notificationsDetail,
notificationsReaded
} from '@/apis/interfaces/news.js'
export default {
data() {
return {

View File

@@ -3,9 +3,9 @@
<view class="list" v-for="(item,index) in items" :key="index" v-if="items.length>0">
<navigator class="item" open-type="navigate" hover-class="none" :url="'/pages/news/detail?type='+item.type">
<view class="left">
<image class="img" v-if='item.type ==="SystemNotification"' :src="item.icon?item.icon:'/static/images/news_1.png'" mode="aspectFill"></image>
<image class="img" v-if='item.type ==="OrderNotification"' :src="item.icon?item.icon:'/static/images/news_2.png'" mode="aspectFill"></image>
<image class="img" v-if='item.type ==="CouponNotification"' :src="item.icon?item.icon:'/static/images/news_3.png'" mode="aspectFill"></image>
<image class="img" v-if='item.type ==="SystemNotification"' :src="item.icon?item.icon:'/static/imgs/news_1.png'" mode="aspectFill"></image>
<image class="img" v-if='item.type ==="OrderNotification"' :src="item.icon?item.icon:'/static/imgs/news_2.png'" mode="aspectFill"></image>
<image class="img" v-if='item.type ==="CouponNotification"' :src="item.icon?item.icon:'/static/imgs/news_3.png'" mode="aspectFill"></image>
<view class="content">
<view class="title">{{item.name}}</view>
<view class="des">{{item.title || '暂无任何未读消息'}}</view>