<view class="overlay" wx:if='{{show}}' style="'z-index':{{zIndex}}">
  <view class="toast">
    <image class="icon" mode="widthFix" src="{{cdn_url}}/images/icon/{{type=='loading'? 'loading.gif':(type + '.png')}}" />
    <view class='toast-con'>
        <text>
          {{message}}
        </text>
    </view>

    <view class="toast-footer" wx:if="{{ type !== 'loading' }}">
      <button bindtap="clear">
        确定
      </button>
    </view>
  </view>
</view>
  