切换导航条
此项目
正在载入...
登录
景龙
/
xingqiu
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
景龙
6 years ago
提交
c7f3a1c7a8adfebb9fa494b5dd0ec52c1784b19b
1 个父辈
d0a59307
1 个管道 的构建
通过
耗费 1 秒
增加微博分享
变更
3
构建
1
隐藏空白字符变更
内嵌
并排对比
正在显示
3 个修改的文件
包含
22 行增加
和
6 行删除
public/themes/simpleboot3/public/assets/js/public.js
public/themes/simpleboot3/public/slide.html
public/themes/simpleboot3_mobile/public/assets/js/public.js
public/themes/simpleboot3/public/assets/js/public.js
查看文件 @
c7f3a1c
...
...
@@ -138,6 +138,22 @@ $(function(){
$
(
"#searchForm"
).
submit
();
//处理事件
}
});
var
share_url
=
encodeURIComponent
(
location
.
href
);
var
share_title
=
encodeURIComponent
(
document
.
title
);
//分享到微博
$
(
'.weibo'
).
click
(
function
(){
var
param
=
{
url
:
share_url
,
title
:
share_title
,
rnd
:
new
Date
().
valueOf
()
};
var
temp
=
[];
for
(
var
p
in
param
)
{
temp
.
push
(
p
+
'='
+
encodeURIComponent
(
param
[
p
]
||
''
))
}
window
.
open
(
'http://v.t.sina.com.cn/share/share.php?'
+
temp
.
join
(
'&'
));
});
});
//点赞收藏
...
...
public/themes/simpleboot3/public/slide.html
查看文件 @
c7f3a1c
...
...
@@ -17,12 +17,12 @@
</notempty>
</div>
<!-- wx分享 -->
<div
class=
"wx_go"
>
<div
class=
"wx_go
weixin
"
>
<img
src=
"__TMPL__/public/assets/starImg/bicon_04.png"
alt=
""
>
<p>
168
</p>
</div>
<!-- wb分享 -->
<div
class=
"wb_go"
>
<div
class=
"wb_go
weibo
"
>
<img
src=
"__TMPL__/public/assets/starImg/bicon_05.png"
alt=
""
>
<p>
168
</p>
</div>
...
...
public/themes/simpleboot3_mobile/public/assets/js/public.js
查看文件 @
c7f3a1c
...
...
@@ -190,10 +190,10 @@ $(function() {
});
//分享到微信
$
(
'.weixin'
).
click
(
function
(){
var
target_url
=
"http://qr.liantu.com/api.php?text="
+
share_url
;
window
.
open
(
target_url
,
'weixin'
,
'height=320, width=320'
);
});
// $('.weixin').click(function(){
// var target_url = "http://qr.liantu.com/api.php?text="+share_url;
// window.open(target_url, 'weixin', 'height=320, width=320');
// });
});
//弹框
...
...
请
注册
或
登录
后发表评论