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
Email Patches
Plain Diff
Browse Files
Authored by
tmq
9 years ago
Commit
f3158f490011467c7ebee454f1b90d1914ba7850
1 parent
d868df50
test
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
res/js/yohood.js
website/view/script/news/detailmobile.php
res/js/yohood.js
View file @
f3158f4
...
...
@@ -617,23 +617,23 @@ define('yohood', function(require, exports) {
shareUrl
=
$
(
".share"
).
attr
(
"data-link"
);
shareCover
=
$
(
".share"
).
attr
(
"cover-url"
);
detailTitle
=
$
(
'.detail-title'
).
find
(
'h2'
);
detailTitle
=
$
(
"input[name=title]"
).
val
(
);
detailSubtitle
=
$
(
'.detail-title'
).
find
(
'h3'
);
//分享
share
.
init
({
shareUrl
:
shareUrl
,
img
:
shareCover
,
sinaText
:
'【YO’HOOD 2016】'
+
detailTitle
.
text
()
+
'\r\n'
+
detailSubtitle
.
text
()
+
'@YOHO潮流志'
,
sinaText
:
'【YO’HOOD 2016】'
+
detailTitle
+
'\r\n'
+
detailSubtitle
.
text
()
+
'@YOHO潮流志'
,
fbTextFunction
:
function
()
{
return
{
des
:
'【YO’HOOD 2016】'
+
detailTitle
.
text
()
+
'\r\n'
+
detailSubtitle
.
text
()
+
'#YO’HOOD 2016'
,
name
:
'【YO’HOOD 2016】'
+
detailTitle
.
text
()
+
'\r\n'
+
detailSubtitle
.
text
()
+
'#YO’HOOD 2016'
,
caption
:
'【YO’HOOD 2016】'
+
detailTitle
.
text
()
+
'\r\n'
+
detailSubtitle
.
text
()
+
'#YO’HOOD 2016'
,
des
:
'【YO’HOOD 2016】'
+
detailTitle
+
'\r\n'
+
detailSubtitle
.
text
()
+
'#YO’HOOD 2016'
,
name
:
'【YO’HOOD 2016】'
+
detailTitle
+
'\r\n'
+
detailSubtitle
.
text
()
+
'#YO’HOOD 2016'
,
caption
:
'【YO’HOOD 2016】'
+
detailTitle
+
'\r\n'
+
detailSubtitle
.
text
()
+
'#YO’HOOD 2016'
,
// url: location.href
}
},
tweetText
:
'【YO’HOOD 2016】'
+
detailTitle
.
text
()
+
'\r\n'
+
detailSubtitle
.
text
(),
qqText
:
'【YO’HOOD 2016】'
+
detailTitle
.
text
()
+
' '
+
detailSubtitle
.
text
(),
tweetText
:
'【YO’HOOD 2016】'
+
detailTitle
+
'\r\n'
+
detailSubtitle
.
text
(),
qqText
:
'【YO’HOOD 2016】'
+
detailTitle
+
' '
+
detailSubtitle
.
text
(),
});
}
...
...
website/view/script/news/detailmobile.php
View file @
f3158f4
...
...
@@ -2,6 +2,7 @@
<?php
$this
->
_block
(
'main'
);
?>
<div
class=
"detail-title"
>
<h2
class=
"title"
>
<?php
echo
$this
->
view
->
info
[
'title'
]
?>
</h2>
<input
type=
"hidden"
name=
"title"
value=
"
<?php
echo
$this
->
view
->
info
[
'title'
]
?>
"
>
<h3
class=
"subtitle"
>
<?php
echo
date
(
'm月d日 H:i'
,
$this
->
view
->
info
[
'create_time'
])
?>
</h3>
</div>
<?php
if
(
!
empty
(
$this
->
view
->
info
[
'pics'
]))
:?>
...
...
Please
register
or
login
to post a comment