<view class="noimg" wx:if="{images.length==0}}"> <view class="nodataimg" > <image src="/img/nodataimg.png"></image> </view> <view class="nomoer nomoredata">没有更多了哦~</view> </view> <view class="photoptop flexone" wx:else> <view class="photoitem" wx:for='{{images}}' wx:key="" bindtap="previewimg" data-index="{{index}}"> <image src="{{item}}"></image> </view> </view>