app-rule.vue 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <template>
  2. <view class="app-rule">
  3. <view class="rule-title" v-if="is_title">
  4. {{title}}
  5. </view>
  6. <view class="rule-content">
  7. <app-rich-text
  8. :content="content">
  9. </app-rich-text>
  10. </view>
  11. </view>
  12. </template>
  13. <script>
  14. import appRichText from "../../basic-component/app-rich/parse";
  15. export default {
  16. name: "app-rule",
  17. props: {
  18. title: String,
  19. content: String,
  20. is_title: {
  21. type: Boolean,
  22. default: false
  23. }
  24. },
  25. components: {
  26. 'app-rich-text': appRichText
  27. },
  28. }
  29. </script>
  30. <style scoped lang="scss">
  31. .app-rule {
  32. padding: #{30upx};
  33. font-size: #{28upx};
  34. position: absolute;
  35. min-height: 100%;
  36. width: 100%;
  37. background-color: #ffffff;
  38. }
  39. .rule-content {
  40. color: #353535;
  41. }
  42. .rule-title {
  43. margin-bottom: #{30upx};
  44. color: #000000;
  45. }
  46. </style>