2024-09-30 14:03:25 +08:00
|
|
|
|
<template>
|
|
|
|
|
|
<view v-if="notification">
|
|
|
|
|
|
<view class="time">创建时间:{{ timeFormat(notification.createdAt, 'yyyy-mm-dd h:M') }}</view>
|
2025-02-06 11:37:41 +08:00
|
|
|
|
<view class="content">{{ notification.data }}</view>
|
2024-09-30 14:03:25 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
2025-02-06 11:37:41 +08:00
|
|
|
|
import { timeFormat } from 'uview-plus'
|
2024-09-30 14:03:25 +08:00
|
|
|
|
|
2025-02-06 11:37:41 +08:00
|
|
|
|
export default {
|
|
|
|
|
|
data() {
|
|
|
|
|
|
return {
|
|
|
|
|
|
notification: null
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
onLoad(options) {
|
|
|
|
|
|
this.notification = JSON.parse(options.notification)
|
|
|
|
|
|
console.log(this.notification)
|
|
|
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
|
|
|
timeFormat
|
2024-09-30 14:03:25 +08:00
|
|
|
|
}
|
2025-02-06 11:37:41 +08:00
|
|
|
|
}
|
2024-09-30 14:03:25 +08:00
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss">
|
2025-02-06 11:37:41 +08:00
|
|
|
|
page {
|
|
|
|
|
|
background-color: $uni-bg-color-grey;
|
|
|
|
|
|
}
|
2024-09-30 14:03:25 +08:00
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
2025-02-06 11:37:41 +08:00
|
|
|
|
.time {
|
|
|
|
|
|
margin-top: 24rpx;
|
|
|
|
|
|
margin-left: 25rpx;
|
|
|
|
|
|
color: #6c6c6c;
|
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
|
}
|
2024-09-30 14:03:25 +08:00
|
|
|
|
|
2025-02-06 11:37:41 +08:00
|
|
|
|
.content {
|
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
|
color: #6c6c6c;
|
|
|
|
|
|
width: 652rpx;
|
|
|
|
|
|
margin-left: 25rpx;
|
|
|
|
|
|
margin-top: 20rpx;
|
|
|
|
|
|
border-radius: 24rpx;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
padding: 24rpx;
|
|
|
|
|
|
box-shadow: 2rpx 2rpx 10rpx rgba(0, 0, 0, 0.2);
|
|
|
|
|
|
}
|
2024-09-30 14:03:25 +08:00
|
|
|
|
</style>
|