<!--packageG/mycomponent/component/store_gift/store_gift.wxml-->
<view class="gift_box">
  <view class="fe-mod-8-hp-line" wx:for="{{list}}" wx:key='i' catchtap="toGood" data-item='{{item}}'>
    <view class="fe-mod-8-hp-line-img">
      <view class="saleimg"></view>
      <yz-image src="{{item.thumb}}" />
    </view>
    <view class="fe-mod-8-hp-line-info">
      <view class="title">
        {{ item.title }}
      </view>

      <view class="goods_content_show" wx:if="{{item.goods_content_show && datas.content_list}}">
        <!-- 商品内容显示 #81889-->
        <block wx:for="{{item.goods_content_show}}" wx:for-item="contentChild">
          <view style="font-size:10px;color:#666;margin: 0 8px 0 0;"
            wx:if="{{(util.inOf(datas.content_list,'8') > -1 && contentChild.key == 'integral') ||(util.inOf(datas.content_list,'9') > -1 && contentChild.key == 'love') ||(util.inOf(datas.content_list,'10') > -1 && contentChild.key == 'store-integral-fees')}}">
            {{ contentChild.name }}{{ contentChild.value }}%
          </view>
        </block>
      </view>

      <view class="price fe-mod-8-main-name">
        <view style="display: flex;align-items: center;">
          <view class="p1">{{ $i18n.t("money") }}{{ item.price }}</view>
          <view class="p2">
            <view wx:if="{{item.market_price}}">{{ $i18n.t("money") }}{{ item.market_price }}</view>
          </view>
        </view>
        <view class="fe-mod-8-main-name-buy  buy-1" style="margin-top: 0.375rem;"></view>
      </view>
    </view>
  </view>
</view>

<wxs module="util">
  var inOf = function(val, str) { if (val) {return val.indexOf(str) }};
  module.exports.inOf = inOf;
</wxs>