小程序
小游戏
企业微信
微信支付
扫描小程序码分享
scroll-view里面嵌套scroll-view,有时候加载页面为白屏
1 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
麻烦提供一下出现问题的机型和微信版本,并且给个相关的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html),我们定位下问题
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
<!--轮播图 overflow:scroll;-->
<view>
<scroll-view scroll-y="true" style="height:100vh;width:{{winWidth}}px;" bindscroll="scroll" scroll-top="{{scrollTop}}" bindscrolltoupper="onPullDownRefresh">
<!--导航 -->
<view class='listbox'>
<view style='border-bottom: 2rpx solid #eeeeee;'>
<view class="swiper-tab">
<view class="swiper-tab-item {{currentTab==0 ? 'on' : ''}}" data-current="0" bindtap="swichNav">我要租房</view>
<view class="swiper-tab-item {{currentTab==1 ? 'on' : ''}}" data-current="1" bindtap="swichNav">我要买房</view>
<view class="swiper-tab-item {{currentTab==2 ? 'on' : ''}}" data-current="2" bindtap="swichNav">需求列表</view>
</view>
<!--内容 -->
<swiper current="{{currentTab}}" class="swiper-box" duration="300" bindchange="bindChange" style="height:{{winHeight-50}}px">
<!--style="height:{{winHeight}}px" payedList-->
<swiper-item>
<!-- bindscrolltolower="lower" -->
<scroll-view scroll-y="{{showScroll}}" style="height: 100%;" bindscrolltolower="scrollToLower">
</scroll-view>
<!--我要租房 -->
<!--payedList -->
</swiper-item>
<scroll-view scroll-y="{{showScroll}}" style="height: 100%;" bindscrolltolower="scrollSellLower">
<!--需求列表- -->
<scroll-view scroll-y="{{showScroll}}" style="height: 100%;" bindscrolltolower="scrollDemandToLower">
</swiper>
你好,请以代码片段的方式提供,截取的一段代码也运行不了,无法测试
白屏显示就报了这个错:OnWebviewEvent:_DOMReady;WebviewId:14366141 not found,是什么原因
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
麻烦提供一下出现问题的机型和微信版本,并且给个相关的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html),我们定位下问题
<!--轮播图 overflow:scroll;-->
<view>
<scroll-view scroll-y="true" style="height:100vh;width:{{winWidth}}px;" bindscroll="scroll" scroll-top="{{scrollTop}}" bindscrolltoupper="onPullDownRefresh">
<!--导航 -->
<view class='listbox'>
<view style='border-bottom: 2rpx solid #eeeeee;'>
<view class="swiper-tab">
<view class="swiper-tab-item {{currentTab==0 ? 'on' : ''}}" data-current="0" bindtap="swichNav">我要租房</view>
<view class="swiper-tab-item {{currentTab==1 ? 'on' : ''}}" data-current="1" bindtap="swichNav">我要买房</view>
<view class="swiper-tab-item {{currentTab==2 ? 'on' : ''}}" data-current="2" bindtap="swichNav">需求列表</view>
</view>
</view>
<!--内容 -->
<swiper current="{{currentTab}}" class="swiper-box" duration="300" bindchange="bindChange" style="height:{{winHeight-50}}px">
<!--style="height:{{winHeight}}px" payedList-->
<swiper-item>
<!-- bindscrolltolower="lower" -->
<scroll-view scroll-y="{{showScroll}}" style="height: 100%;" bindscrolltolower="scrollToLower">
<view>
</view>
</view>
</scroll-view>
<!--我要租房 -->
<!--payedList -->
</swiper-item>
<swiper-item>
<scroll-view scroll-y="{{showScroll}}" style="height: 100%;" bindscrolltolower="scrollSellLower">
<view>
</view>
</scroll-view>
</swiper-item>
<!--需求列表- -->
<swiper-item>
<scroll-view scroll-y="{{showScroll}}" style="height: 100%;" bindscrolltolower="scrollDemandToLower">
<view>
</view>
</scroll-view>
</swiper-item>
</swiper>
</view>
</scroll-view>
</view>
你好,请以代码片段的方式提供,截取的一段代码也运行不了,无法测试
白屏显示就报了这个错:OnWebviewEvent:_DOMReady;WebviewId:14366141 not found,是什么原因