|
@@ -397,7 +397,7 @@ function tokenAjax(type, url, params, callback){
|
|
|
});
|
|
|
}
|
|
|
|
|
|
-function setSearchProductList(list, userId) {//处理搜索
|
|
|
+function setSearchProductList(list, userId, callback) {//处理搜索
|
|
|
var productIdArr = [];
|
|
|
var resultData = [];
|
|
|
list.map(function (item) {
|
|
@@ -418,10 +418,9 @@ function setSearchProductList(list, userId) {//处理搜索
|
|
|
}
|
|
|
});
|
|
|
if (userId && userId > 0) {
|
|
|
- setProductPrice(resultData, productIdArr.join(","), userId, function () {});
|
|
|
+ setProductPrice(resultData, productIdArr.join(","), userId, callback);
|
|
|
}else {
|
|
|
- var userId = 0;
|
|
|
- setProductPrice(resultData, productIdArr.join(","), userId, function () {});
|
|
|
+ setProductPrice(resultData, productIdArr.join(","), 0, callback);
|
|
|
}
|
|
|
return resultData;
|
|
|
}
|