album.wxml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <!--pages/album/album.wxml-->
  2. <!-- 引入组件 -->
  3. <import src="/component/welCropper/welCropper.wxml" />
  4. <!-- 调用组件 -->
  5. <template is="welCropper" data="{{cropperData:cropperData, cropperMovableItems:cropperMovableItems, cropperChangableData:cropperChangableData}}"></template>
  6. <view class="album">
  7. <view class="album-state">
  8. <text>相册状态</text>
  9. <view class="state" bindtap="setState">
  10. <view class="left">
  11. 私密
  12. </view>
  13. <view class="right">
  14. 公开
  15. </view>
  16. <view class="{{stateFlag ? 'open' : 'private'}}"></view>
  17. </view>
  18. </view>
  19. <view class="album-code">
  20. <text>相册提取码</text>
  21. <view wx:if="{{stateFlag}}">
  22. 公开相册凭手机尾号提取
  23. </view>
  24. <view class="code" wx:if="{{!stateFlag}}">
  25. <view wx:for="{{photoBoxToken}}" wx:key="{{index}}">{{item}}</view>
  26. </view>
  27. </view>
  28. <view class="photo">
  29. <view class="img" bindtap="addPhoto" data-mode='rectangle'>
  30. <image src="../../static/image/add.jpg"></image>
  31. </view>
  32. <view class="img" wx:for="{{photoList}}" wx:key="{{index}}" bindtap="preview" data-index="{{index}}">
  33. <image src="{{item.path}}" mode='aspectFill'></image>
  34. <image src="../../static/image/delect.png" class="delect" catchtap="removePhoto" data-id="{{item.id}}"></image>
  35. </view>
  36. </view>
  37. </view>