记得上下班打卡 | git大法好,push需谨慎

Commit 3f27cd0f authored by 张国柄's avatar 张国柄

代金、满减,商品搜索字段赋值;

parent 20d2f143
...@@ -288,7 +288,7 @@ ...@@ -288,7 +288,7 @@
}; };
function getMallList() { function getMallList() {
let data = { let data = {
title: '' title: searchVal
} }
let str = ''; let str = '';
promiseMethods(phpMallUrl + '/admin/goodListForQuick','get',data,'application/x-www-form-urlencoded').then(res=>{ promiseMethods(phpMallUrl + '/admin/goodListForQuick','get',data,'application/x-www-form-urlencoded').then(res=>{
...@@ -352,7 +352,13 @@ ...@@ -352,7 +352,13 @@
}); });
$("#searchIpt").keyup(function(){ $("#searchIpt").keyup(function(){
searchVal = $("#searchIpt").val() searchVal = $("#searchIpt").val()
search() // search()
if (typeOne == 2) {
getMallList()
} else {
console.log('search')
search()
}
}); });
$('#selectTwo').change(function(e){ $('#selectTwo').change(function(e){
......
...@@ -290,7 +290,7 @@ ...@@ -290,7 +290,7 @@
}; };
function getMallList() { function getMallList() {
let data = { let data = {
title: '' title: searchVal
} }
let str = ''; let str = '';
promiseMethods(phpMallUrl + '/admin/goodListForQuick','get',data,'application/x-www-form-urlencoded').then(res=>{ promiseMethods(phpMallUrl + '/admin/goodListForQuick','get',data,'application/x-www-form-urlencoded').then(res=>{
...@@ -353,7 +353,13 @@ ...@@ -353,7 +353,13 @@
}); });
$("#searchIpt").keyup(function(){ $("#searchIpt").keyup(function(){
searchVal = $("#searchIpt").val() searchVal = $("#searchIpt").val()
search() // search()
if (typeOne == 2) {
getMallList()
} else {
console.log('search')
search()
}
}); });
$('#selectTwo').change(function(e){ $('#selectTwo').change(function(e){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment