<!-- 拼团组件 -->
<view class="assemble">
  <view style="{{'background:'+params.bgcolor}}">
    <view class="rush-buy">
      <!-- 商品组标题 -->
      <view class="h4" style="{{'height:1.875rem;line-height:1.875rem;font-size:1rem;text-align:left;'+'background:'+params.bgcolor+';'+'color:'+params.titlecolor}}" wx:if="{{params.showtitle == 1?true:false}}">
        {{params.title}}
      </view>
      <!-- 单行 -->
      <view class="single-row" wx:if="{{params.style=='100%' }}" wx:for="{{ datas}}" wx:key="index" data-item="{{item}}" catchtap="buy">
        <view class="img">
          <image src="{{item.goods_img?item.goods_img:'https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/images/loading.jpg'}}" />
          <view class="sale-img" class="{{params.option}}"></view>
          <view class="time-box" wx:if="{{params.countdown}}">
            <count wx:if="{{item.ishow}}" now-time="{{item.nowTime}}" over-time="{{item.overTime}}" />
            <view style="font-size: 14px;color: #fff" wx:if="{{!item.ishow&&item.end_time!=''}}">
              距开始:
            </view>
            <view>
              <count now-time="{{item.nowTime}}" get-time="{{item.getTime}}" />
            </view>
          </view>
        </view>
        <view class="text ul">
          <view class="title li">
            <view class="h2" wx:if="{{params.showname==1}}">{{item.goods_title}}</view>
          </view>
          <view class="price li">
            <view class="left span" wx:if="{{params.price != '0' && params.price == 1?true:false}}">
              <view class="price-a font" style="{{'color:'+params.titlecolor}}" style="display:inline-block;">
                <view class="small">
                  <view style="display:inline-block;">{{language['money']}}</view>
                  <view wx:if="{{item.vip_level_status&&item.vip_level_status.status==1}}" style="font-size:12px!important;text-align:left;display:inline-block;"> {{ item.vip_level_status.word }}</view>
                  <view style="display:inline-block;" wx:else>
                  {{ item.min_price }}
                  </view>
                </view>
              </view>
              <text class="price-b font" wx:if="{{!(item.min_price ==  item.max_price)}}">
														<text class="small" style="color:#999;">{{language['money']}}	{{item.max_price}}</text>
              </text>
            </view>
            <view class="left" wx:if="{{params.price != '0' && params.price == 2?true:false}}">
              <view class="price-a font" style="{{'color:'+params.titlecolor}}" style="display:inline-block;">
                <view class="small">
                  <view style="display:inline-block;">{{language['money']}}</view>
                  <view wx:if="{{item.vip_level_status&&item.vip_level_status.status==1}}" style="font-size:12px!important;text-align:left;display:inline-block;">
                  {{ item.vip_level_status.word }}
                  </view>
                  <view wx:else style="display:inline-block;">
                  {{ item.min_price }}
                  </view>
                </view>
              </view>
              <!-- <font class="price-b"><small>{{language['money']}}</small>128.50</font> -->
            </view> 
          </view>
          <view class="rob li">
            <view class="left span" wx:if="{{params.overage}}">
              满
              <block class="big">{{item.member_request}}</block>
              人成团
            </view>
            <button type="button" wx:if="{{params.buysub!=''||params.buysub!=null||params.buysub!=undefined}}" class="{{params.buysub}}" data-item="{{item}}" catchtap="buy">
              去开团 >
            </button>
          </view>
        </view>
      </view>
      <!-- 双行 -->
      <view class="double-row" wx:if="{{params.style=='49.5%'}}">
        <view class="list-box dl" wx:for="{{datas}}" wx:key="index" data-item="{{item}}" catchtap="buy">
          <view class="img dt">
            <image src="{{item.goods_img?item.goods_img:'https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/images/loading.jpg'}}" />
            <view class="sale-img" class="{{params.option}}"></view>
            <view class="time-box" wx:if="{{params.countdown}}">
              <count wx:if="{{item.ishow}}" now-time="{{item.nowTime}}" over-time="{{item.overTime}}" />
              <view style="font-size: 14px;color: #fff" wx:if="{{!item.ishow&&item.end_time!=''}}">
                距开始:
              </view>
              <view>
                <count now-time="{{item.nowTime}}" get-time="{{item.getTime}}" />
              </view>
            </view>
          </view>
          <view class="text dt">
            <view class="h2" wx:if="{{params.showname==1}}">{{item.goods_title}}</view>
            <view class="price dd" wx:if="{{params.price != '0' && params.price == 1?true:false}}">
              <view class="left span" style="{{'color:'+params.titlecolor}};display:inline-block;">
                <view class="small">
                  <view style="display:inline-block;">{{language['money']}}</view>
                  <view wx:if="{{item.vip_level_status&&item.vip_level_status.status==1}}" style="font-size:12px!important;text-align:left;display:inline-block;"> {{ item.vip_level_status.word }}</view>
                  <view wx:else style="display:inline-block;">
                  {{ item.min_price }}
                  </view>
                </view>
              </view>
              <view class="right span" wx:if="{{!(item.min_price ==  item.max_price)}}">
                 <text class="small" style="color:#999;">{{language['money']}}</text> {{item.max_price}}
              </view>
            </view>
            <view class="price dd" wx:if="{{params.price != '0' && params.price == 2?true:false}}">
               <view class="left span" style="{{'color:'+params.titlecolor}}" style="display:inline-block;">
                  <view class="small">
                     <view style="display:inline-block;">{{language['money']}}</view>
                     <view wx:if="{{item.vip_level_status&&item.vip_level_status.status==1}}" style="font-size:12px!important;text-align:left;display:inline-block;"> {{ item.vip_level_status.word }}</view>
                     <view wx:else style="display:inline-block;">
                        {{ item.min_price }}
                     </view>
                  </view>
               </view>
              <!-- <span class="right"><small>{{language['money']}}</small>228.50</span> -->
            </view>
            <view class="rob dd">
              <view class="left span" wx:if="{{params.overage}}">
                满
                <block class="big">{{item.member_request}}</block>
                人成团
              </view>
              <button style="line-height:52rpx;" type="button" wx:if="{{params.buysub!==''||params.buysub!=null||params.buysub!=undefined}}" class="{{params.buysub}}" data-item="{{item}}" catchtap="buy">
                去开团 >
              </button>
            </view>
          </view>
        </view>
      </view>
      <!-- 三行 -->
      <view class="three-row" wx:if="{{params.style=='33.3%'?true:false}}">
        <view class="list-box dl"  wx:for="{{datas}}" wx:key="index" data-item="{{item}}" catchtap="buy">
          <view class="img dt">
            <view style="position: relative;height: 224rpx;">
              <image  src="{{item.goods_img?item.goods_img:'https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/images/loading.jpg'}}" />
              <view class=" sale-img{{params.option}}"></view>
              <view class="time-box" wx:if="{{params.countdown}}">
                <count wx:if="{{item.ishow}}" now-time="{{item.nowTime}}" over-time="{{item.overTime}}" />
                <view style="font-size: 14px;color: #fff" wx:if="{{!item.ishow&&item.end_time!=''}}">
                  距开始:
                </view>
                <view>
                  <count now-time="{{item.nowTime}}" get-time="{{item.getTime}}" />
                </view>
              </view>
            </view>
            
            <view class="text dt">
              <view class="h2" wx:if="{{params.showname==1}}">{{item.goods_title}}</view>
              <view class="price dd" wx:if="{{params.price != '0' && params.price == 1?true:false}}">
                <view class="price-a span" style="{{'color:'+params.titlecolor}}">
                  <text class="small">{{language['money']}}</text> {{item.min_price}}
                </view>
                <view class="price-b span" wx:if="{{!(item.min_price ==  item.max_price)}}">
                    <text class="small" style="color:#999;">{{language['money']}}</text> {{item.max_price}}
                </view>
              </view>
              <view class="price span" wx:if="{{params.price != '0' && params.price == 2?true:false}}">
                <view class="price-a span" style="{{'color:'+params.titlecolor}}">
                  <text class="small">{{language['money']}}</text> {{item.min_price}}
                </view>
              </view>
              <view class="rob dd">
                <view class="left span" wx:if="{{params.overage}}">
                  满
                  <block class="big">{{item.member_request}}</block>
                  人成团
                </view>
              </view>
              <view class="button dd" wx:if="{{params.buysub!=''}}">
                <button type="button" class="{{params.buysub}}" data-item="{{item}}" catchtap="buy">
                  去开团 >
                </button>
              </view>
            </view>
          </view>
        </view>
      </view>
      <!-- 横 -->
      <view class="across-row" wx:if="{{params.style=='hp'}}">
        <view class="list" wx:for="{{datas}}" wx:key="index" data-item="{{item}}" catchtap="buy">
          <view class="img">
            <image src="{{item.goods_img?item.goods_img:'https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/images/loading.jpg'}}" />
            <view class="{{params.option}} sale-img"></view>
            <view class="time-box" wx:if="{{params.countdown}}">
              <count wx:if="{{item.ishow}}" now-time="{{item.nowTime}}" over-time="{{item.overTime}}" />
              <view style="font-size: 14px;color: #fff" wx:if="{{!item.ishow&&item.end_time!=''}}">
                距开始:
              </view>
              <view>
                <count now-time="{{item.nowTime}}" get-time="{{item.getTime}}" />
              </view>
            </view>
          </view>
          <view class="text ul">
            <view class="h2" wx:if="{{params.showname==1}}">{{item.goods_title}}</view>
            <view class="price li" wx:if="{{params.price != '0' && params.price == 1?true:false}}">
              <view class="price-a span" style="{{'color:'+params.titlecolor}};display:inline-block;">
                <view class="small">
                  <view style="display:inline-block;">{{language['money']}}</view>
                  <view wx:if="{{item.vip_level_status&&item.vip_level_status.status==1}}" style="font-size:12px;text-align:left;line-height:12px;display:inline-block;"> {{ item.vip_level_status.word }}</view>
                  <view wx:else style="display:inline-block;">
                        {{ item.min_price }}
                  </view>
                </view>
              </view>
              <view class="price-b span" style="{{'color:'+params.titlecolor}};display:inline-block;" wx:if="{{!(item.min_price ==  item.max_price)}}">
                <text class="small" style="color:#999;">{{language['money']}}</text> {{item.max_price}}
              </view>
            </view>
            <view class="price li" wx:if="{{params.price != '0' && params.price == 2?true:false}}">
              <view class="price-a span" style="{{'color:'+params.titlecolor}}">
                <view class="small">
                  <view style="display:inline-block;">{{language['money']}}</view>
                  <view wx:if="{{item.vip_level_status&&item.vip_level_status.status==1}}" style="display:inline-block;"> {{ item.vip_level_status.word }}</view>
                  <view wx:else style="display:inline-block;">
                        {{ item.min_price }}
                  </view>
                </view>
              </view>
            </view>
            <view class="rob li">
              <view class="left span" wx:if="{{params.overage}}">
                满
                <block class="big">{{item.member_request}}</block>
                人成团
              </view>
            </view>
            <view class="button li" wx:if="{{params.buysub!=''}}">
              <view class="button_1 {{params.buysub}}" data-item="{{item}}" catchtap="buy" style="width:166rpx;height:62rpx;font-size:14px;display:flex;align-items:center;justify-content: center;">
                去开团 >
              </view>
            </view>
          </view>
        </view>
      </view>
    </view>
  </view>
</view>
