小程序 scroll-view 弹窗 穿透问题

在弹窗标签上添加属性:catchtouchmove="true",即可  // 开发工具看不出来需真机调试

<view class="tc_con" wx:if="{{warningShow}}" catchtouchmove="true">
  <view class="con_ma">
    <view class="con_title">
      <view class="title">
        <image src="/images/equipment/ico.png"></image>
        <text class="te1">{{currentime}}</text>
      </view>
      <view class="his_img" catchtap="cloneTap">
        <image src="/images/equipment/clone.png" mode="aspectFit"></image>
      </view>
    </view>
    <view class="con_tenm">
      <scroll-view scroll-y style="height: {{heightGt + 'rpx'}} " scroll-into-view="{{waringId}}">
        <view class="warninglist">
          <wux-row wux-class="title">
            <wux-col span="4" class="wux-text--center"><text>时间</text></wux-col>
            <wux-col span="4" class="wux-text--center"><text>温度</text></wux-col>
            <wux-col span="4" class="wux-text--center"><text>类型</text></wux-col>
          </wux-row>
          <block wx:for="{{warningList}}" wx:for-item="item" wx:for-index="id" wx:key="id">
          <wux-row wux-class="data {{item.selectShow?'waActive':''}}" id="{{item.id}}">
            <wux-col span="4" class="wux-text--center"><text>{{item.time}}</text></wux-col>
            <wux-col span="4" class="wux-text--center">
              <text wx:if="{{item.type == 01}}" style="color: #FF3939;font-weight: bold;">{{item.value}}℃</text>
              <text wx:if="{{item.type == 02}}" style="color: #47C8EF;font-weight: bold;">{{item.value}}℃</text>
              <text wx:if="{{item.type == null}}" style="color: rgb(152,225,101);font-weight: bold;">{{item.value}}℃</text>
            </wux-col>
            <wux-col span="4" class="wux-text--center">
              <text wx:if="{{item.type == 01}}" >高温</text>
              <text wx:if="{{item.type == 02}}" >低温</text>
              <text wx:if="{{item.type == null}}">正常</text>
            </wux-col>
          </wux-row>
        </block>
        <wux-row wux-class="data" wx:if="{{warningList.length == 0}}">
          <wux-col class="wux-text--center">当日无预警</wux-col>
        </wux-row>
        </view>
      </scroll-view>
    </view>
  </view>
</view>

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值