options.wxs 306 Bytes
Newer Older
程默 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14
/* eslint-disable */
var PRESET_ICONS = ['qq', 'weibo', 'wechat', 'link', 'qrcode', 'poster'];

function getIconURL(icon) {
  if (PRESET_ICONS.indexOf(icon) !== -1) {
    return 'https://img.yzcdn.cn/vant/share-icon-' + icon + '.png';
  }

  return icon;
}

module.exports = {
  getIconURL: getIconURL,
};