<block wx:if="{{item_data.show_type == 'image' || item_data.type == 'image'}}">
  <image bindtap="navigator" data-title="{{item_data.title}}" data-target="{{item_data.data}}" data-type="{{item_data.type}}" mode="{{block_type == 'home3'?'scaleToFill':'widthFix'}}" src="{{item_data.image}}" style="width:{{block_type == 'home3'?(item_data.width/1080*750)+'rpx':''}}; height:{{block_type == 'home3'?(item_data.height/1080*750)+'rpx':''}};flex:1;" lazy-load="true" class='{{imgShow? "show" : "hide"}}' bindload='load'></image>
</block>
<block wx:elif="{{item_data.show_type == 'goods_simple' || item_data.type == 'goods_simple'}}">
    <image bindtap="navigator" data-title="{{item_data.title}}" data-target="{{item_data.data}}" data-type="{{item_data.type}}" mode="{{block_type == 'home3'?'scaleToFill':'widthFix'}}" src="{{item_data.image}}" style="width:{{block_type == 'home3'?(item_data.width/1080*750)+'rpx':''}}; height:{{block_type == 'home3'?(item_data.height/1080*750)+'rpx':''}};flex:1;" lazy-load="true" class='{{imgShow? "show" : "hide"}}' bindload='load'></image>
  </block>

<block wx:elif="{{item_data.show_type == 'brand'|| item_data.type == 'brand'}}">
    <image src="{{item_data.image}}" bindload='load' class='{{imgShow? "show" : "hide"}}' lazy-load="true" mode='widthFix' 
           style='min-height:250rpx;' data-title="{{item_data.title}}"></image>
</block>

<block wx:elif="{{item_data.show_type == 'ugc'|| item_data.type == 'ugc'}}">
    <view>
        <text class='ugc_title'>{{item_data.title}}</text>
    </view>
    <image src="{{item_data.image}}" bindload='load' class='{{imgShow? "show" : "hide"}}' data-type="{{item_data.type}}" bindtap="navigator" data-target="{{item_data.data}}" mode='widthFix' lazy-load="true" data-title="{{item_data.title}}"></image>
</block> 

<block wx:elif="{{item_data.show_type == 'fcode'|| item_data.type == 'fcode'}}">
    <view class='fcode_item' data-target="{{item_data.data}}" bindtap="navigator" data-type="{{item_data.type}}">
      <view class='fcode_goods'>
        <view>
          <image src='{{goods.goods_image_url}}'></image>
        </view>
        <view>
          <view>{{goods.goods_mobile_name}}</view>
          <view class='fcode'>{{fcode.fcode}}</view>
        </view>
      </view>
      <view class='fcode_content'>
        <view class='validity'>
           <text>有效期至{{fcode.usable_time}}</text> 
        </view>
        <view class='fcode_state'>
            <text style="background-color:{{fcode.state.bgColor}}">{{fcode.state.title}}</text>
        </view>
      </view>
    </view>
</block>

<block wx:elif="{{item_data.show_type == 'video'|| item_data.type == 'video'}}">
   <video id="myVideo" src="{{item_data.data}}" style="width:100%;height:{{(item_data.height/1080*750)+'rpx'}}" controls></video>
</block>

<block wx:elif="{{item_data.show_type == 'wxbutton'}}">
  <wxbutton item_data="{{item_data}}"></wxbutton>
</block>