index.sjs 351 B

12345678910111213141516
  1. import render from './../../utils/render.sjs';
  2. function showPhoto(extInfo) {
  3. const { certShowPhoto = 'Y' } = extInfo || {};
  4. return certShowPhoto === 'Y';
  5. }
  6. function getCardIcon(extInfo, imgSrcPrefix) {
  7. const { imgUrl = '' } = extInfo || {};
  8. return render.getImageUrl(imgUrl, imgSrcPrefix);
  9. }
  10. export default {
  11. showPhoto,
  12. getCardIcon,
  13. };