收藏
回答

scroll-view里面嵌套scroll-view,有时候加载页面为白屏

框架类型 问题类型 API/组件名称 终端类型 操作系统 微信版本 基础库版本
小程序 Bug scroll-view 客户端 Android 6.6.7 2.1.1

scroll-view里面嵌套scroll-view,有时候加载页面为白屏

回答关注问题邀请回答
收藏

1 个回答

  • hexford~🐶
    hexford~🐶
    2018-07-02

    麻烦提供一下出现问题的机型和微信版本,并且给个相关的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html),我们定位下问题

    2018-07-02
    有用
    回复 3
    • 2018-07-03

      <!--轮播图  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>

           
      2018-07-03
      回复
    • hexford~🐶
      hexford~🐶
      2018-07-03回复

      你好,请以代码片段的方式提供,截取的一段代码也运行不了,无法测试

      2018-07-03
      回复
    • 2018-07-03回复hexford~🐶

      白屏显示就报了这个错:OnWebviewEvent:_DOMReady;WebviewId:14366141 not found,是什么原因

      2018-07-03
      回复
登录 后发表内容