newsSee.vue 814 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <template>
  2. <view class="center">
  3. <view class="news_info">
  4. <view class="text">{{dataInfo.newsTitle}}</view>
  5. <view style='white-space: pre-wrap;' class="info">{{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 - 11.2vh);
  30. background: #F5F6FA ;
  31. .text{
  32. font-size: 18px;
  33. font-weight: 600;
  34. }
  35. .info{
  36. font-size: 14px;
  37. color: #999999;
  38. margin-top: 20rpx;
  39. }
  40. .news_info{
  41. background: #FFFFFF;
  42. padding: 20rpx 30rpx;
  43. border-radius: 20rpx;
  44. }
  45. }
  46. </style>