收藏
回答

为什么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>
回答关注问题邀请回答
收藏

2 个回答

  • 是小白啊
    是小白啊
    2020-04-08

    不建议这样使用

    2020-04-08
    有用
    回复
  • Admin ²º²³
    Admin ²º²³
    2020-04-07

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

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

    2020-04-07
    有用
    回复
登录 后发表内容
问题标签