<import-sjs from="./index.sjs" name="page" />
<wrapper>
  <view class="cert-receive-component">
    <view class="result-content {{page.getCardMode(componentData)}}">
      <el-loading a:if="{{ loading }}" tip="领取中..."/>
      <block a:else>
        <image src="{{ result.success? successIcon: failIcon }}" class="result-icon"/>
        <view class="result-title">
          领卡{{ result.success? '成功' : '失败' }}
        </view>
        <view class="result-text">
          {{ result.text }}
        </view>
      </block>
    </view>
    <view class="back-home-button" onTap="toHomeHandel">返回首页</view>
  </view>
</wrapper>
