agree.vue 518 B

123456789101112131415161718192021222324252627282930313233
  1. <template>
  2. <view class="content">
  3. <rich-text :nodes="info.agree"></rich-text>
  4. </view>
  5. </template>
  6. <script>
  7. import helper from '../../common/helper.js';
  8. import api from '../../common/api.js';
  9. export default {
  10. data() {
  11. return {
  12. info: {}
  13. };
  14. },
  15. onLoad() {
  16. this.getInfo();
  17. },
  18. methods: {
  19. async getInfo() {
  20. let res = await api.getSetting();
  21. this.info = res.data;
  22. }
  23. }
  24. };
  25. </script>
  26. <style scoped="">
  27. .content{
  28. padding: 20upx;
  29. font-size: 26upx;
  30. }
  31. </style>