gift.wxml 1.76 KB
<import src="../../goodsDetail/picker/picker.wxml"/>

<view class="container">
  <scroll-view class="scroll-container" scroll-y="true" enable-back-to-top="true">
    <block wx:for="{{promotion_data_ary}}"
           wx:for-item="promotionItem"
           wx:key="promotionItem">
      <view class="real-header">
        <text class="header-text">{{promotionItem.promotion_title}}</text>
      </view>
      <block wx:for="{{promotionItem.goods_list}}"
             wx:for-item="goodsItem"
             wx:key="index">
        <view class="cell-container"
        data-product-skn="{{goodsItem.product_skn}}"
        data-product-sku="{{goodsItem.product_sku}}"
        data-item="{{promotionItem}}"
        bindtap="onPressProduct">
          <view class="image-container">
            <image class="image" src="{{goodsItem.goods_images}}">
              <view class="goods-type gift-tag" wx:if="{{isGift}}">
                <text>赠品</text>
              </view>
              <view class="goods-type price-gift-tag" wx:else>
                <text>加价购</text>
              </view>
             </image>
          </view>

          <!-- 商品名称 价格 加入购物车按钮 -->
          <view class="product-info-container">
              <view>
                  <view class="title-text">{{goodsItem.product_name}}</view>
                  <view wx:if="{{!is_gift}}" class="price-title">{{goodsItem.last_price}}</view>
              </view>
              <image class="add-shop-btn-image" src="https://img12.static.yhbimg.com/sns/2018/07/02/17/029f2bee7c8fc4a47d9cac71d0c0ac5f20.png"/>
          </view>
          <view wx:if="{{index!=0}}" class="separator"></view>
        </view>
      </block>
    </block>
  </scroll-view>

  <template is="Picker" data="{{pickerData}}"/>
</view>