rule.vue 988 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <template>
  2. <view class="app-layout">
  3. <app-layout>
  4. <view class="rule">
  5. <text class="text" space="nbsp" v-text="rules"></text>
  6. </view>
  7. </app-layout>
  8. </view>
  9. </template>
  10. <script>
  11. export default {
  12. name: "rule",
  13. data() {
  14. return {
  15. rules: '',
  16. }
  17. },
  18. onLoad: function (options) {
  19. const self = this;
  20. self.$request({
  21. url: self.$api.scratch.setting,
  22. }).then(info => {
  23. if (info.code === 0) {
  24. self.rules = info.data.setting.rule;
  25. }
  26. });
  27. }
  28. }
  29. </script>
  30. <style scoped lang="scss">
  31. .app-layout /deep/ .app-layout {
  32. background-color: #FFFFFF;
  33. min-height: 100vh;
  34. }
  35. .rule {
  36. padding: #{30rpx};
  37. .text {
  38. word-break: break-all;
  39. text-align: justify;
  40. }
  41. }
  42. </style>