...
|
...
|
@@ -31,25 +31,25 @@ function shareBase(options) { |
|
|
switch (defOption.channel) {
|
|
|
case 'weibo':
|
|
|
openUrl = 'http://service.weibo.com/share/share.php?url=' + defOption.url + '&title=' +
|
|
|
defOption.title + '&appkey=3739328910&searchPic=true&pic=' + defOption.image;
|
|
|
defOption.title + '&appkey=3739328910&searchPic=true&pic=https:' + defOption.image;
|
|
|
break;
|
|
|
case 'tweibo':
|
|
|
openUrl = 'http://share.v.t.qq.com/index.php?c=share&a=index&url=' + defOption.url + '&title=' +
|
|
|
defOption.title + '&appkey=c0af9c29e0900813028c2ccb42021792&pic=' + defOption.image;
|
|
|
defOption.title + '&appkey=c0af9c29e0900813028c2ccb42021792&pic=https:' + defOption.image;
|
|
|
break;
|
|
|
case 'qzone':
|
|
|
openUrl = 'http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=' + defOption.url + '&title=' +
|
|
|
defOption.title + '&desc=&summary=' + defOption.desc + '&site=YOHO!有货&pics=' + defOption.image;
|
|
|
defOption.title + '&desc=&summary=' + defOption.desc + '&site=YOHO!有货&pics=https:' + defOption.image;
|
|
|
break;
|
|
|
case 'renren':
|
|
|
openUrl = 'http://widget.renren.com/dialog/share?resourceUrl=' + defOption.url + '&srcUrl=' +
|
|
|
defOption.url + '&desc=' + defOption.desc + '&title=' + defOption.title + '&description=' +
|
|
|
defOption.desc + '&pic=' + defOption.image;
|
|
|
defOption.desc + '&pic=https:' + defOption.image;
|
|
|
break;
|
|
|
case 'qq':
|
|
|
openUrl = 'http://connect.qq.com/widget/shareqq/index.html?url=' + defOption.url + '&desc=' +
|
|
|
defOption.desc + '&title=' + defOption.title.replace('%', '') + '&desc=&summary=' +
|
|
|
defOption.desc + '&site=YOHO!有货&pics=' + defOption.image;
|
|
|
defOption.desc + '&site=YOHO!有货&pics=http:' + defOption.image;
|
|
|
break;
|
|
|
case 'weixin':
|
|
|
// console.log(defOption.weixinUrl)
|
...
|
...
|
|