创建一个新页面classify
<template>
<view class="">
<text>我是classfiy</text>
</view>
</template>
<script setup>
</script>
<style lang="scss" scoped>
</style>
调整pages.json,设置为运行进入就是classify
{
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
{
"path" : "pages/classsify/classsify",
"style" :
{
"navigationBarTitleText" : "分类页面",
"navigationBarBackgroundColor": "#456783",
"enablePullDownRefresh": false
}
},
{
"path": "pages/index/index",
"style": {
"navigationBarTitleText": "uni-app"
}
}
],
"globalStyle": {
"navigationBarTextStyle": "white",
"navigationBarTitleText": "hello",
"navigationBarBackgroundColor": "#2b9939",
"backgroundColor": "#ff5500",
"onReachBottomDistance":50,
"enablePullDownRefresh": true
// "navigationStyle": "custom"
},
"uniIdRouter": {}
}
在pages.json中设置了全局下拉刷新,如何让某个页面设置无下拉刷新,在pages数组中单独配置就可以
{
"path" : "pages/classsify/classsify",
"style" :
{
"navigationBarTitleText" : "分类页面",
"navigationBarBackgroundColor": "#456783",
"enablePullDownRefresh": false
}
},
说明:请注意是否需要加逗号
2328

被折叠的 条评论
为什么被折叠?



