privacy.vue 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <template>
  2. <page-layout>
  3. <nav-bar title=" " transparent></nav-bar>
  4. <view class="body">
  5. <text class="title">
  6. {{ privacyInfo.title }}
  7. </text>
  8. <text class="content">
  9. {{ privacyInfo.content }}
  10. </text>
  11. <text class="title">
  12. {{ lawInfo.title }}
  13. </text>
  14. <text class="content">
  15. {{ lawInfo.content }}
  16. </text>
  17. </view>
  18. </page-layout>
  19. </template>
  20. <script>
  21. import NavBar from '@/components/layout/nav-bar'
  22. import { getClauseInfo } from '@/api/exhibitor'
  23. import PageLayout from "@/components/layout/page-layout";
  24. export default {
  25. data() {
  26. return {
  27. privacyInfo: {},
  28. lawInfo: {}
  29. }
  30. },
  31. components: {
  32. PageLayout,
  33. NavBar
  34. },
  35. mounted() {
  36. this.getClauseData()
  37. },
  38. methods: {
  39. getClauseData() {
  40. getClauseInfo({ key: 'privacy_policy' }).then(res => {
  41. this.privacyInfo = res.data
  42. })
  43. getClauseInfo({ key: 'legal_notice' }).then(res => {
  44. this.lawInfo = res.data
  45. })
  46. }
  47. }
  48. }
  49. </script>
  50. <style lang="scss">
  51. .body {
  52. padding: 50rpx;
  53. }
  54. .title {
  55. font-size: $fontSize4;
  56. color: $fontTitleColor;
  57. display: block;
  58. font-weight: bold;
  59. }
  60. .content {
  61. font-size: $fontSize2;
  62. color: $fontColor;
  63. line-height: 1.9;
  64. display: block;
  65. margin-top: 32rpx;
  66. margin-bottom: 42rpx;
  67. }
  68. </style>