index.wxml 956 B

123456789101112
  1. <wxs src="index.wxs" module="album"></wxs>
  2. <view class="l-class" style="display:flex">
  3. <view style="{{album.gridStyle(gapRow, gapColumn, multipleSize, everyRowNumber)}}">
  4. <block wx:for="{{showUrls}}" wx:key="index" class="child">
  5. <view class="imageContainer {{album.dimBack(isLong, index, maxNumber, previewFullImage)}}" style="{{album.blockStyle(urls, horizontalScreen, shortSideValue, singleSize, multipleSize)}}">
  6. <image class="{{album.blockClass(urls, horizontalScreen) + ' ' + album.dim(isLong, index, maxNumber, previewFullImage)}}" id="{{index}}" bind:tap="onPreviewTap" style="{{album.blockStyle(urls, horizontalScreen, shortSideValue, singleSize, multipleSize)}}" src="{{newType?item[key]:item}}" mode="{{urls.length === 1?singleMode:multipleMode}}"/>
  7. <view wx:if="{{album.image(isLong, index, maxNumber, previewFullImage)}}" class="text">+{{urls.length-maxNumber}}</view>
  8. </view>
  9. </block>
  10. </view>
  11. </view>