Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOOD
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
whb
10 years ago
Commit
33b8cd23e2f6741afac433d8b8655d64f27fe409
2 parents
2af83d6e
35abeb0d
测试微信
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
website/view/script/news/detailmobile.php
website/view/script/news/detailmobile.php
View file @
33b8cd2
...
...
@@ -134,16 +134,20 @@
}
});
wx.error(function (res) {
alert(res.errMsg);
});
seajs.use(['
jquery
', '
mobile
'],function($, mobile) {
mobile.detail();
//构造分享信息
var shareTitle = $('
.
detail
-
title
').find('
.
title
')
var shareImg = $(".share").attr("cover-url");
var shareDesc = '
在长大的过程中,我才慢慢发现,我身边的所有事,别人跟我说的所有事,那些所谓本来如此,注定如此的事,它们其没有非如此,事情是可以改变的。更重要的是,有些事既然错了,那就该做出改变。'
;
var
shareLink
=
$
(
".share"
).
attr
(
"data-link"
);
/*
* 微信分享
*/
wx
.
ready
(
function
()
{
//构造分享信息
var shareTitle = '
123123
';//$('
.
detail
-
title
').find('
.
title
')
var shareImg = $(".share").attr("cover-url");
var shareDesc = '
在长大的过程中,我才慢慢发现,我身边的所有事,别人跟我说的所有事,那些所谓本来如此,注定如此的事,它们其没有非如此,事情是可以改变的。更重要的是,有些事既然错了,那就该做出改变。
';
var shareLink = '
http
:
//movie.douban.com/subject/25785114/';
var
shareData
=
{
title
:
shareTitle
,
desc
:
shareDesc
,
...
...
@@ -160,11 +164,6 @@
wx
.
onMenuShareWeibo
(
shareData
);
});
wx
.
error
(
function
(
res
)
{
alert
(
res
.
errMsg
);
});
seajs
.
use
([
'jquery'
,
'mobile'
],
function
(
$
,
mobile
)
{
mobile
.
detail
();
});
</script>
<?php
$this
->
_endblock
();
?>
...
...
Please
register
or
login
to post a comment