Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-blk
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
1
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
zhangxiaoru
9 years ago
Commit
c3700908b2f3033d1772cf0e80f6172b9f71762b
1 parent
19d28343
editorial
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
public/js/editorial/detail.page.js
public/js/editorial/index.page.js
public/js/editorial/detail.page.js
View file @
c370090
...
...
@@ -49,7 +49,8 @@ $('#prise-btn').click(function() {
}).
then
(
function
(
data
)
{
if
(
data
.
code
===
200
)
{
$this
.
find
(
'.like-num'
).
html
(
data
.
data
);
}
else
{
new
_alert
(
data
.
message
).
show
();
}
prising
=
false
;
});
...
...
@@ -134,7 +135,7 @@ function comment() {
var
commentInfo
=
$
(
'#comment-info'
).
val
();
if
(
commentInfo
===
''
)
{
new
_alert
(
'评论不能为空'
);
new
_alert
(
'评论不能为空'
)
.
show
()
;
return
false
;
}
commenting
=
true
;
...
...
public/js/editorial/index.page.js
View file @
c370090
...
...
@@ -47,8 +47,7 @@ $('.editorial-index-page').on('click', '.like-icon', function() {
if
(
data
.
code
===
200
)
{
console
.
log
(
data
);
$this
.
next
(
'b'
).
html
(
data
.
data
);
}
if
(
data
.
code
===
500
)
{
}
else
{
new
_alert
(
data
.
message
).
show
();
}
...
...
Please
register
or
login
to post a comment