Authored by zhangxiaoru

share

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