album.wxml 1.2 KB

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