rules.vue 806 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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: "rules",
  13. data() {
  14. return {
  15. rules: '',
  16. }
  17. },
  18. onLoad: function (options) {
  19. if (options.rules) {
  20. this.rules = options.rules;
  21. }
  22. }
  23. }
  24. </script>
  25. <style scoped lang="scss">
  26. .app-layout /deep/ .app-layout {
  27. background: #FFFFFF;
  28. min-height: 100vh;
  29. }
  30. .rule {
  31. padding: #{30rpx};
  32. .text {
  33. word-break: break-all;
  34. text-align: justify;
  35. }
  36. }
  37. </style>