...
|
...
|
@@ -183,7 +183,7 @@ $(function() { |
|
|
|
|
|
var share_url = encodeURIComponent(location.href);
|
|
|
var share_title = encodeURIComponent(document.title);
|
|
|
//分享到微博
|
|
|
//分享到微博弃用
|
|
|
$('.weibo').click(function() {
|
|
|
var param = {
|
|
|
url: share_url,
|
...
|
...
|
@@ -197,8 +197,9 @@ $(function() { |
|
|
window.open('http://v.t.sina.com.cn/share/share.php?' + temp.join('&'));
|
|
|
});
|
|
|
|
|
|
$('.weibo_share').click(function() {
|
|
|
$('#wb_share').submit();
|
|
|
//微博分享
|
|
|
$('#wb_share').click(function() {
|
|
|
thirdShare('/portal/login/wb_share');
|
|
|
});
|
|
|
|
|
|
//微博登录
|
...
|
...
|
@@ -207,6 +208,29 @@ $(function() { |
|
|
});
|
|
|
});
|
|
|
|
|
|
//第三方分享
|
|
|
function thirdShare(url){
|
|
|
var title = $(document).attr("title");
|
|
|
var share_url = window.location.href;
|
|
|
$.ajax({
|
|
|
type: 'POST',
|
|
|
url: url,
|
|
|
data: {
|
|
|
'title': title,
|
|
|
'share_url': share_url
|
|
|
},
|
|
|
dataType: 'json',
|
|
|
async: false,
|
|
|
success: function(data) {
|
|
|
if (data.code == 1) {
|
|
|
mask(data.msg);
|
|
|
} else {
|
|
|
mask(data.msg);
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
//点赞收藏
|
|
|
function operation(url, id) {
|
|
|
if (id == '' || id == undefined) {
|
...
|
...
|
|