<!--components/productCard/index.wxml-->
<view class="card">
  <view class="flex">
    <image wx:if="{{data.attinfos}}" src="{{data.attinfos[0].url}}" mode="aspectFill"/>
    <view>
      <view>{{data.itemname}}</view>
      <view class="small">
        商品编号:{{data.itemno}}
      </view>
      <view class="small">
        商品型号:{{data.model}}
      </view>
      <view wx:if="{{changeQty}}" class="small flex-align-center">
        数量:<input value="{{data.qty}}" bindinput="inputChange" placeholder="输入数量"></input>
      </view>
      <view wx:else="{{changeQty}}" class="small flex-align-center">
        数量:{{data.qty?data.qty:0}}
      </view>
    </view>
  </view>
  <view class="deleteBtn" >
    <t-icon class="deleteBtn" size="36rpx" name="delete" data-name="{{item}}" data-item="{{item}}" bind:click="onIconTap" />
  </view>
</view>