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
Email Patches
Plain Diff
Browse Files
Authored by
weiqingting
9 years ago
Commit
37f2c0a468f6f57b5b051c830019ddc957d43686
1 parent
f3be520a
网销bug提交
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
7 deletions
client/js/goods/partials/add-info.js
server/config/common.js
server/views/partials/netsale/add-info.html
client/js/goods/partials/add-info.js
View file @
37f2c0a
...
...
@@ -60,8 +60,8 @@ GOLABDATA.on("LYaddInfo", function() {
$
(
'.attribute-group'
).
each
(
function
()
{
attributeArr
.
push
({
productSkn
:
option
.
data
.
productSkn
,
attributeId
:
$
(
this
).
find
(
':hidden'
).
attr
(
'id'
),
attributeValueId
:
$
(
this
).
find
(
':hidden'
).
val
().
split
(
'|'
).
join
(
','
)
attributeId
:
$
(
this
).
find
(
'[id]'
).
attr
(
'id'
),
attributeValueId
:
$
(
this
).
find
(
'[id]'
).
val
().
split
(
'|'
).
join
(
','
)
})
});
...
...
server/config/common.js
View file @
37f2c0a
...
...
@@ -16,8 +16,8 @@ var config = {
// domain: 'http://172.16.6.240:8088/platform',
// domain:'http://172.16.6.240:8088/platform',//王书生
// domain: 'http://172.16.6.252:9080',//陈超
// domain:'http://172.16.6.227:8088/platform',//玛丽
domain
:
'http://192.168.102.202:8088/platform'
,
domain
:
'http://172.16.6.227:8088/platform'
,
//玛丽
// domain: 'http://192.168.102.202:8088/platform',
loggers
:
{
api
:
{
level
:
'verbose'
,
...
...
server/views/partials/netsale/add-info.html
View file @
37f2c0a
...
...
@@ -88,12 +88,23 @@
[[
each
a
as
b
index
]]
<
div
class
=
"attribute-group form-group"
>
<
label
>
[[
b
.
attributeName
]]
:
<
/label
>
<
span
>
[[
if
b
.
inputType
==
'select'
]]
<
div
style
=
"display: inline-block;width: 280px;"
>
<
select
class
=
"form-control"
id
=
"[[b.attributeId]]"
value
=
"[[b.selectedValues||'']]"
>
[[
each
b
.
idNameList
as
c
index
]]
<
option
value
=
"[[c.id]]"
>
[[
c
.
text
]]
<
/option
>
[[
/each]
]
<
/select
>
<
/div
>
[[
else
]]
<
span
>
[[
each
b
.
idNameList
as
c
index
]]
<
label
style
=
"cursor: pointer;"
><
input
name
=
"[[b.attributeId]]"
type
=
"[[b.inputType]]"
value
=
"[[c.id]]"
>
[[
c
.
text
]]
<
/label
>
[[
/each]
]
<
/span
>
<
input
id
=
"[[b.attributeId]]"
type
=
"hidden"
for
=
"[[b.inputType]]"
value
=
"[[b.selectedValues]]"
>
<
/span
>
<
input
id
=
"[[b.attributeId]]"
type
=
"hidden"
for
=
"[[b.inputType]]"
value
=
"[[b.selectedValues||'']]"
>
[[
/if]
]
<
/div
>
[[
/each]
]
[[
/if]
]
...
...
Please
register
or
login
to post a comment