privacypolicy.vue 728 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <template>
  2. <view style="padding: 20rpx;">
  3. <!-- <text style="display: block;text-align: center;">用户隐私协议</text> -->
  4. <view style="padding: 20rpx;overflow: auto; word-break: break-word;">
  5. <!-- <u-parse :content="content"></u-parse> -->
  6. <rich-text :nodes="content"></rich-text>
  7. </view>
  8. </view>
  9. </template>
  10. <script>
  11. let that
  12. export default {
  13. data() {
  14. return {
  15. content:''
  16. }
  17. },
  18. onLoad(o) {
  19. that = this
  20. this.init()
  21. },
  22. methods: {
  23. init() {
  24. uni.$u.http.get('/api/Setting/privacy', {
  25. custom: {
  26. auth: true
  27. }
  28. }).then((res) => {
  29. this.content =res
  30. }).catch((err) => {
  31. console.log(err)
  32. })
  33. },
  34. }
  35. }
  36. </script>
  37. <style>
  38. </style>