收藏
回答

使用scroll-view scorll-x=“true” 问题

问题类型 API/组件名称 AppID 操作系统 微信版本 基础库版本
Bug scroll-view wx3a0b2948c86ce542 Android 6.7.3 2.4.1

- 当前 Bug 的表现(可附上截图)


如果将小程序放置到桌面或一段时间不用后,页面就不能完全展现(只显示几列 其他列就显示不出来了,同事也无法滑动)。



- 预期表现


可以查看所有列


- 复现路径



- 提供一个最简复现 Demo



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

2 个回答

  • 2018-12-01

    华为荣耀青春版9或大部分andriod手机 苹果没有问题

    代码片段

    <import src="/common/head.wxml" />

    <import src="/common/foot.wxml" />

    <scroll-view scroll-x="true" style="width:2000px;">

    <view class="table">

    <view class="tr bg-w">

    <view class="th">过磅单号</view>

    <view class="th">毛重</view>

    <view class="th">皮重</view>

    <view class="th">净重</view>

    <view class="th">发货毛重</view>

    <view class="th">发货皮重</view>

    <view class="th">发货净重</view>

    <view class="th">净重差值</view>

    <view class="th">物料规格</view>

    <view class="th">存放地点</view>

    <view class="th">车号</view>

    <view class="th">一检时间</view>

    <view class="th">二检时间</view>

    <view class="th">一检磅号</view>

    <view class="th">二检磅号</view>

    <view class="th">承运单位</view>

    <view class="th">收料人</view>

    <view class="th">卸货方式</view>

    <view class="th">备注</view>


    </view>

    <block wx:for="{{newlist}}" wx:key="{{wl}}">

    <view class="tr bg-g" wx:if="{{index % 2 == 0}}">

    <view class="td">{{item.wl}}</view>


    <view class="td">{{item.mz}}</view>

    <view class="td">{{item.pz}}</view>

    <view class="td">{{item.jz}}</view>

    <view class="td">{{item.fhmz}}</view>

    <view class="td">{{item.fhpz}}</view>

    <view class="td">{{item.fhjz}}</view>

    <view class="td">{{item.jzcz}}</view>

    <view class="td">{{item.wlgg}}</view>

    <view class="td">{{item.cfdd}}</view>

    <view class="td">{{item.ch}}</view>

    <view class="td">{{item.rq1}}</view>

    <view class="td">{{item.rq2}}</view>

    <view class="td">{{item.yjbh}}</view>

    <view class="td">{{item.ejbh}}</view>

    <view class="td">{{item.cydw}}</view>

    <view class="td">{{item.slrmc}}</view>

    <view class="td">{{item.xhfs}}</view>

    <view class="td">{{item.bz}}</view>

    </view>

    <view class="tr" wx:else>

    <view class="td">{{item.wl}}</view>


    <view class="td">{{item.mz}}</view>

    <view class="td">{{item.pz}}</view>

    <view class="td">{{item.jz}}</view>

    <view class="td">{{item.fhmz}}</view>


    </view>

    </block>

    </view>



    </scroll-view>


    2018-12-01
    有用
    回复
  • 是小白啊
    是小白啊
    2018-11-30

    提供一下出现问题的机型和微信版本,以及能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

    2018-11-30
    有用
    回复
登录 后发表内容