修改分包页面

This commit is contained in:
wangxiaowei
2025-08-27 16:32:11 +08:00
parent c963ad1ca2
commit 03745bb676
17 changed files with 442 additions and 148 deletions

View File

@ -29,7 +29,7 @@ function gotoVueQuery() {
}
function gotoSubPage() {
uni.navigateTo({
url: '/pages-sub/demo/index',
url: '/bundle/demo/index',
})
}
// uniLayout里面的变量通过 expose 暴露出来后可以在 onReady 钩子获取到onLoad 钩子不行)

View File

@ -107,13 +107,13 @@
</template>
<script lang="ts" setup>
import { ref, inject } from 'vue'
import { ref } from 'vue'
import { getNavBarHeight } from '@/utils/index'
import { onPageScroll, onReachBottom } from '@dcloudio/uni-app'
import useMescroll from "@/uni_modules/mescroll-uni/hooks/useMescroll.js";
let navbarHeight = ref<number>(0)
let OSS = inject('OSS')
const navbarHeight = ref<number>(0)
const OSS = inject('OSS')
const swiperList = ref<string[]>([
`${OSS}images/banner1.png`,
`${OSS}images/banner1.png`,
@ -179,7 +179,7 @@
handleToReserveRoom: (id: number = 1) => {
// 跳转到预约茶室页面
uni.navigateTo({
url: `/pages-sub/reserve-room/room?id=${id}`
url: `/bundle/reserve-room/room?id=${id}`
})
}
}