my-page.vue 682 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <template>
  2. <view>
  3. <scroll-view :scroll-y="modalName==null" class="page" :class="modalName!=null?'show':''">
  4. <cu-custom bgColor="bg-gradual-pink" :isBack="true">
  5. <block slot="backText">{{back}}</block>
  6. <block slot="content">{{title}}</block>
  7. </cu-custom>
  8. <slot></slot>
  9. </scroll-view>
  10. </view>
  11. </template>
  12. <script>
  13. export default {
  14. name: 'MyPage',
  15. props: {
  16. title: {
  17. type: String,
  18. default: '标题'
  19. },
  20. back: {
  21. type: String,
  22. default: '返回'
  23. },
  24. modalName: {
  25. type: String,
  26. default: null
  27. },
  28. },
  29. watch: {
  30. },
  31. computed: {
  32. },
  33. data() {
  34. return {
  35. }
  36. },
  37. methods: {}
  38. }
  39. </script>
  40. <style>
  41. </style>