|
|
@ -1,23 +1,17 @@ |
|
|
|
<template> |
|
|
|
<view class="postDetail"> |
|
|
|
<navbar |
|
|
|
leftClick |
|
|
|
@leftClick="$utils.navigateBack"/> |
|
|
|
|
|
|
|
<navbar leftClick @leftClick="$utils.navigateBack" /> |
|
|
|
|
|
|
|
<view class="swipe"> |
|
|
|
<uv-swiper |
|
|
|
:list="list" |
|
|
|
keyName="url" |
|
|
|
indicator |
|
|
|
height="320rpx"></uv-swiper> |
|
|
|
<uv-swiper :list="list" keyName="url" indicator height="320rpx"></uv-swiper> |
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
<view class="box"> |
|
|
|
|
|
|
|
|
|
|
|
<view class="title"> |
|
|
|
{{ item.title }} |
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
<view class="createBy"> |
|
|
|
<view class=""> |
|
|
|
发布人:{{ item.createBy }} |
|
|
@ -26,107 +20,89 @@ |
|
|
|
发布时间:{{ item.createTime }} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<view class="controls"> |
|
|
|
<view class=""> |
|
|
|
<uv-icon |
|
|
|
size="35rpx" |
|
|
|
name="bell"></uv-icon> |
|
|
|
举报 |
|
|
|
</view> |
|
|
|
<view class=""> |
|
|
|
<uv-icon |
|
|
|
size="35rpx" |
|
|
|
name="thumb-up"></uv-icon> |
|
|
|
点赞 |
|
|
|
</view> |
|
|
|
<view class=""> |
|
|
|
<uv-icon |
|
|
|
size="35rpx" |
|
|
|
name="share"></uv-icon> |
|
|
|
分享 |
|
|
|
</view> |
|
|
|
<view class=""> |
|
|
|
<uv-icon |
|
|
|
size="35rpx" |
|
|
|
name="thumb-down"></uv-icon> |
|
|
|
踩 |
|
|
|
</view> |
|
|
|
<contentControls/> |
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<view class="content"> |
|
|
|
<uv-parse :content="item.content"></uv-parse> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
</view> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import contentControls from '@/components/content/contentControls.vue' |
|
|
|
export default { |
|
|
|
components : { |
|
|
|
contentControls |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
list : [ |
|
|
|
{ |
|
|
|
url : '/static/image/index/123123.png' |
|
|
|
list: [{ |
|
|
|
url: '/static/image/index/123123.png' |
|
|
|
}, |
|
|
|
{ |
|
|
|
url : '/static/image/index/a1.png' |
|
|
|
url: '/static/image/index/a1.png' |
|
|
|
}, |
|
|
|
], |
|
|
|
item : { |
|
|
|
title : "这是一条动态", |
|
|
|
createTime : '2024-08-22 09:00:00', |
|
|
|
createBy : "小飞", |
|
|
|
content : '这是一条动态这是一条动态这是一条动态这是一条动态这是一条动态这是一条动态这是一条动态这是一条动态这是一条动态这是一条动态这是一条动态', |
|
|
|
item: { |
|
|
|
title: "这是一条动态", |
|
|
|
createTime: '2024-08-22 09:00:00', |
|
|
|
createBy: "小飞", |
|
|
|
content: '这是一条动态这是一条动态这是一条动态这是一条动态这是一条动态这是一条动态这是一条动态这是一条动态这是一条动态这是一条动态这是一条动态', |
|
|
|
}, |
|
|
|
} |
|
|
|
}, |
|
|
|
onLoad(options) { |
|
|
|
// this.$route.query的参数 |
|
|
|
console.log(options) |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
.postDetail{ |
|
|
|
.box{ |
|
|
|
padding: 20rpx; |
|
|
|
.title{ |
|
|
|
font-size: 30rpx; |
|
|
|
font-weight: 600; |
|
|
|
color: #000; |
|
|
|
} |
|
|
|
.createBy{ |
|
|
|
display: flex; |
|
|
|
margin-top: auto; |
|
|
|
margin-bottom: 10rpx; |
|
|
|
font-size: 26rpx; |
|
|
|
margin-top: 20rpx; |
|
|
|
color: #555; |
|
|
|
&>view{ |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
justify-content: center; |
|
|
|
padding-right: 20rpx; |
|
|
|
.postDetail { |
|
|
|
.box { |
|
|
|
padding: 20rpx; |
|
|
|
|
|
|
|
.title { |
|
|
|
font-size: 30rpx; |
|
|
|
font-weight: 600; |
|
|
|
color: #000; |
|
|
|
} |
|
|
|
} |
|
|
|
.controls{ |
|
|
|
display: flex; |
|
|
|
margin-top: 30rpx; |
|
|
|
&>view{ |
|
|
|
|
|
|
|
.createBy { |
|
|
|
display: flex; |
|
|
|
justify-content: center; |
|
|
|
align-items: center; |
|
|
|
margin-right: 40rpx; |
|
|
|
margin-top: auto; |
|
|
|
margin-bottom: 10rpx; |
|
|
|
font-size: 26rpx; |
|
|
|
margin-top: 20rpx; |
|
|
|
color: #555; |
|
|
|
|
|
|
|
&>view { |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
justify-content: center; |
|
|
|
padding-right: 20rpx; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.controls { |
|
|
|
margin-top: 30rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.content { |
|
|
|
margin-top: 30rpx; |
|
|
|
color: #777; |
|
|
|
} |
|
|
|
} |
|
|
|
.content{ |
|
|
|
margin-top: 30rpx; |
|
|
|
color: #777; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
</style> |
|
|
|
</style> |