Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-shops-fe
·
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
dongjunjie
2016-05-23 18:45:38 +0800
Commit
7ef4f440f3573cb45b4c8fa23e5f38b9ccc6d2ae
2 parents
f598a078
2bcaf7bc
Merge branch 'release/qqtest' of
http://git.dev.yoho.cn/platform/yohobuy-shops-f…
…e into release/qqtest
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
server/mid/auth.js
server/views/pages/basegoods/edit.html
server/mid/auth.js
View file @
7ef4f44
...
...
@@ -90,8 +90,12 @@ module.exports = function(req, res, next) {
if
(
path
&&
req
.
session
.
user
.
allRight
[
path
]){
author
.
validateAuthor
(
req
.
session
.
user
.
auth
.
pid
,
req
.
session
.
user
.
auth
.
role_id
,
path
,
function
(
data
){
if
(
data
.
code
!=
200
){
res
.
status
(
403
);
// res.status(403);
if
(
!
req
.
xhr
){
res
.
render
(
'error/error_nolayout'
,{
message
:
NO_AUTH
,
layout
:
false
,
cssfile
:
CSS_FILE
});
}
else
{
res
.
json
({
code
:
201
,
message
:
"没有权限!"
});
}
return
;
}
nextRedirect
(
method
,
path
);
...
...
server/views/pages/basegoods/edit.html
View file @
7ef4f44
...
...
@@ -215,7 +215,6 @@
<
/div
>
<
input
type
=
"hidden"
id
=
"grade"
value
=
"[[grade||'0']]"
for
=
"radio"
required
/>
[[
if
isAuditing
==
200
]]
<
label
class
=
"col-sm-1 control-label"
>
适销季
<
span
class
=
"red"
>*<
/span></
label
>
<
div
class
=
"col-sm-2"
>
<
label
class
=
"radio-inline"
>
...
...
@@ -226,7 +225,6 @@
<
input
type
=
"checkbox"
name
=
"seasons"
value
=
"seasons"
>
四季
<
/label
>
<
input
type
=
"hidden"
id
=
"seasons"
name
=
"seasons"
value
=
"[[seasons||'seasons']]"
for
=
"checkbox"
placeholder
=
"年龄层"
/>
<
/div
>
[[
/if]
]
<
/div
>
...
...
Please
register
or
login
to post a comment