123456789101112131415161718192021222324252627282930313233 |
- <!--pages/album/album.wxml-->
- <view class="album">
- <view class="album-state">
- <text>相册状态</text>
- <view class="state" bindtap="setState">
- <view class="left">
- 私密
- </view>
- <view class="right">
- 公开
- </view>
- <view class="{{stateFlag ? 'open' : 'private'}}"></view>
- </view>
- </view>
- <view class="album-code">
- <text>相册提取码</text>
- <view wx:if="{{stateFlag}}">
- 公开相册凭手机尾号提取
- </view>
- <view class="code" wx:if="{{!stateFlag}}">
- <view wx:for="{{photoBoxToken}}" wx:key="{{index}}">{{item}}</view>
- </view>
- </view>
- <view class="photo">
- <view class="img" bindtap="addPhoto">
- <image src="../../static/image/add.jpg"></image>
- </view>
- <view class="img" wx:for="{{photoList}}" wx:key="{{index}}" bindtap="preview" data-index="{{index}}">
- <image src="{{item.path}}" mode='aspectFill'></image>
- <image src="../../static/image/delect.png" class="delect" bindtap="removePhoto" data-id="{{item.id}}"></image>
- </view>
- </view>
- </view>
|