myList.vue 636 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <template>
  2. <view>
  3. <list pageName="myList" ref="listRef"></list>
  4. </view>
  5. </template>
  6. <script>
  7. import list from './list.vue'
  8. export default {
  9. components: {
  10. list
  11. },
  12. mixins: [],
  13. data() {
  14. return {
  15. }
  16. },
  17. computed: {
  18. },
  19. created() {
  20. uni.$off('successInit')
  21. uni.$on('successInit', (data) => {
  22. this.$nextTick(() => {
  23. this.$refs.listRef.successInit()
  24. })
  25. })
  26. },
  27. onUnload() {
  28. uni.$off('successInit')
  29. },
  30. onLoad() {
  31. this.$nextTick(() => {
  32. this.$refs.listRef.getList()
  33. })
  34. },
  35. onShow() {
  36. },
  37. methods: {
  38. }
  39. }
  40. </script>
  41. <style lang="scss" scoped>
  42. </style>