<!--shoppingGuid/page/pages/home/home.wxml-->
<view class='status-bar'>
  <view class='status-items'>
    <view class='status-bar-item {{item.active ? "active" : ""}}'
      wx:for="{{goods.goodsTypeArr}}"
      wx:for-item="item"
      bindtap='onTapChangeGoodsType'
      wx:for-index="idx"
      wx:key="goods{{idx}}"
      data-index="{{idx}}">{{item.name}}</view>
  </view>
</view>
<!-- 整体布局 -->
<view class='main-container'>
  <!-- 爆款推荐 -->
  <view>
    <!-- list -->
    <view class='goods-list' wx:if="{{goods.goodsList.length > 0}}">
      <view class='goods-item'
      wx:for="{{goods.goodsList}}"
      wx:for-item="item"
      wx:for-index="idx"
      wx:key="{{idx}}">
        <image class='goods-lf-icon' src='{{item.productImgUrl}}' mode='aspectFit'></image>
        <view class='goods-rg-info'>
          <view class='goods-title'>{{item.productName}}</view>
          <view class='goods-second-title'>这个是说明</view>
          <view class='goods-price'>
            <view class='price'>
              <view class='plus'>
                <image src='/assets/imgs/point.png' mode='aspectFit'></image>
                <text>{{item.point}}</text>
              </view>
              <view class='original-price'>￥126.08</view>
            </view>
            <view class='goods-share'>
              <view class='send-coupon' data-item="{{item}}" bindtap='onTapToShare'>定向发送</view>
              <view class='send-coupon' data-item="{{item}}" bindtap='onTapToRecommandProduct'>群发推荐</view>
            </view>
          </view>
        </view>
      </view>
    </view>
  </view>

  <view class='empty' wx:if="{{goods.goodsList.length == 0}}">暂无数据~</view>
  
</view>

<!-- 分享 -->
<!-- 分享好友 -->
<view class='bg' style='display:{{showShareModel ? "block" : "none"}}' bindtap='onTapCancelShare'></view>
<view class='share-container {{showShareModel ? "sliderUp" : ""}}'>
  <button open-type="share">
    <view class='share-item'>
        <image src='/assets/imgs/7_1_0/wx-icon.png' mode='aspectFit'></image>
        <text>微信好友</text>
    </view>
  </button>
</view>