@@ -377,10 +377,18 @@ $(function(){
window.location.href = '/product/list.html?keyword='+encodeURIComponent(keyword);
} else if(type === 1) {
// 供应商
- window.location.href = '/supplier/list.html?keyword='+encodeURIComponent(keyword);
+ if( keyword === '' ){
+ window.location.href = '/supplier/list.html';
+ }else{
+ window.location.href = '/supplier/list.html?keyword='+encodeURIComponent(keyword);
+ }
} else if (type === 2) {
// 项目仪器
- window.location.href = '/equipment/list.html?keyword=' + encodeURIComponent(keyword);
+ window.location.href = '/equipment/list.html';
+ window.location.href = '/equipment/list.html?keyword=' + encodeURIComponent(keyword);
} else{
// 文章
window.location.href = '/info/search-1.html?keyword=' + encodeURIComponent(keyword);
@@ -20,7 +20,7 @@ var equipmentDetail = new Vue({
window.location.href = "/404.html?error=未查询到该项目仪器";
}else{
CAIMEI.Alert(response.msg, '确定', true,function(){
- window.location.href = "/equipment/list.html?keyword=";
+ window.location.href = "/equipment/list.html";
});
}