<!-- <navbar parameter='{{parameter}}'></navbar> -->
<view class='navbar {{parameter.class}}' style='height:{{navH}}rpx;opacity:{{opacity}}'>
   <view class='navbarH' style='height:{{navH}}rpx;'>
      <view class='navbarCon acea-row row-center-wrapper'>
          <view class="header acea-row row-center-wrapper">
            <view class="item {{navActive === index ? 'on' : ''}}" wx:for="{{navList}}" wx:key='index' bindtap="tap" data-index="{{index}}" data-id='past{{index}}'>
              {{ item }}
            </view>
          </view>
      </view>
   </view>
</view>
<view class='iconfont icon-xiangzuo' style="top:{{navH/2}}rpx" bindtap='returns'></view>
<!-- <view style="height:{{navH+20}}rpx;" wx:if="{{scrollY>200}}"></view> -->
<view class='product-con'>
<scroll-view scroll-top="{{scrollTop}}" scroll-y='true' scroll-with-animation="true" style='height:{{height}}px;' bindscroll="scroll">
  <view id="past0">
      <productConSwiper imgUrls="{{imgUrls}}"></productConSwiper>
      <view class='wrapper'>
         <view class='share acea-row row-between row-bottom'>
           <view class='money font-color'>
             ¥<text class='num'>{{storeInfo.price}}</text><text class='y-money'>¥{{storeInfo.product_price}}</text>
           </view>
           <button class='iconfont icon-fenxiang' open-type="share"></button>
         </view>
         <view class='introduce'>{{storeInfo.title}}</view>
         <view class='label acea-row row-between-wrapper'>
           <view class='stock'>类型:{{storeInfo.people}}人团</view>
           <view>累计销量:{{storeInfo.total?storeInfo.total:0}}件</view>
           <view>限购: {{ storeInfo.quota ? storeInfo.quota : 0 }} 件</view>
         </view>
      </view>
      <view class='attribute acea-row row-between-wrapper' bindtap='selecAttr' wx:if='{{productAttr.length}}'>
         <view>{{attr}}:<text class='atterTxt'>{{attrValue}}</text></view>
         <view class='iconfont icon-jiantou'></view>
      </view>
      <view class='notice acea-row row-middle'>
         <view class='num font-color'>
            <text class='iconfont icon-laba'></text>
            已拼{{pink_ok_sum}}件<text class='line'>|</text>
         </view>
         <view class='swiper'>
            <swiper indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" interval="2500" duration="500" vertical="true" circular="true">
                <block wx:for="{{itemNew}}" wx:key='index'>
                   <swiper-item>
                      <view class='line1'>{{item}}</view>
                   </swiper-item>
                </block>
            </swiper> 
         </view>
      </view>
      <view class='assemble'>
         <view class='item acea-row row-between-wrapper' wx:for='{{pink}}' wx:key='index' wx:if="{{index < AllIndex}}">
            <view class='pictxt acea-row row-between-wrapper'>
               <view class='pictrue'><image src='{{item.avatar}}'></image></view>
               <view class='text line1'>{{item.nickname}}</view>
            </view>
            <view class='right acea-row row-middle'>
                <view>
                   <view class='lack'>还差<text class='font-color'>{{item.count}}</text>人成团</view>
                   <view class='time'>剩余 {{item.time.hou}}:{{item.time.min}}:{{item.time.sec}}</view>
                </view>
                <navigator hover-class='none' url='/pages/activity/goods_combination_status/index?id={{item.id}}' class='spellBnt'>去拼单<text class='iconfont icon-jiantou'></text></navigator>
            </view>
         </view>
         <view class='more' bindtap='showAll' wx:if="{{pink.length >= AllIndex}}">查看更多<text class='iconfont icon-xiangxia'></text></view>
         <view class='more' bindtap='hideAll' wx:elif="{{pink.length >= AllIndex && !pink.length}}">收起<text class='iconfont icon-xiangxia'></text></view>
      </view>
      <view class='playWay'>
         <view class='title acea-row row-between-wrapper'>
            <view>拼团玩法</view>
            <!-- <navigator hover-class='none' class='font-color' url='/pages/activity/goods_combination_rule/index'>查看规则<text class="iconfont icon-jiantou"></text></navigator> -->
         </view>
         <view class='way acea-row row-middle'>
            <view class='item'><text class='num'>①</text>开团/参团</view>
            <view class='iconfont icon-arrow'></view>
            <view class='item'><text class='num'>②</text>邀请好友</view>
            <view class='iconfont icon-arrow'></view>
            <view class='item'>
              <view><text class='num'>③</text>满员发货</view>
              <!-- <view class='tip'>不满自动退款</view> -->
            </view>
         </view>
      </view>
      </view>
      <view class='userEvaluation' id="past1">
         <view class='title acea-row row-between-wrapper'>
           <view>用户评价({{replyCount}})</view>
           <navigator  class='praise' hover-class='none' url='/pages/goods_comment_list/index?product_id={{storeInfo.product_id}}'><text class='font-color'>{{replyChance}}%</text>好评率<text class='iconfont icon-jiantou'></text></navigator>
         </view>
         <userEvaluation reply="{{reply}}"></userEvaluation>
      </view>
      <view class='product-intro' id="past2">
        <view class='title'>产品介绍</view>
        <view class='conter'>
          <template is="wxParse" data="{{wxParseData:description.nodes}}"/>
        </view>
      </view>
      <view style='height:120rpx;'></view>
      </scroll-view>
      <view class='footer acea-row row-between-wrapper'>   
        <button open-type="contact" hover-class='none' class='item' send-message-title="{{storeInfo.store_name}}" send-message-img="{{storeInfo.image}}" send-message-path="/pages/goods_combination_details/index?id={{storeInfo.id}}" show-message-card>
    <view class='iconfont icon-kefu'></view>
    <view>客服</view>
    </button>
         <view bindtap='setCollect' class='item'>
      <view class='iconfont icon-shoucang1' wx:if="{{storeInfo.userCollect}}"></view>
      <view class='iconfont icon-shoucang' wx:else></view>
      <view>收藏</view>
    </view>
        <view  class="bnt acea-row">
          <view class="joinCart bnts" bindtap="goProduct">单独购买</view>
          <view class="buy bnts" bindtap="goCat" wx:if='{{productSelect.product_stock>0&&productSelect.quota>0}}'>立即开团</view>
          <view class="buy bnts bg-color-hui" wx:elif='{{productSelect.quota <= 0 || productSelect.product_stock <= 0}}'>已售罄</view>
        </view>
        <!-- <view class='bnt bg-color' style='width:43%;background-image: linear-gradient(to right,#fea10f 0%,#fa8013 100%);' bindtap='goProduct'>原价购买</view>
        <view class='bnt bg-color' style='width:43%' bindtap='goCat'>立即开团</view> -->
      </view>  
</view>
<product-window
  iSplus="{{iSplus}}" 
  limitNum="{{limitNum}}"
  attribute='{{attribute}}' 
  productAttr="{{productAttr}}" 
  productSelect="{{productSelect}}" 
  bind:myevent="onMyEvent" 
  bind:ChangeAttr="ChangeAttr" 
  bind:ChangeCartNum="ChangeCartNum"
  bind:iptCartNum="iptCartNum" 
></product-window>
<authorize bind:onLoadFun="onLoadFun"></authorize>
<import src="/wxParse/wxParse.wxml"/>
<home></home>