12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- <template>
- <view class="news_detail">
- <view class="title">
- {{detail.title}}
-
- </view>
- <view class="time">
- {{detail.created_at}}
- </view>
- <!-- <view class="img">
- <image :src="detail.cover_resource ? detail.cover_resource.url :'../../static/images/active_top.png'"></image>
- </view> -->
- <view class="top">
- <u-parse :html="detail.body"></u-parse>
- </view>
- </view>
- </template>
- <script>
- export default {
- data(){
- return{
- detail:''
- }
- },
- onShow() {
- console.log('pppppppppppp--------------------')
- },
- onLoad(options) {
- console.log(options,'jiezhumeiyou')
- let id=options.id
- this.getDetail(id)
-
- },
- methods:{
-
- getDetail(id){
- this.$u.get('/page/news/' + id).then(res=>{
- console.log(res,'ppppp')
- this.detail=res.data
- })
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- page{
- padding: 16px 0;
- background-color: #fff;
- }
- .news_detail{
- padding: 16px;
- .title{
- font-size: 17px;
- font-weight: 500;
- line-height: 20px;
- color: #282828;
- line-height: 22px;
- opacity: 1;
-
- }
- .time{
- margin-top: 15px;
- font-weight: 400;
- line-height: 9px;
- font-size: 12px;
- color: #A2A2A2;
- opacity: 1;
- }
- .img{
- height: 133px;
- overflow: hidden;
- border-radius: 10px;
- margin-top: 20px;
- image{
- width: 100%;
- }
- }
- .top{
- margin-top: 20px;
- text-align: justify;
- }
- }
- </style>
|