...
|
...
|
@@ -22,6 +22,18 @@ function shareBase(options) { |
|
|
|
|
|
defOption = $.extend(defOption, options);
|
|
|
|
|
|
if (defOption.image && defOption.image.substr(0, 2) === '//') {
|
|
|
defOption.image = 'http:' + defOption.image;
|
|
|
}
|
|
|
|
|
|
if (defOption.weixinUrl && defOption.weixinUrl.substr(0, 2) === '//') {
|
|
|
defOption.weixinUrl = 'http:' + defOption.weixinUrl;
|
|
|
}
|
|
|
|
|
|
if (defOption.url && defOption.url.substr(0, 2) === '//') {
|
|
|
defOption.url = 'http:' + defOption.url;
|
|
|
}
|
|
|
|
|
|
if ($.inArray(defOption.channel, shareChannels) === -1) {
|
|
|
alert('不存在的分享平台!');
|
|
|
return false;
|
...
|
...
|
|