index.vue 795 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <script lang="ts" setup>
  2. // code here
  3. import RequestComp from './components/request.vue'
  4. definePage({
  5. style: {
  6. navigationBarTitleText: '分包页面',
  7. },
  8. })
  9. function gotoScroll() {
  10. uni.navigateTo({
  11. url: '/pages-sub/demo/scroll',
  12. })
  13. }
  14. </script>
  15. <template>
  16. <view class="text-center">
  17. <view class="m-8">
  18. http://localhost:9000/#/pages-sub/demo/index
  19. </view>
  20. <view class="my-4 text-green-500">
  21. 分包页面demo
  22. </view>
  23. <view class="text-blue-500">
  24. 分包页面里面的components示例
  25. </view>
  26. <button class="my-4" type="primary" size="mini" @click="gotoScroll">
  27. 跳转到上拉刷新和下拉加载更多
  28. </button>
  29. <view>
  30. <RequestComp />
  31. </view>
  32. </view>
  33. </template>
  34. <style lang="scss" scoped>
  35. //
  36. </style>