<view class="group_detail">
    <view class="content">
        <view class="goods_list">
            <view class="goods_box">
                <view class="goods_img">
                    <image src="{{info.has_one_group.has_one_goods.thumb}}" catchtap="gotoGoods" />
                </view>
                <view class="goods_info ul">
                    <view class="name li" style="-webkit-box-orient: vertical;">
                        {{info.has_one_group.title}}
                    </view>
                    <view class="price li">
                        <text class="span" style="color: #f15353;">{{language['money']}}{{popPrice}}</text>
                        <text class="span text-decoration" wx:if="{{((popPrice * 1) >= (info.has_one_group.max_price * 1)) ? false : true}}">{{language['money']}}{{info.has_one_group.max_price}}</text>
                    </view>
                    <view class="number li">
                        <view class="left">
                            <!-- <icon class="iconfont icon-info_contacts"></icon> -->
                            <text class="span">{{info.has_many_success_member_count}}人付款</text>
                        </view>
                        <view class="go_group">
                            <text class="span">{{info.has_one_level.member_num}}人拼团</text>
                            <!-- <van-icon class="fa fa-angle-right" name="arrow" /> -->
                        </view>
                    </view>
                </view>
            </view>
        </view>
        <view class="into_group">
            <block wx:if="{{isOpen == 1&&action != 4}}">
                <view class="title">
                    <view class="line_left"></view>
                    <text class="span">距结束</text>
                    <view class="line_right"></view>
                </view>
                <view class="time" wx:if="{{!istime}}">
                    <view class='tui-countdown-content' style="text-align:center;" wx:for="{{countDownList}}" wx:key="index">
                        <text class='tui-conutdown-box'>{{item.day}}</text>
                        天
                        <text class='tui-conutdown-box'>{{item.hou}}</text>
                        时
                        <text class='tui-conutdown-box'>{{item.min}}</text>
                        分
                        <text class='tui-conutdown-box tui-countdown-bg'>{{item.sec}}</text>
                        秒
                    </view>
                </view>
                <view wx:if="{{istime}}" style="text-align:center;color:#fff;background:#f15353;">
                    已结束
                </view>
                <view class="p">
                    <view>拼团中，离成团还差</view>
                    <view class="span">
                    {{info.has_one_level.member_num-info.has_many_success_member_count>0?info.has_one_level.member_num-info.has_many_success_member_count:0}}
                    </view>
                    <view>人</view>
                </view>
            </block>
            <block wx:if="{{isOpen == 1&&action == 4}}">
                <view class="h2" style="color:#f15353;text-align:center;font-size:14px;">
                    {{activityTest}}
                </view>
            </block>
            <button type="button" class="btn" open-type="{{action==2?'share':''}}" catchtap="tapGoteam">
                {{btnTest}}
            </button>
        </view>
        <view class="group_user" wx:if="{{isOpen == 1&&status!=3}}">
            <view class="h2">参团的人</view>
            <view class="user_box" wx:if="{{info.has_many_success_member!=''}}">
                <view class="user {{item.has_one_lottery ? (item.has_one_lottery.is_win ? 'reward' : '') : ''}}" wx:for="{{info.has_many_success_member}}" wx:key="index">
                    <view class="img current">
                        <image src="{{item.has_one_member.avatar_image}}" />
                    </view>
                    <!-- <icon class="iconfont icon-group_wenhao"></icon> -->
                    <text class="span" wx:if="{{item.is_leader==1}}">团长</text>
                    <text class="span" wx:else>{{item.has_one_member.nickname}}</text>
                </view>
                <view class="user" style="text-align: center;"
                    wx:for="{{(info.has_one_level.member_num-info.has_many_success_member_count>0?info.has_one_level.member_num-info.has_many_success_member_count:0)}}"
                >
                    <view class="img">
                    <image src=""></image>
                    </view>
                    <icon class="iconfont icon-group_wenhao"></icon>
                </view>
            </view>
        </view>
        <view class="look_btn" catchtap="goHome">
            <button type="button">去商城逛逛</button>
        </view>
    </view>
    <!-- 弹窗 -->
    <!-- <view class="shadeMode_2  {{showOpenGroup?'shadeModeShow':''}}"> -->
    <van-popup show="{{showOpenGroup}}" position="bottom" class="mint-popup-4" 
    custom-style="overflow:visible;" bind:click-overlay="tapOverlay">
        <view class="one_open">
            <view class="img_price">
                <view class="goods">
                    <image src="{{info.has_one_group.has_one_goods.thumb}}" />
                </view>
                <view class="price ul">
                    <view class="price_a li">{{language['money']}}{{popPrice}}</view>
                    <view class="price_b li" >库存：{{popStock}}件</view>
                    <view class="price_b li">{{ goodsDescription||'请选择' }}</view>
                </view>
            </view>
            <!-- showOpenGroup = false -->
            <view class="icon_close" catchtap="tapOverlay">
                <icon class="iconfont icon-close11"></icon>
            </view>
            <!-- 规格 -->
            <view class="shopinfo noVantRadio" wx:if="{{goodsInfo.has_option == 1}}">
                <view class="dl" wx:for="{{goodsInfo.has_many_specs}}" wx:for-item="specs" wx:key="i" wx:for-index="i" wx:if="{{goodsInfo.has_many_specs!==undefined&&goodsInfo.has_many_specs.length>0 ? 1 :0}}">
                    <text class="dt">{{ specs.title }}</text>
                    <view class="dd" style="display:flex;flex-wrap: wrap;max-height: 300rpx;overflow:scroll;">
                        <!-- <van-radio-group value="{{specs.description}}"  style="display:flex;"> -->
                        <view style="margin:0 20rpx 20rpx 0;line-height: 20px;padding: 2px 8px;border: 1px solid #bfcbd9;" wx:for="{{specs.has_many_specs_item}}" wx:for-item="specitem" data-index="{{i}}" wx:key="index" data-item="{{specitem}}" class="{{ specs.description == specitem.title?'vantRadioshow':'' }}" catchtap="selectSpecs">
                            {{ specitem.title }}
                        </view>
                        <!-- </van-radio-group> -->
                    </view>
                </view>
            </view>
            <view class="buy_number">
                <text class="span">购买数量：</text>
                <view class="num">
                    <view class="leftnav" catchtap="reduceGoods">-</view>
                    <input type="number" class="shownum" placeholder="" value="{{goodsCount}}" bind:blur="changeCount()" />
                    <view class="rightnav" catchtap="addGoods">+</view>
                </view>
            </view>
            <button type="button" class="btn" catchtap="joinTeam">确定</button>
        </view>
    </van-popup>
    <!-- </view> -->
    <!-- <view class="popupMode {{!showOpenGroup?'popupModeShow':''}}" hidden="{{!showOpenGroup}}"></view> -->
</view>
