82 lines
1.6 KiB
Vue
Executable File
82 lines
1.6 KiB
Vue
Executable File
<template>
|
||
<view class="page">
|
||
<view class="title">{{FName}}</view>
|
||
<view class="sub-title">
|
||
<text class="date">发稿日期:{{C_YMD}}</text>
|
||
</view>
|
||
<view class="img" :style="{backgroundImage: 'url(' + FImageBase64 + ')'}"></view>
|
||
<view class="content">
|
||
{{FContent}}
|
||
</view>
|
||
</view>
|
||
</template>
|
||
|
||
<script>
|
||
export default {
|
||
data() {
|
||
return {
|
||
detailInfo:[],
|
||
FName:'',
|
||
C_YMD:'',
|
||
FContent:'',
|
||
FImageBase64:''
|
||
}
|
||
},
|
||
computed: {},
|
||
|
||
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 lang="scss" scoped>
|
||
.page{
|
||
overflow-x: hidden;
|
||
}
|
||
.title{
|
||
// height: 100rpx;
|
||
// line-height: 100rpx;
|
||
width: calc(100% - 80rpx);
|
||
margin-left: 40rpx;
|
||
color: rgba(0, 0, 0, 1);
|
||
letter-spacing: 1px;
|
||
font-size: 20px;
|
||
font-weight: 400;
|
||
padding: 32rpx 0;
|
||
}
|
||
.sub-title{
|
||
height: 30rpx;
|
||
line-height: 30rpx;
|
||
margin-left: 40rpx;
|
||
color: rgba(120, 120, 120, 1);
|
||
font-size: 11px;
|
||
font-weight: 400;
|
||
}
|
||
.img{
|
||
height: 225px;
|
||
width: calc(100% - 80rpx);
|
||
margin-top: 40rpx;
|
||
margin-left: 40rpx;
|
||
background-image: url('../../../static/home/big_2.png');
|
||
background-repeat: no-repeat;
|
||
background-size: contain;
|
||
}
|
||
.content{
|
||
width: calc(100% - 80rpx);
|
||
margin-left: 40rpx;
|
||
color: rgba(56, 56, 56, 1);
|
||
letter-spacing: 1px;
|
||
font-size: 14px;
|
||
font-weight: 400;
|
||
}
|
||
</style>
|