88 lines
1.7 KiB
Vue
Executable File
88 lines
1.7 KiB
Vue
Executable File
<template>
|
||
<view class="page">
|
||
<view class="title">{{FName}}</view>
|
||
<view class="sub-title">
|
||
<!-- <text class="editer">撰稿人:OPSOFT</text> -->
|
||
<text class="date">发稿日期:{{C_YMD.split(" ")[0]}}</text>
|
||
</view>
|
||
<view class="img">
|
||
<image class="img" :src="'data:image/jpeg;base64,'+FImageBase64"></image>
|
||
</view>
|
||
<view class="content">{{FContent}}</view>
|
||
</view>
|
||
</template>
|
||
|
||
<script>
|
||
import {
|
||
mapState
|
||
} from 'vuex';
|
||
import errorUtil from '@/common/errorutil.js';
|
||
export default {
|
||
data() {
|
||
return {
|
||
detailInfo:[],
|
||
FName:'',
|
||
C_YMD:'',
|
||
FContent:'',
|
||
FImageBase64:''
|
||
}
|
||
},
|
||
computed: {
|
||
...mapState(['hasLogin', 'userInfo'])
|
||
},
|
||
|
||
onLoad() {
|
||
this.detailInfo = uni.getStorageSync('newsDetail');
|
||
this.FName = this.detailInfo.FName;
|
||
this.C_YMD = this.detailInfo.C_YMD;
|
||
this.FContent = this.detailInfo.FContent;
|
||
this.FImageBase64 = this.detailInfo.FImageBase64;
|
||
},
|
||
|
||
methods: {
|
||
|
||
}
|
||
}
|
||
</script>
|
||
|
||
<style>
|
||
.page{
|
||
overflow-x: hidden;
|
||
}
|
||
.title{
|
||
height: 100rpx;
|
||
line-height: 100rpx;
|
||
width: 100%;
|
||
font-size: 32rpx;
|
||
font-weight: bold;
|
||
color: #000000;
|
||
text-align: center;
|
||
}
|
||
.sub-title{
|
||
height: 60rpx;
|
||
line-height: 60rpx;
|
||
width: 100%;
|
||
font-size: 28rpx;
|
||
color: #323232;
|
||
text-align: center;
|
||
}
|
||
.img{
|
||
height: 200rpx;
|
||
width: 200rpx;
|
||
/* border: 1px solid #007AFF; */
|
||
border-radius: 10rpx;
|
||
margin: auto;
|
||
}
|
||
.content{
|
||
width: 90%;
|
||
/* height: 300rpx; */
|
||
margin: auto;
|
||
font-size: 28rpx;
|
||
color: #323232;
|
||
/* border: #000000 1px solid; */
|
||
padding: 20rpx 20rpx;
|
||
white-space:pre-wrap;
|
||
word-wrap:break-word;
|
||
}
|
||
</style>
|