useragreement.vue 794 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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/agreement', {
  25. custom: {
  26. auth: true
  27. }
  28. }).then((res) => {
  29. console.log(res)
  30. console.log(JSON.stringify(res))
  31. this.content =res
  32. }).catch((err) => {
  33. console.log(err)
  34. })
  35. },
  36. }
  37. }
  38. </script>
  39. <style>
  40. </style>