普兆健康管家前端代码仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
852 B

  1. <template>
  2. <view class="page__view">
  3. <navbar :title="title" leftClick @leftClick="$utils.navigateBack" color="#191919" bgColor="#FFFFFF" />
  4. <view class="main">
  5. <uv-parse :content="content"></uv-parse>
  6. </view>
  7. </view>
  8. </template>
  9. <script>
  10. import { mapState } from 'vuex'
  11. export default {
  12. computed: {
  13. ...mapState(['configList']),
  14. },
  15. data() {
  16. return {
  17. title : '',
  18. content : '',
  19. }
  20. },
  21. onLoad(arg) {
  22. const { key, title } = arg
  23. this.title = title
  24. this.content = this.configList[key]
  25. },
  26. }
  27. </script>
  28. <style lang="scss" scoped>
  29. .page__view {
  30. width: 100vw;
  31. min-height: 100vh;
  32. background-color: $uni-bg-color;
  33. position: relative;
  34. /deep/ .nav-bar__view {
  35. position: fixed;
  36. top: 0;
  37. left: 0;
  38. }
  39. }
  40. .main {
  41. padding-top: calc(var(--status-bar-height) + 120rpx);
  42. }
  43. </style>