diy_picMax.wxml 3.27 KB
<!-- 图片组合 -->
<block wx:if="{{is_time_show}}">
<wxs module="g_filter" src="../diy_notice/g_filter.wxs"></wxs>
<!-- 如果有纵向合并的时候,要求要按照绝对布局来实现 -->
<block wx:if="{{is_yspan}}">
	<view class="picMax2" style="height: {{pic_height}}rpx; font-size: 0">
		<view wx:for="{{object.data}}" class="pic_item2 width_{{item.x_span}} height_{{item.y_span}} mar_x{{item.fir.x}} mar_y{{item.fir.y}} mgt2">
			<block wx:if="{{g_filter.has_char(item.wxapp_url,'plugin')>=0}}">
				<navigator url="{{item.wxapp_url}}">
					<image src="{{item.src}}" style="display: block; height: 100%; width: 100%;"></image>
				</navigator>
			</block>
			<block wx:elif="{{item.AppId}}">
				<navigator target="miniProgram" app-id="{{item.AppId}}" path="{{item.wxapp_url}}">
					<image src="{{item.src}}" mode="widthFix" style="display: block; height: 100%; width: 100%;"></image>
				</navigator>
			</block>
			<block wx:elif="{{item.finderUserName && item.video_type}}">
				<image bindtap="nv_void" data-feedId="{{item.feedId}}" data-video_type="{{item.video_type}}" data-finderUserName="{{item.finderUserName}}"  wx:if="{{item.wxapp_url}}"  src="{{item.src}}" style="display: block; height: 100%; width: 100%;"></image>
				<image bindtap="nv_void" data-feedId="{{item.feedId}}" data-video_type="{{item.video_type}}" data-finderUserName="{{item.finderUserName}}"  wx:else  src="{{item.src}}" style="display: block; height: 100%; width: 100%;"></image>
			</block>
			<block wx:else>
				<image bindtap='gopage' wx:if="{{item.wxapp_url}}" data-url="{{item.wxapp_url}}" src="{{item.src}}" style="display: block; height: 100%; width: 100%;"></image>
				<image bindtap='previewImage' wx:else data-src="{{item.src}}" src="{{item.src}}" style="display: block; height: 100%; width: 100%;"></image>
			</block>
		</view>
	</view>
</block>
<block wx:else>
	<view class="picMax">
		<view wx:for="{{object.data}}" class="pic_item width_{{item.x_span}} mgt2">
			<block wx:if="{{g_filter.has_char(item.wxapp_url,'plugin')>=0}}">
				<navigator url="{{item.wxapp_url}}">
					<image src="{{item.src}}" mode="widthFix" style="display: block;"></image>
				</navigator>
			</block>
			<block wx:elif="{{item.AppId}}">
				<navigator target="miniProgram" app-id="{{item.AppId}}" path="{{item.wxapp_url}}">
					<image src="{{item.src}}" mode="widthFix" style="display: block;"></image>
				</navigator>
			</block>
			<block wx:elif="{{item.finderUserName && item.video_type}}">
				<image bindtap="nv_void" data-feedId="{{item.feedId}}" data-video_type="{{item.video_type}}" data-finderUserName="{{item.finderUserName}}" wx:if="{{item.wxapp_url}}"  src="{{item.src}}" mode="widthFix" style="display: block;"></image>
				<image bindtap="nv_void" data-feedId="{{item.feedId}}" data-video_type="{{item.video_type}}" data-finderUserName="{{item.finderUserName}}" wx:else  src="{{item.src}}" style="display: block;" mode="widthFix"></image>
			</block>
			<block wx:else>
				<image bindtap='gopage' wx:if="{{item.wxapp_url}}" data-url="{{item.wxapp_url}}" src="{{item.src}}" mode="widthFix" style="display: block;"></image>
				<image bindtap='previewImage' wx:else data-src="{{item.src}}" src="{{item.src}}" style="display: block;" mode="widthFix"></image>
			</block>
		</view>
		<view class="picMax-clear"></view>
	</view>
</block>
</block>