index.vue 488 B

1234567891011121314151617181920212223242526272829303132333435
  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 && e.type == '0') {
  19. uni.redirectTo({
  20. url: `/${e.route}`
  21. })
  22. } else {
  23. uni.navigateTo({
  24. url: `/${e.route}`
  25. })
  26. }
  27. }
  28. }
  29. }
  30. </script>
  31. <style lang="scss">
  32. </style>