index.vue 566 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <template>
  2. <view class="content">
  3. <view class="one">
  4. 首页
  5. </view>
  6. <view class="two">
  7. <button @tap="toPath('/pagesCommon/test/index')" size="mini">分包一测试页面</button>
  8. <button @tap="toPath('/pagesHome/home/index')" size="mini">系统首页</button>
  9. </view>
  10. </view>
  11. </template>
  12. <script>
  13. export default {
  14. data() {
  15. return {
  16. }
  17. },
  18. onLoad() {
  19. const that = this;
  20. },
  21. methods: {
  22. toPath(e) {
  23. uni.navigateTo({
  24. url: e
  25. })
  26. }
  27. }
  28. }
  29. </script>
  30. <style lang="scss">
  31. .content {
  32. text-align: center;
  33. }
  34. </style>