diy_heatImg.wxml
1.37 KB
<!--components/diy_heatImg/diy_heatImg.wxml-->
<wxs module="g_filter" src="../diy_notice/g_filter.wxs"></wxs>
<view class="imgbox">
<image src="{{object.img}}" mode="widthFix" class="img"></image>
<block wx:for="{{object.data}}">
<block wx:if="{{g_filter.has_char(item.wxapp_url,'plugin')>=0}}">
<navigator url="{{item.wxapp_url}}" class="item" style="width: {{item.width*2}}rpx;height: {{item.height*2}}rpx;left: {{item.left*2}}rpx;top: {{item.top*2}}rpx;"></navigator>
</block>
<block wx:elif="{{item.AppId}}">
<navigator url="{{item.wxapp_url}}" target="miniProgram" app-id="{{item.AppId}}" path="{{item.wxapp_url}}" class="item" style="width: {{item.width*2}}rpx;height: {{item.height*2}}rpx;left: {{item.left*2}}rpx;top: {{item.top*2}}rpx;"></navigator>
</block>
<block wx:elif="{{item.finderUserName && item.video_type}}">
<view catchtap="nv_void" data-feedid="{{item.feedId}}" data-video_type="{{item.video_type}}" data-finderUserName="{{item.finderUserName}}" class="item" style="width: {{item.width*2}}rpx;height: {{item.height*2}}rpx;left: {{item.left*2}}rpx;top: {{item.top*2}}rpx;"></view>
</block>
<block wx:else>
<view class="item" data-url="{{item.wxapp_url}}" catchtap="go_url" style="width: {{item.width*2}}rpx;height: {{item.height*2}}rpx;left: {{item.left*2}}rpx;top: {{item.top*2}}rpx;"></view>
</block>
</block>
</view>