groupPurchase.wxml 3.09 KB
<import src="./groupPurchaseShare.wxml" />

<block wx:if="{{loading}}">
  <loading wx:if="{{loading}}">加载中</loading>
</block>
<block wx:elif="{{loginFailded}}">
  <view class='errorView' bindtap="reloadTapped">
    <text class="error">出错啦!点击重试</text>
  </view>
</block>
<block wx:else>
  <view class='container'>
    <scroll-view style='margin-bottom:88rpx'>
      <view wx:if='{{banner.imagePath}}' bindtap='bannerTab' style='width:100%;height:{{bannerHeight}}px;'>
        <image style='height:100%;width:100%' mode='aspectfit' src='{{banner.imagePath}}'></image>
      </view>
      <block wx:for="{{activityList}}" wx:key="unique">
        <view class='cell' data-product-skn="{{item.productSkn}}" data-activity-id="{{item.activityId}}" bindtap="groupListCellTapped">
          <view class='left'>
            <image class="activityImage" src="{{item.defaultImages}}"></image>
          </view>
          <view class='right'>

            <view class='new-name-tag' wx:if='{{item.joinLimit==1}}'>
              <image style='width:100%;height:28rpx' mode='aspectfit' src='./images/ptj_yxk.png'></image>
            </view>
            <view class='titleView'>
              <text class="title" style="text-indent:{{item.joinLimit==1?'90rpx':'0px'}}">{{item.productName}}</text>
            </view>
            <!-- <view class='name_container'>
              <view class='name-tag' wx:if='{{item.joinLimit==1}}'>
                <image style='width:100%;height:100%' src='./images/ptj_yxk.png'></image>
              </view>
              <view class='titleView'>  
                <text class="title" style="text-indent:{{item.joinLimit==1?'90rpx':'0px'}}">{{item.productName}}</text>
              </view>
            </view> -->

            <view class='priceView'>
              <!-- <image class="icon" src="./images/ptj_tab@3x.png"></image>  -->
              <view class="tip" style='display:none'>
                <text style='font-size:18rpx;color:#ffffff;text-align:center;flex:1'>{{item.peopleNum}}人团</text>
              </view>
              <text class="price1">¥{{item.collagePrice}}</text>
              <text class="price2">¥{{item.marketPrice}}</text>
            </view>
            <view class='group-num' wx:if="{{item.joinPeopleNum && item.joinPeopleNum>0}}">{{item.joinPeopleNum}} 人已拼</view>
            <view class='buttonView'>
              <text class="button1">{{item.peopleNum}}人成团</text>
              <text class="button2">立即开团</text>
            </view>
          </view>
        </view>
        <view class='line'></view>
      </block>

    </scroll-view>
  </view>
  <view class='bottom-tab-container' bindtap='jumpMyGroup'>
    <text class='my-group'>我的拼团</text>
  </view>
  <view class='my-share' bindtap='share'>
    <image style='width:100%;height:100%' src='./images/share-copy@3x.png'></image>
  </view>

  <template is="groupPurchaseShare" data="{{sharerData}}" />
</block>
<quickNavigation id="quickNavigation" isShowIndicator="{{isShowIndicator}}" isShowShopCart="{{false}}" isShare="{{false}}" marginBottom="{{282}}" bind:backToTop="backToTop"></quickNavigation>