12345678910111213141516171819202122232425262728 |
- <wxs src='../../../utils/wxsUtil.wxs' module="wxs"></wxs>
- <!-- 切换状态栏 -->
- <view class="tabs">
- <view bindtap="changeTabs" data-index="0" class="tabs-item {{current == 0?'active':''}}">拼团中</view>
- <view bindtap="changeTabs" data-index="1" class="tabs-item {{current == 1?'active':''}}">拼团成功</view>
- <view bindtap="changeTabs" data-index="2" class="tabs-item {{current == 2?'active':''}}">拼团失败</view>
- </view>
- <view class="product">
- <view class="product-item" wx:for="{{groupRecordList}}" wx:key="index">
- <view class="product-item-top" data-group_id="{{item.group_goods_id}}" data-type="{{item.status}}" data-id="{{item.id}}" bindtap="goGroupType">
- <view class="product-item-left">
- <image src="{{item.cover_url}}"></image>
- </view>
- <view class="product-item-right">
- <view class="item-right-title">{{item.name}}</view>
- <view class="item-right-price"> <text>¥</text><text class="price__big">{{wxs.formatValue(item.price, 'split')[0]}}</text>.<text>{{wxs.formatValue(item.price, 'split')[1]}}</text></view>
- </view>
- </view>
- <view class="product-line"></view>
- <view class="product-button">
- <!-- 状态,0拼团中,1拼团成功,-1已取消(拼团失败),-2已结束(拼团失败) -->
- <view class="grouping" wx:if="{{item.status==0}}" bindtap="cancelGroup" data-id="{{item.id}}">取消拼团</view>
- <view class="group" wx:if="{{item.status==1}}">拼团成功</view>
- <view class="group" wx:if="{{item.status==-1}}">已取消</view>
- <view class="group" wx:if="{{item.status==-2}}">已结束</view>
- </view>
- </view>
- </view>
|