newsSee.vue 692 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <template>
  2. <view class="center">
  3. <view class="news_info">
  4. <!-- <view class="">{{dataInfo.newsTitle}}</view> -->
  5. <view style='white-space: pre-wrap;' class="">{{dataInfo.newsContent}}</view>
  6. </view>
  7. </view>
  8. </template>
  9. <script>
  10. export default{
  11. data(){
  12. return{
  13. dataInfo:{},
  14. }
  15. },
  16. onLoad(options) {
  17. this.dataInfo = JSON.parse(options._obj)
  18. uni.setNavigationBarTitle({
  19. title: this.dataInfo.newsType
  20. })
  21. },
  22. methods:{
  23. }
  24. }
  25. </script>
  26. <style lang="scss">
  27. .center{
  28. padding:30rpx;
  29. height: calc(100vh - 4vh);
  30. background: #F5F6FA ;
  31. .news_info{
  32. background: #FFFFFF;
  33. padding: 20rpx 30rpx;
  34. border-radius: 20rpx;
  35. }
  36. }
  37. </style>