newsSee.vue 818 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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 - 4vh);
  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>