普兆健康管家前端代码仓库
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.

81 lines
1.3 KiB

  1. <template>
  2. <view class="page__view">
  3. <navbar leftClick @leftClick="$utils.navigateBack" color="#191919" bgColor="#FFFFFF" />
  4. <view class="main">
  5. <view class="title" v-if="detail.title">{{ detail.title }}</view>
  6. <view class="title-sub" v-if="detail.subTitle">{{ detail.subTitle }}</view>
  7. <view class="content">
  8. <uv-parse :content="detail.content"></uv-parse>
  9. </view>
  10. </view>
  11. </view>
  12. </template>
  13. <script>
  14. import { mapState } from 'vuex'
  15. export default {
  16. computed: {
  17. ...mapState(['configList']),
  18. },
  19. data() {
  20. return {
  21. detail: {},
  22. }
  23. },
  24. onLoad(arg) {
  25. const { id } = arg
  26. this.getData(id)
  27. },
  28. methods: {
  29. async getData(id) {
  30. try {
  31. this.detail = await this.$fetch('getAboutDetail', { id })
  32. } catch (err) {
  33. }
  34. },
  35. },
  36. }
  37. </script>
  38. <style lang="scss" scoped>
  39. .page__view {
  40. width: 100vw;
  41. min-height: 100vh;
  42. background-color: $uni-bg-color;
  43. position: relative;
  44. /deep/ .nav-bar__view {
  45. position: fixed;
  46. top: 0;
  47. left: 0;
  48. }
  49. }
  50. .main {
  51. padding: calc(var(--status-bar-height) + 120rpx) 16rpx 16rpx 16rpx;
  52. }
  53. .title {
  54. font-size: 64rpx;
  55. font-weight: 700;
  56. line-height: 1.4;
  57. }
  58. .title-sub {
  59. font-size: 48rpx;
  60. font-weight: 500;
  61. line-height: 1.4;
  62. }
  63. .content {
  64. margin-top: 24rpx;
  65. }
  66. </style>