Authored by zhangxiaoru

share

... ... @@ -53,8 +53,8 @@ function shareBase(options) {
break;
case 'weixin':
// console.log(defOption.weixinUrl)
if (defOption.weixinUrl.indexOf('http://') < 0) {
defOption.weixinUrl = 'http://' + defOption.weixinUrl;
if (defOption.weixinUrl.indexOf('http:') < 0) {
defOption.weixinUrl = 'http:' + defOption.weixinUrl;
}
openUrl = 'http://s.jiathis.com/qrcode.php?url=' + defOption.weixinUrl + '&desc=' +
defOption.desc + '&title=' + defOption.title + '&description=' +
... ... @@ -71,7 +71,6 @@ function shareBase(options) {
if (!defOption.self) {
return;
}
sharebox = defOption.self.closest('.share-to').find('.weixin-share-box');
if (sharebox.length > 0) {
... ...