PrivacyPolicy.vue 1.2 KB

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