index.sjs 464 B

12345678910111213141516171819202122
  1. import render from './../../utils/render.sjs';
  2. function getCardIcon(extInfo, imgSrcPrefix) {
  3. const { imgUrl = '' } = extInfo || {};
  4. return render.getImageUrl(imgUrl, imgSrcPrefix);
  5. }
  6. function getTip(extInfo) {
  7. const { certCodeTips } = extInfo || {};
  8. return certCodeTips;
  9. }
  10. function getQrcode(info) {
  11. const { qrCodeUrl, qrCodeImgBase64 } = info || {};
  12. return qrCodeUrl || qrCodeImgBase64;
  13. }
  14. export default {
  15. getTip,
  16. getQrcode,
  17. getCardIcon,
  18. };