1234567891011121314151617181920212223242526272829303132333435363738 |
- <template>
- <view class="phone-mes-page">
- <view class="mes-box">
- <view class="mes-name">{{mesPageData.name}}</view>
- <text class="mes-time">{{mesPageData.createTime}}</text>
- <view class="fwb-box" v-html="mesPageData.content"></view>
- </view>
- </view>
- </template>
- <script setup>
- import {reactive,ref} from "vue";
- import {onLoad,onShow} from '@dcloudio/uni-app';
- import {getNoticeInfo} from '@/api/my.js'
- let mesPageData = reactive({
- name: '',
- createTime: '',
- content: '',
- });
-
- let pageId = ref('');
- onLoad((options) => {
- pageId.value = options.noticeId;
- getMesInit()
- });
- function getMesInit(){
- getNoticeInfo({noticeId:pageId.value}).then(res => {
- mesPageData.name= res.data.name;
- mesPageData.createTime = res.data.createTime;
- mesPageData.content = res.data.content;
- })
- }
- </script>
- <style>
- </style>
|