<!--packageC/o2o/o2oGrouplist/o2oGrouplist.wxml-->
<view id="o2o_grouplist">
    <van-tabs active="{{ activeName }}" bind:change="tabClick" sticky swipeable>
      <van-tab title="{{items}}" wx:for="{{titleArr}}" wx:for-index="ind" wx:for-item="items">
          <view class="content" wx:if="{{dataList[ind]}}">
            <view wx:for="{{dataList[ind].list}}" wx:for-index="index" wx:for-item="item" class="list">
              <view class="list-top" catchtap="gotoO2oHome" data-storeid="{{item.store_id}}">
                <image src="{{item.thumb}}" class="o2o-img" alt="" />
                <view class="o2o-name">{{ item.store_name || "---" }}</view>
                <view class="distance">{{ item.distance }}{{ item.unit }}</view>
              </view>
              <view class="goods-info" wx:if="{{item.has_one_goods}}">
                <image src="{{item.has_one_goods.thumb}}" class="goods-img" alt="" />
                <view class="goods-right">
                  <view class="goods-title">{{ item.title }}</view>
                  <view class="goods-price">
                    ￥{{ item.has_many_option_levels[0].group_price }}
                    <view class="small-price">￥{{ item.has_one_goods.price }}</view>
                  </view>
                  <view class="goods-other">
                    <view class="goods-num"><icon class="iconfont icon-fontclass-renshu1"></icon>{{ item.has_many_option_levels[0].member_num }}人</view>
                    <view class="goods-btn" catchtap="goGroup" data-id="{{item.id}}" data-storeId="{{item.store_id}}">去开团</view>
                  </view>
                </view>
              </view>
            </view>
            <view wx:if="{{dataList[ind]&&dataList[ind].list.length==0}}" class="blank">暂无数据...</view>
          </view>
      </van-tab>
    </van-tabs>
  </view>
