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
liuyue
9 years ago
Commit
3ff3676ead51872484f7a6f761afcfc66c9682d3
2 parents
236a50cc
165db824
封面多选bug fix
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
49 deletions
client/js/goods/partials/search-key.js
client/js/goods/partials/search-key.js
deleted
100644 → 0
View file @
236a50c
var
$
=
require
(
'jquery'
),
common
=
require
(
'../../common/common'
);
var
searchKeys
=
window
.
NETSALEDATA
.
productExtBo
.
searchKeys
||
""
;
$
(
"#searchKeys"
).
val
(
searchKeys
);
var
g
=
new
common
.
grid
({
el
:
"#search-key"
,
hash
:
false
,
columns
:
[{
display
:
"ID"
,
name
:
"id"
},
{
display
:
"内容"
,
name
:
"content"
},
{
display
:
"操作"
,
name
:
""
,
render
:
function
(
item
)
{
return
'<a class="btn btn-info add" data-index="'
+
item
.
__index
+
'">添加</a>'
;
}
}]
});
g
.
init
(
'/netSale/queryHotSearchTerms'
);
$
(
"#searchKeys"
).
on
(
'change'
,
function
()
{
searchKeys
=
$
(
"#searchKeys"
).
val
();
});
$
(
document
).
on
(
'click'
,
'.add'
,
function
()
{
var
item
=
g
.
rows
[
$
(
this
).
data
(
"index"
)];
var
value
=
$
(
"#searchKeys"
).
val
();
if
(
value
)
value
+=
","
;
$
(
"#searchKeys"
).
val
(
value
+
item
.
content
);
searchKeys
=
$
(
"#searchKeys"
).
val
();
});
$
(
"#save-searchKey"
).
on
(
'click'
,
function
()
{
common
.
util
.
__ajax
({
url
:
'/netSale/saveNetSaleSearchKeys'
,
data
:
{
productSkn
:
window
.
NETSALEDATA
.
baseProductInfo
.
baseProduct
.
productSkn
,
searchKeys
:
searchKeys
}
},
function
(
res
)
{
});
});
\ No newline at end of file
Please
register
or
login
to post a comment