index.vue 595 B

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