123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <view class="container">
- <view class="orders-switch">
- <view class="item {{ showType == 0 ? 'active' : ''}}" bindtap="switchTab" data-index='0'>
- <view class="txt">发起的团购</view>
- </view>
- <view class="item {{ showType == 1 ? 'active' : ''}}" bindtap="switchTab" data-index='1'>
- <view class="txt">参加的团购</view>
- </view>
- </view>
- <view class="no-order" wx:if="{{orderList.length <= 0}}">
- <view class="c">
- <text>尚未参加任何团购</text>
- </view>
- </view>
- <view class="orders">
- <navigator url="../grouponDetail/grouponDetail?id={{item.id}}" class="order" open-type="navigate" wx:for="{{orderList}}" wx:key="id">
- <view class="h">
- <van-tag type="primary" wx:if="{{item.groupon.status === 1}}">开团中</van-tag>
- <van-tag type="success" wx:if="{{item.groupon.status === 2}}">开团成功</van-tag>
- <van-tag type="danger" wx:if="{{item.groupon.status === 3}}">开团失败</van-tag>
- <van-tag round type="warning" wx:if="{{!item.isCreator}}">{{item.creator}}发起</van-tag>
- </view>
- <view class="h">
- <view class="l">订单编号:{{item.orderSn}}</view>
- <view class="r">{{item.orderStatusText}}</view>
- </view>
- <view class="j">
- <view class="l">团购立减:¥{{item.rules.discount}}</view>
- <view class="r">参与时间:{{item.groupon.addTime}}</view>
- </view>
- <view class="i">
- <view class="l">团购要求:{{item.rules.discountMember}}人</view>
- <view class="r">当前参团:{{item.joinerCount}}人</view>
- </view>
- <view class="goods" wx:for="{{item.goodsList}}" wx:key="id" wx:for-item="gitem">
- <view class="img">
- <image src="{{gitem.picUrl}}"></image>
- </view>
- <view class="info">
- <text class="name">{{gitem.goodsName}}</text>
- <text class="number">共{{gitem.number}}件商品</text>
- </view>
- <view class="status"></view>
- </view>
- <view class="b">
- <view class="l">实付:¥{{item.actualPrice}}</view>
- </view>
- </navigator>
- </view>
- </view>
|