<!--component/dialog/dialog.wxml-->

<view class='wxy-dialog fade {{show ? "in":""}}'>
  <view wx:if="{{show}}">
    <view data-id="mask" class="dialog-mask" capture-catch:touchstart='_close'></view>
    <view class='dialog-body' wx:if="{{showDefalut && dialog.state !== 'success'}}">
      <view class='main' bindtap='_handleGo'>
        <view class='content' style="background-image: url('{{dialog.image}}');">
        </view>
      </view>
      <view class="close" bindtap='_close'></view>
    </view>
    <view class='dialog-body' bindtap='_close' wx:if="{{showDefalut && dialog.state === 'success'}}">
      <view wx:if="{{dialog.image}}">
        <image class="image" mode="widthFix" src='{{dialog.image}}'></image>
      </view>
    </view>
    <slot name="after"></slot>
  </view>
</view>


<!--<view class='wxy-dialog fade {{show ? "in":""}}'>
  <view wx:if="{{show}}">
    <view data-id="mask" class="dialog-mask" capture-catch:touchstart='_close'></view>
    <view class='dialog-body' wx:if="{{showDefalut && dialog.state !== 'success'}}">
      <view class='main'>
        <view class='content' style="background-image: url('{{dialog.image}}');">
          <view class="">恭喜你，领取成功！</view>
          <view class="p">可在{{dialog.content}}中查看奖励哦～</view>
          <view class="tip-text" bindtap='_handleGo'>{{dialog.tip}}</view>
        </view>
      </view>
      <view class="close" bindtap='_close'></view>
    </view>
    <view class='dialog-body' bindtap='_close' wx:if="{{showDefalut && dialog.state === 'success'}}">
      <view wx:if="{{dialog.image}}">
        <image class="image"  mode="widthFix" src='{{dialog.image}}'></image>
      </view>
    </view>
    <slot name="after"></slot>
  </view>
</view>-->
