12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <template>
- <view class="center">
- <view class="news_info">
- <view class="text">{{dataInfo.newsTitle}}</view>
- <view style='white-space: pre-wrap;' class="info">{{dataInfo.newsContent}}</view>
- </view>
- </view>
- </template>
- <script>
- export default{
- data(){
- return{
- dataInfo:{},
- }
- },
- onLoad(options) {
- this.dataInfo = JSON.parse(options._obj)
- uni.setNavigationBarTitle({
- title: this.dataInfo.newsType
- })
- },
- methods:{
-
- }
- }
- </script>
- <style lang="scss">
- .center{
- padding:30rpx;
- height: calc(100vh - 11.2vh);
- background: #F5F6FA ;
- .text{
- font-size: 18px;
- font-weight: 600;
- }
- .info{
- font-size: 14px;
- color: #999999;
- margin-top: 20rpx;
- }
- .news_info{
- background: #FFFFFF;
- padding: 20rpx 30rpx;
- border-radius: 20rpx;
- }
- }
- </style>
|