index.wxml 1.3 KB

123456789101112131415161718192021
  1. <view class="preview_box" wx:if="{{previewHideStatus}}" style="top:{{preview_box_top}}" catchtouchmove='stopPageScroll'>
  2. <view class="totalimg">{{imgindex}}/{{previewImgList.length}}</view>
  3. <view class="preview_box1" style="left:{{left}}" bindtap="jingzhi">
  4. <block wx:for="{{previewImgList}}" wx:key="key">
  5. <view class="img_box">
  6. <view bindtouchstart='touchStart' bindtouchmove='touchMove' bindtouchend='touchEnd'>
  7. <movable-area scale-area>
  8. <movable-view direction="all" animation catchscale="onScale" scale scale-min="1" scale-max="5" scale-value="{{scale}}">
  9. <image src="{{item.url}}" lazy-load="true" bindload='bindload' style="width:100%;" mode="widthFix"></image>
  10. </movable-view>
  11. </movable-area>
  12. </view>
  13. </view>
  14. <view style="position: fixed;bottom: 0;left: 0; height: 150rpx;width: 100%;display: flex;justify-content: center;">
  15. <view wx:if="{{!previewImgList[imgindex-1].originalShow&&previewHideStatus&&preview_box_top==0}}" catchtap="showOriginal" class="originalBtn" data-index="{{index}}">查看原图</view>
  16. <view wx:if="{{previewHideStatus&&preview_box_top==0}}" catchtap="downloadOriginal" class="originalBtn" data-index="{{index}}">保存原图</view>
  17. </view>
  18. </block>
  19. </view>
  20. </view>