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
90313b40774560ab3c39b938bc2ddddce9bc7ea5
2 parents
a27dde17
b11734ce
test wechat
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
website/view/script/news/detailmobile.php
website/view/script/news/detailmobile.php
View file @
90313b4
...
...
@@ -70,6 +70,7 @@
<div
id=
"share"
class=
"share"
cover-url=
"
<?php
$thumb
=
empty
(
$this
->
view
->
info
[
'client_thumb'
])
?
$this
->
view
->
info
[
'thumb'
]
:
$this
->
view
->
info
[
'client_thumb'
];
echo
Lib_Images
::
getImageUrl
(
$thumb
,
'source'
,
'fragmentimg'
);
?>
"
desc=
"
<?php
echo
Lib_Utils_StringHelper
::
substr_full_en
(
Lib_Utils_StringHelper
::
stripTags
(
$this
->
view
->
info
[
'content'
]),
200
);
?>
"
data-link=
"
<?php
echo
SITE_MAIN
.
'/news/detail/id/'
.
$this
->
view
->
info
[
'id'
];
?>
"
>
<ul
class=
"clearfix"
>
<li
class=
"yohoo-share-button-sina"
><a
href=
"javascript:;"
></a></li>
...
...
@@ -89,7 +90,7 @@
var _nonceStr = json.nonceStr.toString();
var _signature = json.signature.toString();
wx.config({
debug:
tru
e,
debug:
fals
e,
appId: _appId,
timestamp: _timestamp,
nonceStr: _nonceStr,
...
...
@@ -135,9 +136,9 @@
}
});
//构造分享信息
var shareTitle = $('
.
detail
-
title
').find('
.
title
').text();
var shareTitle = $('
.
title
').text();
var shareImg = $(".share").attr("cover-url");
var shareDesc =
'
在长大的过程中,我才慢慢发现,我身边的所有事,别人跟我说的所有事,那些所谓本来如此,注定如此的事,它们其没有非如此,事情是可以改变的。更重要的是,有些事既然错了,那就该做出改变。
'
;
var shareDesc =
$(".share").attr("desc")
;
var shareLink = $(".share").attr("data-link");
/*
* 微信分享
...
...
@@ -159,9 +160,9 @@
wx.onMenuShareWeibo(shareData);
});
wx.error(function (res) {
alert(res.errMsg);
});
// wx.error(function (res) {
// alert(res.errMsg);
// });
seajs.use('
mobile
'
,
function
(
mobile
)
{
mobile
.
detail
();
});
...
...
Please
register
or
login
to post a comment