PrivacyPolicy.vue 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <template>
  2. <view class="Privacy">
  3. <view class="content">
  4. <u-parse :content="content"></u-parse>
  5. </view>
  6. </view>
  7. </template>
  8. <script>
  9. export default {
  10. data() {
  11. return {
  12. content: '',
  13. }
  14. },
  15. onLoad() {
  16. let obj = this.$store.getters.allset.privacy
  17. this.content = obj.value.privacy
  18. },
  19. methods: {
  20. // 获取隐私协议
  21. // getPrivacy() {
  22. // this.$loading();
  23. // this.$api.document.privacy().then(res => {
  24. // console.log(res, "隐私协议")
  25. // if (res.code == 0) {
  26. // this.content = res.data.value.privacy
  27. // };
  28. // this.$hideLoading();
  29. // }).catch(e => {
  30. // console.log(e)
  31. // this.$hideLoading()
  32. // })
  33. // }
  34. }
  35. }
  36. </script>
  37. <style lang="scss" scoped>
  38. $pageColor:#F9F9F9;
  39. $bgColor:#FFFFFF;
  40. .Privacy {
  41. height: 100%;
  42. background: $bgColor;
  43. }
  44. .title {
  45. height: 82rpx;
  46. width: 750rpx;
  47. display: flex;
  48. align-items: center;
  49. justify-content: center;
  50. text {
  51. font-size: 32rpx;
  52. font-family: PingFang-SC-Bold, PingFang-SC;
  53. font-weight: bold;
  54. color: #333333;
  55. }
  56. }
  57. .content {
  58. padding: 0 30rpx;
  59. view {
  60. margin-bottom: 24rpx;
  61. text {
  62. font-size: 28rpx;
  63. font-family: PingFang-SC-Bold, PingFang-SC;
  64. font-weight: bold;
  65. color: #333333;
  66. }
  67. }
  68. }
  69. </style>