Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-portal-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
weiqingting
2016-05-31 16:38:03 +0800
Commit
cc1b33351e13f1a0b0e9aadf8a5290ac49da91ea
2 parents
0fc8670e
81c516f0
Merge branch 'yohobuy_portal_dev_v4.4_20160525' into feature/yohobuy_portal_dev_v4.4_shops_20160527
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
31 additions
and
34 deletions
client/js/guang/contentEdit.js
client/js/meterManage/tryModel.js
client/js/product/attr.js
server/stub/service/auth.js
server/views/pages/shotManage/model.html
server/views/partials/ui/menu.html
client/js/guang/contentEdit.js
View file @
cc1b333
...
...
@@ -872,7 +872,10 @@ $(document).on("click", "#submit", function () {
data
.
push
(
item1
);
});
}
item
.
contentData
.
data
=
data
;
if
(
data
.
length
!=
0
){
item
.
contentData
.
data
=
data
;
}
item
.
contentData
=
common
.
util
.
__ArrayToObj
(
item
.
contentData
);
return
item
;
});
...
...
client/js/meterManage/tryModel.js
View file @
cc1b333
...
...
@@ -21,8 +21,8 @@ var g = new common.grid({
modelName
:
common
.
util
.
__input
(
'content-filter1'
),
beginTime
:((
new
Date
(
$
(
'#beginTime'
).
val
())).
getTime
())
/
1000
||
""
,
endTime
:
((
new
Date
(
$
(
'#endTime'
).
val
())).
getTime
())
/
1000
||
""
,
modelType
:
parseInt
(
$
(
"#aa"
).
val
()),
status
:
parseInt
(
$
(
"#bb"
).
val
())
modelType
:
parseInt
(
$
(
"#aa"
).
val
())
// status: parseInt($("#bb").val())
};
},
//列表显示
...
...
client/js/product/attr.js
View file @
cc1b333
...
...
@@ -244,12 +244,14 @@ function attributeOp(prefix, url, item) {
}
else
{
// 显示属性列表
if
(
propVlaueArr
)
{
var
count
=
0
;
propVlaueArr
.
forEach
(
function
(
pv
)
{
if
(
!
pv
.
name
)
{
a
.
$tip
(
'属性值不能为空'
);
return
false
;
count
++
;
}
});
if
(
!
count
){
a
.
submit
(
url
+
"?_datetime_="
+
Date
.
now
(),
function
(
option
)
{
option
.
data
.
categoryId
=
item
.
categoryId
;
option
.
data
.
attributeId
=
item
.
attributeId
;
...
...
@@ -283,7 +285,11 @@ function attributeOp(prefix, url, item) {
a
.
$tip
(
res
.
message
);
}
});
});
}
else
{
a
.
$tip
(
'属性值不能为空'
);
return
false
;
}
}
else
{
a
.
$tip
(
'属性值不能为空'
);
return
false
;
...
...
server/stub/service/auth.js
View file @
cc1b333
...
...
@@ -161,29 +161,6 @@ function _makeMenu (data) {
}
menu
.
push
(
item
);
}
// _.forEach(data,function(v){
// var item = {
// title:v.menu_name,
// }
// if(v.parent_id === "0") {
// item.parent = 'menu-template';
// var itemSubs = [];
// _.forEach(v.sub,function(val) {
// console.log(v.sub);
// var sub = {
// title:val.menu_name,
// href:val.menu_url,
// icon: 'list-alt'
// }
// right[val.menu_url] = true;
// itemSubs.push(sub);
// });
// item.menu = itemSubs;
// }
// menu.push(item);
// });
return
{
menu
:
menu
,
right
:
right
...
...
server/views/pages/shotManage/model.html
View file @
cc1b333
...
...
@@ -137,15 +137,15 @@
<
input
type
=
"file"
value
=
"[[modelCard]]"
class
=
"form-control modelCard"
id
=
"modelCard"
name
=
"modelCard"
placeholder
=
"模特卡"
required
=
"required"
/>
<
/div
>
<
/div
>
[[
if
__state
==
'update'
]]
<
div
class
=
"form-group"
>
<
label
class
=
"col-sm-2 control-label"
>
状态
<
/label
>
<
div
class
=
"col-sm-8"
>
<
label
style
=
"cursor: pointer;"
><
input
type
=
"radio"
name
=
"status"
value
=
"1"
>
启用
<
/label
>
<
label
style
=
"cursor: pointer;"
><
input
type
=
"radio"
name
=
"status"
checked
value
=
"1"
>
启用
<
/label
>
<
label
style
=
"cursor: pointer;"
><
input
type
=
"radio"
name
=
"status"
value
=
"0"
>
禁用
<
/label
>
<
/div
>
<
input
type
=
"hidden"
id
=
"status"
value
=
"[[status
]]"
for
=
"radio"
>
<
input
type
=
"hidden"
id
=
"status"
value
=
"[[status
||1]]"
for
=
"radio"
required
>
<
/div
>
[[
/if]
]
<
/div
>
</script>
...
...
server/views/partials/ui/menu.html
View file @
cc1b333
...
...
@@ -12,6 +12,16 @@
<i
class=
"fa fa-suitcase"
></i>
<span>
{{title}}
</span>
</a>
{{#if sub}}
{{#sub}}
<li
style=
"margin-left: 20px;"
>
<a
{{#
if
module_url
}}
href=
"{{module_url}}"
{{/
if
}}
>
<i
class=
"fa fa-suitcase"
></i>
<span>
{{resource_name}}
</span>
</a>
</li>
{{/sub}}
{{/if}}
</li>
{{/menu}}
</ul>
...
...
@@ -19,3 +29,4 @@
</a>
</li>
{{/menu}}
...
...
Please
register
or
login
to post a comment