giftPage.wxml 1.71 KB
<!--giftPage.wxml-->
<!-- <text>giftPage.wxml</text> -->
<import src="/pages/goodsDetail/picker/picker.wxml"/>

<view class="container">
  <scroll-view class="scrollContainer" scroll-y="true"> 
    <block wx:for="{{promotion_data_ary}}" 
           wx:for-item="promotionItem"
           wx:key="promotionItem">
      <view class="realHeader">
        <text class="headerText">{{promotionItem.promotion_title}}</text>
      </view>
      <block wx:for="{{promotionItem.goods_list}}" 
             wx:for-item="goodsItem"
             wx:key="index">
        <view class="cellContainer" 
        data-product-skn="{{goodsItem.product_skn}}"
        data-product-sku="{{goodsItem.product_sku}}"
        data-item='{{promotionItem}}'
        bindtap="onPressProduct">
          <view class="imageContainer">
             <image class="image" src="{{goodsItem.goods_images}}">
                <image class='tag-image' src="{{is_gift ? './images/zp-lab@2x.png' : './images/jjg-lab@2x.png'}}"/>
             </image>
          </view>

          <!-- 商品名称 价格 加入购物车按钮 -->
          <view class='product-info-container'>
              <view>
                  <view class="titleText">{{goodsItem.product_name}}</view>
                  <view wx:if="{{!is_gift}}" class='price-title'>{{goodsItem.last_price}}</view>
              </view>
              <image class='add-shop-btn-image' src='../goodsList/images/jrgwc@2x.png'/>
          </view>
          <view wx:if="{{index!=0}}" class="separator"></view>
        </view>
      </block>
    </block>
  
  </scroll-view> 

  <template is="Picker" data="{{pickerData}}"/>
  
</view>
<import src="../../vendors/toast/wetoast.wxml"/>
<template is="wetoast" data="{{...__wetoast__}}"/>