index.wxml 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. <view>
  2. <view wx:for="{{list}}" wx:for-item="item" wx:for-index="index" wx:key="index" class="mt20">
  3. <i-card title="{{item.name}}" data-index="{{index}}" i-class="pt30">
  4. <view slot="content">证书类型: {{item.type}}</view>
  5. <view slot="content" class="mt20">课程学时: {{item.totalXs/10}}</view>
  6. <view slot="content" class="mt20">学习时间: {{item.startDate}} 到 {{item.endDate}}</view>
  7. <view slot="content" class="mt20">
  8. 证书编号:{{item.rzCode}}
  9. </view>
  10. <view slot="content" class="mt20 flex tc">
  11. <i-button inline type="primary" wx:if="{{item.signUrl}}" bindtap="preview" data-url="{{item.signUrl}}">查看证明
  12. </i-button>
  13. <i-button inline type="primary" wx:else bindtap="makeSign" data-index="{{index}}" >生成证明</i-button>
  14. </view>
  15. </i-card>
  16. </view>
  17. <view wx:if="{{from==-1}}" class="m20">
  18. <view class="padding tc">没有更多了</view>
  19. </view>
  20. </view>
  21. <modal title="打印学时证明" hidden="{{!signModel}}"
  22. cancel-text="取消"
  23. bindcancel="cancelPrint"
  24. confirm-text="生成证明"
  25. bindconfirm="printCert" >
  26. <i-panel title="">
  27. <i-input title="证书编号" value="{{form.rzCode}}" name="rzCode" bind:change="updateRzcode"> </i-input>
  28. </i-panel>
  29. </modal>