index.vue 388 B

1234567891011121314151617181920212223242526272829
  1. <template>
  2. <mobile-frame :frameStyle="frameStyle" @toPath="toPath">
  3. 首页
  4. </mobile-frame>
  5. </template>
  6. <script>
  7. export default {
  8. data() {
  9. return {
  10. frameStyle: {
  11. useBar: true
  12. },
  13. };
  14. },
  15. onShow: function() {},
  16. methods: {
  17. toPath(e) {
  18. if (e && e.route) uni.redirectTo({
  19. url: `/${e.route}`
  20. })
  21. }
  22. }
  23. }
  24. </script>
  25. <style lang="scss">
  26. </style>