notify-detail.vue
1.45 KB
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
<template>
<view class="notify-detail-page">
<!-- 公共组件-每个页面必须引入 -->
<public-module></public-module>
<view class="notify-column">
<view class="column-list">
<view class="column-title">
<view class="text-clip w-500">
<text class="notify-detail-text ">{{ notifyList.title }}</text>
</view>
</view>
<view class="h-25"></view>
<u-list height="140rpx">
<u-list-item>
<u-cell :value="`${notifyList.senderDate}`" :title="`${notifyList.senderName}`">
<u-avatar slot="icon" shape="circle" size="35" :src="notifyList.avatar"></u-avatar>
</u-cell>
</u-list-item>
</u-list>
<view class="bottom-text">
<view class="u-flex column"></view>
<view class="mt-20">
<!-- 富文本解析 -->
<u-parse :content="notifyList.content"></u-parse>
</view>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
notifyList: {}
};
},
onShow(){
this.$nextTick(()=>{
uni.setNavigationBarTitle({
title:this.$t('menu.notDetails')
})
})
},
onLoad(e) {
// 隐藏原生的tabbar
uni.hideTabBar();
if (e.data !== null) {
let params = JSON.parse(decodeURIComponent(e.data));
if (params) this.notifyList = params;
}
}
};
</script>
<style lang="scss" scoped>
@import './static/notifyDetail.scss';
/deep/ .u-line {
position: relative !important;
width: 640rpx !important;
left: 31rpx !important;
}
</style>