index.vue 435 B

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