<view class="ant-voucher-wrap {{direction === 'horizontal' && dataSource.length > 1 ? 'ant-voucher-wrap-show-after' : ''}} {{className}}">
  <view class="ant-voucher-container {{'ant-voucher-container-' + direction + ''}} {{'' + (dataSource.length > 1 ? 'multiple' : 'single') + ''}}">
    <block
      wx:for="{{dataSource}}"
      wx:for-index="index"
      wx:for-item="item"
    >
      <view
        class="ant-voucher-item {{'ant-voucher-item-' + (item.disabled ? 'disabled' : 'not-disabled') + ''}} {{'ant-voucher-item-' + size + ''}}"
        data-index="{{index}}"
        bindtap="handleVoucherTap"
      >
        <view class="ant-voucher-item-left">
          <view class="ant-voucher-item-left-money {{direction === 'multipleColumn' ? item.money.length > 3 && 'ant-voucher-item-left-money-small' : item.money.length > 4 && 'ant-voucher-item-left-money-small'}}">{{item.money}}<text
              wx:if="{{item.money}}"
              class="ant-voucher-item-left-money-unit"
            >{{item.moneyUnit || '元'}}</text>
          </view>
          <view
            wx:if="{{item.threshold}}"
            class="ant-voucher-item-left-threshold"
          >{{item.threshold}}</view>
        </view>
        <view class="ant-voucher-item-right">
          <view class="ant-voucher-item-right-content">
            <view class="ant-voucher-item-right-title">{{item.title}}</view>
            <view class="ant-voucher-item-right-desc">{{item.desc}}</view>
          </view>
          <view class="voucher-action-area-default">
            <image
              wx:if="{{item.actionAreaInfo.imageUrl}}"
              class="image"
              mode="widthFix"
              src="{{item.actionAreaInfo.imageUrl}}"
            ></image>
            <ant-button
              wx:else
              disabled="{{item.actionAreaInfo.disabled}}"
              inline
              size="small"
              type="primary"
              data-index="{{index}}"
              bindtap="handleBtnTap"
            >{{item.actionAreaInfo.text}}</ant-button>
          </view>
        </view>
      </view>
    </block>
  </view>
</view>