pages.json
{
"path": "pages/main/match",
"style": {
"navigationStyle": "custom",
"backgroundColor": "#000000",
"app-plus": {
"popGesture": "none",
"subNVues": [{
"popGesture": "none",
"id": "subnvue_match_filter",
"path": "pages/main/subnvue/match-pop-filter",
"type": "popup",
"style": {
"background": "transparent"
}
}]
}
}
},
subbvue 代码
<template>
<view class="match-pop-filter">
<view class="pop-view-filter">
</view>
</view>
</template>
<script>
import MatchPopFilterMixin from '@/pages/main/subNVue/match-pop-filter.mixin.js';
export default {
mixins: [MatchPopFilterMixin],
}
</script>
<style lang="scss">
.match-pop-filter {
justify-content: center;
align-items: center;
}
.pop-view-filter {
width: 20rpx;
height: 20rpx;
background-color: #18BC37;
}
</style>
genda_0927 (作者)
"popGesture": "none",
这个属性我已经添加了
2021-12-27 16:02
DCloud_iOS_XHY
回复 genda_0927: 上传一个能复习问题的简易工程吧
2021-12-27 17:17
genda_0927 (作者)
回复 DCloud_iOS_XHY: 见下方评论附件
2021-12-27 17:49
溅兔
找到解决方案了,动态设置禁用侧滑返回,plus.webview.currentWebview().setStyle({
'popGesture': 'none'
});
2022-02-23 16:45