<!-- 吸顶 -->
<view class="ceiling" hidden="{{!ceilingShow}}">
  <view class="order-card white-bg">
    <navigator hover-class="none" bindtap="toDetail" class="order-card-main">
      <view class="order-card-content">
        <view class="listTitle">{{activeInfo.title}}</view>
        <text class="font12 black mTop5">场次：{{activeInfo.sname}}
          <text wx:if="{{activeInfo.policyName!=null}}"> 套餐：{{activeInfo.policyName}}</text>
        </text>
      </view>
    </navigator>
  </view>
  <view class="photo-date-list font12" style="width: 100%;">
    <view class=" center photo-date-list-title"><b>拍摄日期</b></view>
    <scroll-view class="date-tabs-wrap"  scroll-x="true" scroll-with-animation="true">
      <view class="date-tabs" style="width:{{picGroup.cameraPhotos.length*130}}rpx">
        <text wx:for="{{picGroup.cameraPhotos}}" wx:key="unique" class="date-tabs-item  {{index==activeDate?'subtitleColor':''}}" data-index="{{index}}" bindtap="dataChange">{{item.date}}</text>
      </view>
    </scroll-view>
  </view>
</view>
<scroll-view class="date-img-wrap" scroll-y="true" scroll-with-animation="true" type='list' bindscrolltolower='swipeUpload' bindscroll="scroll">
  <view style="width: 100%;z-index: 99;background-color: #fff;">
    <image wx:if="{{activeInfo.sharePhoto}}" src="{{activeInfo.sharePhoto}}" mode="widthFix" binderror="errorImg" style="width: 100%;max-height: 700rpx;" id="topImg"></image>
    <image wx:else src="{{imgPath}}{{activeInfo.logo}}" mode="widthFix" binderror="errorImg" style="width: 100%;max-height: 700rpx;" id="topImg"></image>
    <view class="modal-label">
      <view class="order-card white-bg">
        <navigator hover-class="none" bindtap="toDetail" class="order-card-main">
          <view class="order-card-content">
            <view class="listTitle">{{activeInfo.title}}</view>
            <text class="font12 black mTop5">场次：{{activeInfo.sname}}
              <text wx:if="{{activeInfo.policyName!=null}}"> 套餐：{{activeInfo.policyName}}</text>
            </text>
          </view>
        </navigator>
      </view>
      <view class="photo-date-list font12">
        <view class=" center photo-date-list-title"><b>拍摄日期</b></view>
        <scroll-view class="date-tabs-wrap " scroll-x="true" scroll-with-animation="true">
          <view class="date-tabs" style="width:{{picGroup.cameraPhotos.length*130}}rpx">
            <text wx:for="{{picGroup.cameraPhotos}}" wx:key="unique" class="date-tabs-item  {{index==activeDate?'subtitleColor':''}}" data-index="{{index}}" bindtap="dataChange">{{item.date}}</text>
          </view>
        </scroll-view>
      </view>
      <view class="scoreImg">
        <view id="left">
          <block wx:for="{{imgArr}}" wx:key="index">
            <template is="item" data="{{...item,selectMore,index}}" wx:if="{{location=='left'||index%2==0}}"></template>
          </block>
        </view>
        <view id="right">
          <block wx:for="{{imgArr}}" wx:key="index">
            <template is="item" data="{{...item,selectMore,index}}" wx:if="{{location=='right'||index%2==1}}"></template>
          </block>
        </view>
        <template name="item">
          <view style="position: relative;">
            <view class="item">
              <image class="item-img" src="{{url}}?x-oss-process=image/quality,q_10" mode="widthFix" webp="true" data-url="{{url}}" data-src="{{url}}?x-oss-process=image/quality,q_10" binderror="imgListBinderror" catchtap="{{selectMore?'checkRadio':'openpreviewImg'}}" data-id="{{index}}" data-flag="{{flag}}" data-index="{{index}}"></image>
              <!-- <image class="item-img" lazy-load="true" webp="true" wx:if='{{finishLoadFlag}}' mode='widthFix' src='{{url}}?x-oss-process=image/quality,q_10' /> -->
              <!-- <image class="item-img" lazy-load="true" webp="true" mode='widthFix' wx:else src='../../..https://img.bbztx.com/miniProgram/challengeFamily/loginLogo.png' bindload='finishLoad' data-index="{{index}}" /> -->
            </view>
            <text wx:if="{{selectMore}}" class="icon {{flag==false?'icon-checked':'icon-uncheck'}}" data-id="{{index}}" data-flag="{{flag}}" bindtap="checkRadio">

            </text>
          </view>
        </template>
      </view>
      <!-- <view style="height: 100rpx;"></view> -->
    </view>
  </view>
</scroll-view>
<view class="btn-bottom">
  <block wx:if="{{!selectMore}}">
    <view bindtap="share">分享给亲友</view>
    <view bindtap="jumPage">查看孩子更多照片</view>
  </block>
  <block wx:else>
    <view bindtap="cancel">取消</view>
    <view bindtap="save">保存</view>
  </block>
</view>
<view class="save-photo" bindtap="selectMore" wx:if="{{selectMore==false}}">
  <view>批量</view>
  <view>保存</view>
</view>
<previewImage id="previewComponent" previewImgList="{{preList}}" previewImg="{{defImg}}" originalArr="{{originalArr}}" />
<share make="{{showShare}}" type="1" bill="1" to="/pages/growup/activePhoto/bill" />