Commit 7f1a961c authored by 吴冠's avatar 吴冠

test2

parent 4e547e87
...@@ -76,28 +76,26 @@ import Cookies from 'js-cookie' ...@@ -76,28 +76,26 @@ import Cookies from 'js-cookie'
}, */ }, */
async asyncData({params}){ async asyncData({params}){
let inputContent = Cookies.get("inputContent") let inputContent = Cookies.get("inputContent")
let contentStatus = Cookies.get("contentStatus")
console.log(inputContent+'-----------------+++++++++++++++++') console.log(inputContent+'-----------------+++++++++++++++++')
let mes ={ let mes ={
currentPage:1, currentPage:1,
size:10, size:10,
/* title:inputContent */ title:inputContent
} }
if(contentStatus== '1'){ /* if(inputContent!=''){
mes.title = inputContent mes.title = inputContent
} } */
if(Cookies.get("details")){ if(Cookies.get("details")){
mes.currentPage = Cookies.get("currentPage") mes.currentPage = Cookies.get("currentPage")
}else{ }else{
Cookies.remove("currentPage"); Cookies.remove("currentPage");
} }
Cookies.remove("details")
Cookies.remove("currentPage")
const res = await industryList(); const res = await industryList();
const {data,total} = await getAllList(mes) const {data,total} = await getAllList(mes)
console.log(data+'------------') console.log(data+'------------')
Cookies.remove("details")
Cookies.remove("currentPage")
Cookies.remove("inputContent") Cookies.remove("inputContent")
Cookies.remove("contentStatus")
return { return {
priceList : data, priceList : data,
total : total, total : total,
...@@ -248,7 +246,7 @@ import Cookies from 'js-cookie' ...@@ -248,7 +246,7 @@ import Cookies from 'js-cookie'
let day = 12 * 30 * 24 * 3600 * 1000; let day = 12 * 30 * 24 * 3600 * 1000;
let dateRegion = curDate - day; let dateRegion = curDate - day;
return time.getTime() > Date.now() || time.getTime() < dateRegion; return time.getTime() > Date.now() || time.getTime() < dateRegion;
} },
} }
} }
</script> </script>
......
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