<!--pages/access/access.wxml-->
<view class="access">
    <view class="information-item">
        <image class="head" src="{{avatar ? avatar : '../../static/image/default.png'}}"></image>
        <view class="access-name">
            <text class="name">{{PhotoBoxInfo.user.nickName}}</text>
            <text>{{PhotoBoxInfo.user.likeCount}}赞</text>
        </view>
        <view id="{{PhotoBoxInfo.user.id}}" class="stick" bindtap="userLike">{{PhotoBoxInfo.isLike ? '已赞' : '点赞'}}</view>
    </view>
    <scroll-view scroll-y style="height: 80%; overflow: hidden;">
        <view class="photo">
            <view class="img" wx:for="{{PhotoBoxInfo.photoBoxList}}" wx:key="{{index}}" data-index="{{index}}">
                <image id="{{item.path}}" style="background: skyblue;" src="{{item.path}}" mode='aspectFill' bindtap="preview" ></image> 
            </view>                 
        </view>            
    </scroll-view>
</view>