html52.com
我爱小程序-开发者交流社区

为什么web-view 里的点击事件和属性在ios系统好使 在安卓系统不好使?

<web-view style="" src="{{src}}" >


  <cover-view wx:if="{{loding&&goodsid&&goodsid!='null'}}" class="bottom-right" bindtap="showChoose" data-status="buy">预约登记</cover-view>


  <cover-view class="hei" wx:if="{{hideChoose}}" bindtap="hideChoose"></cover-view>
  <cover-view class="tc" wx:if="{{hideChoose}}">
    <cover-view class="tc-main">
      <cover-view class="tc-main-top">
        <cover-view class="tc-main-top-left">
          <cover-image src="{{url}}{{showGoods.picture}}"></cover-image>
        </cover-view>
        <cover-view class="tc-main-top-right">
          <cover-view class="tc-main-top-right-top">
            {{showGoods.name}}
          </cover-view>
          <cover-view class="tc-main-top-right-bottom">
            <cover-view class="tc-main-top-right-bottom-left">
              ¥{{showGoods.vipprice}}
            </cover-view>
          </cover-view>
        </cover-view>
      </cover-view>


      <cover-view style="overflow:hidden" wx:for="{{specifcationList}}" wx:key="spcifcation" wx:for-index="sindex" data-sindex="{{sindex}}" data-speindex='{{sindex}}' bindtap="chooseFather">
        <cover-view class="tc-main-middle">
          {{item.name}}
        </cover-view>
        <cover-view class="tc-main-middle-main" style="{{item.choose == '1' ? 'background:#00923f;color:#fff':''}}" wx:for="{{item.specifcationValueList}}" wx:key="specifcationValue" wx:for-index="svindex" data-svindex="{{svindex}}" data-spevalueindex='{{svindex}}' bindtap="chooseSon">
          {{item.name}}
        </cover-view>
      </cover-view>
    </cover-view>
    <cover-view class="tc-bottom" bindtap="{{status == 'buy' ? 'buy' : 'addCaritem'}}">
      确认
    </cover-view>
  </cover-view>
</web-view>

网友回复

Admin²⁰²⁰:

web-view里面还插入原生组件?这是段神奇的代码啊?

不是直接用src里面的h5网页控制的么?

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

真正的个人免签约支付接口

云免签H5支付