index.vue 713 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <template>
  2. <view>
  3. <uni-card class="view-title" :title="title">
  4. <text class="uni-body view-content">{{ content }}</text>
  5. </uni-card>
  6. </view>
  7. </template>
  8. <script>
  9. export default {
  10. data() {
  11. return {
  12. title: '',
  13. content: ''
  14. }
  15. },
  16. onLoad(options) {
  17. this.title = options.title
  18. this.content = options.content
  19. uni.setNavigationBarTitle({
  20. title: options.title
  21. })
  22. }
  23. }
  24. </script>
  25. <style scoped>
  26. page {
  27. background-color: #ffffff;
  28. }
  29. .view-title {
  30. font-weight: bold;
  31. }
  32. .view-content {
  33. font-size: 26rpx;
  34. padding: 12px 5px 0;
  35. color: #333;
  36. line-height: 24px;
  37. font-weight: normal;
  38. }
  39. </style>