<view class="photo" wx:if="{{photos.length > 0}}">
    <image class="photo-src" wx:for="{{photos}}" wx:key="photo" bindtap="openPhotos" data-index="{{index}}" src="{{item}}" mode="widthFix"></image>
</view>
<view class="photo-null" wx:else>
    <image class="photo-null-icon" src="/static/images/null_icon.png" mode="widthFix"></image>
    <view class="photo-null-title">暂未上传照片</view>
</view>