groupBuy.wxml 6.5 KB
<!--pages/groupBuy/groupBuy.wxml-->
<view class='banner_img'>
  <!--<image src='../../../images/banner.jpg'></image>-->
  <image src="{{banner}}" mode="aspectFill"></image>
</view>
<view class='title_box' bindtap='cardInfo'>
  <view class='title_content'>畅玩卡介绍</view>
</view>
<view class='tab_box'>
  <view class="tab_item {{current==0?'tab_active':''}}" data-current='0' bindtap='tabCharge'>参与的组团</view>
  <view class="tab_item {{current==1?'tab_active':''}}" data-current='1' bindtap='tabCharge'>团购成交记录</view>
  <view class="tab_item {{current==2?'tab_active':''}}" data-current='2' bindtap='tabCharge'>发起团购</view>
</view>
<block wx:if='{{current==0}}'>
  <view class='content_box'>
    <view>
      <view class='item_list' wx:for='{{groupList}}' wx:key=''>
        <view class='list_title_box' data-id='{{item.id}}' bindtap='listDetail'>
          <view>查看详情</view>
          <view class='iconfont icon-fanhui'></view>
        </view>
        <view class='list_info_box'>
          <block wx:for='{{item.group_detail}}' wx:for-item='sub_item' wx:key=''>
            <view class='info_item'>
              <view class='info_box'>
                <block>
                  <image src='{{sub_item.avatar}}'></image>
                  <view class='info_label' wx:if='{{sub_item.is_start==1}}'>发起人</view>
                </block>
              </view>
              <view class='info_time'>
                <view>{{sub_item.date}}</view>
                <view>{{sub_item.time}}</view>
              </view>
            </view>
          </block>
          <!-- <view class='info_item' >
            <view class='info_box'>
              <image src='{{sub_item.avatar}}'></image>
              <view class='info_label'>发起人</view>
            </view>
            <view class='info_time'>
              <view>{{sub_item.date}}</view>
              <view> {{sub_item.time}}</view>
            </view>
          </view>
          <view class='info_item'>
            <view class='info_box'>
            </view>
          </view>
          <view class='info_item'>
            <view class='info_box'>
            </view>
          </view>
          <view class='info_item'>
            <view class='info_box'>
            </view>
          </view> -->
        </view>
        <view class='list_info'>成团人数:最低
          <text>{{item.num}}</text>人,已参与:
          <text>{{item.count}}</text> 人,快呼唤伙伴参与吧!</view>
        <view class='list_info'>
          <view class='list_info_item'>
            剩余
            <!-- <text>{{item.surplus_time}}</text> -->

            <text class=''>{{item.hou}}</text>
            <text>:</text>
            <text class=''>{{item.min}}</text>
            <text>:</text>
            <text class=' '>{{item.sec}}</text>

            <!-- <text wx:for="{{countDownList}}" wx:key="countDownList">
                <text class=''>{{item.hou}}</text>
            <text>:</text>
            <text class=''>{{item.min}}</text>
            <text>:</text>
            <text class=' '>{{item.sec}}</text>
            </text> -->
            结束
          </view>



          <!-- <view class='tui-countdown-content' wx:for="{{countDownList}}" wx:key="countDownList">
          剩余
           <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>
          <view class='user_info_box'>
            <view class='user_info'>
              <view class='info_box'>
                <image src='{{item.avatar}}'></image>
                <view class='info_label'>发起人</view>
              </view>
              <view>{{item.user_nickname}}</view>
            </view>
            <view class='state_box'>
              <view>{{item.start_time}}开团</view>
              <view class='info_state' wx:if='{{item.group_status==1}}'>团购中</view>
              <view class='info_state' wx:if='{{item.group_status==2}}'>团购失败</view>
              <view class='info_state' wx:if='{{item.group_status==3}}'>团购成功</view>
            </view>
          </view>
        </view>
      </view>
    </view>
    <view class='null_box'></view>
    <view class='bottom_box'>
      <text class='iconfont icon-fenxiang'></text> <text>{{service.description}}</text>
    </view>
  </view>
</block>
<block wx:elif='{{current==1}}'>
  <view class='content_box'>
    <view class='item_list'>
      <view class='list_tab'>
        <view class='list_tab_item'>日期</view>
        <view class='list_tab_item'>兑换状态</view>
        <view class='list_tab_item'>
          <text>兑换码</text>
          <view class='list_label'>长按兑换码即可复制</view>
        </view>
      </view>
      <view class='list_tab list_content' wx:for='{{recordList}}' wx:key='' data-index='{{index}}'>
        <view class='list_tab_item'>{{item.create_time}}</view>
        <view class='list_tab_item'>{{item.is_used == 1?'已完成':'未完成'}}</view>
        <text class='list_tab_item' selectable='true' bindlongtap='copy' data-index='{{index}}'>{{item.redeem_code}}</text>
      </view>
    </view>
  </view>
</block>
<block wx:if='{{current==2}}'>
  <view class='content_box' style='padding:0 20rpx;'>
    <view class='list_label_box'>
      <view class='group_num'>团购人数:最低
        <text>{{pay_info.num}}人</text>
      </view>
      <view class='group_time'>发布倒计时:
        <text>{{pay_info.time}}小时</text>
      </view>
    </view>
    <view class='list_title_info'>
      <view class='iconfont icon-zhongdian'> </view>
      <view>
        <view>{{rule.title}}</view>
        <view class='content_info'>{{rule.description}}</view>
      </view>
    </view>
    <view class='service_box'>
      <view class='service_info_box' bindtap="agree">
        <!-- <text class='iconfont icon-xuanzhong'></text> -->
        <text class='iconfont icon-xuanze1' wx:if="{{!is_agree}}"></text>
        <text class='iconfont icon-xuanzhong' wx:if="{{is_agree}}"></text>
        <text>我已阅读并同意畅玩卡</text>
        <text class='service_info' catchtap='serviceProtocol'>服务协议</text>
      </view>
      <view class='service_btn_box'>
        <view>单价:¥{{pay_info.price}}</view>
        <view class='pay_btn' bindtap='goPay' data-id='{{pay_info.id}}'>支付</view>
      </view>
    </view>
  </view>
</block>