unshareable.vue 562 B

123456789101112131415161718192021222324252627282930
  1. <template>
  2. <view>
  3. <page ref="list" />
  4. <view style="height: 30px;" />
  5. </view>
  6. </template>
  7. <script>
  8. import page from "./modules/page.vue";
  9. export default {
  10. components: { page },
  11. data() {
  12. return {
  13. }
  14. },
  15. onLoad(options) {
  16. if (options.id) {
  17. this.id = options.id;
  18. setTimeout(() => {
  19. this.$refs.list.getDetail(options.id).then(detail => {
  20. this.detail = detail;
  21. })
  22. }, 100)
  23. }
  24. }
  25. }
  26. </script>
  27. <style></style>