mirror of
http://36.133.248.69:3088/admin/RentWeAppFront.git
synced 2026-03-08 01:42:28 +08:00
调整ui
This commit is contained in:
@@ -40,27 +40,27 @@ export default {
|
||||
methods: {
|
||||
clickContent(item){
|
||||
if(item.id){
|
||||
this.$u.route('/pages/content/content', {
|
||||
this.$u.route('/pages/notice/noticeDetail', {
|
||||
id: item.id
|
||||
});
|
||||
}
|
||||
},
|
||||
getNoticecList(){
|
||||
let url = "/api/notice/findNoticeList";
|
||||
let url = "/notice/findNoticeList";
|
||||
this.$u.get(url,{
|
||||
pageNum:this.pageNum,
|
||||
pageSize:this.pageSize,
|
||||
orderByColumn:'create_time',
|
||||
isAsc:'desc'
|
||||
}).then(obj => {
|
||||
let data = obj.rows
|
||||
let data = obj.data.result
|
||||
data.filter(item=>{
|
||||
this.dataList.push(
|
||||
{
|
||||
id:item.noticeId,
|
||||
title: item.noticeTitle,
|
||||
date:item.createTime,
|
||||
content: item.remark,
|
||||
content: item.reMark,
|
||||
}
|
||||
)
|
||||
})
|
||||
|
||||
47
pages/notice/noticeDetail.vue
Normal file
47
pages/notice/noticeDetail.vue
Normal file
@@ -0,0 +1,47 @@
|
||||
<template>
|
||||
<view>
|
||||
<u-navbar :is-back="true" :title="title" :border-bottom="false"></u-navbar>
|
||||
<view class="u-content">
|
||||
<u-parse :html="content"
|
||||
:autosetTitle="true"
|
||||
:show-with-animation="true"
|
||||
:selectable="true"></u-parse>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
title:'资讯',
|
||||
content: ``
|
||||
}
|
||||
},
|
||||
onLoad(option) {
|
||||
let id = option.id
|
||||
let url = "/api/notice/getNotice/"+id;
|
||||
this.$u.get(url).then(res => {
|
||||
this.title = res.data.noticeTitle
|
||||
this.content = res.data.noticeContent
|
||||
});
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
page{
|
||||
background-color: #FFFFFF;
|
||||
}
|
||||
</style>
|
||||
<style lang="scss" scoped>
|
||||
.u-content{
|
||||
margin:0 10rpx;
|
||||
padding: 24rpx;
|
||||
font-size: 34rpx;
|
||||
color: $u-main-color;
|
||||
line-height: 1.8;
|
||||
white-space: pre-wrap !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user