diff --git a/src/components/common/Header.vue b/src/components/common/Header.vue index 24f16c7..6bd40ea 100644 --- a/src/components/common/Header.vue +++ b/src/components/common/Header.vue @@ -103,7 +103,7 @@ export default { if(this.$route.path=='/ClassificationDetails'){ bus.$emit('getDate',this.search); }else{ - this.$router.push({path:'/ClassificationDetails',query:this.search}) + this.$router.push({path:'/ClassificationDetails',query:{search:this.search}}) } }, loginOut(){ diff --git a/src/components/page/ClassificationDetails.vue b/src/components/page/ClassificationDetails.vue index 789627a..f35c89a 100644 --- a/src/components/page/ClassificationDetails.vue +++ b/src/components/page/ClassificationDetails.vue @@ -172,7 +172,8 @@ export default { date:'', min_price:'', max_price:'', - sort:'create_time desc' + sort:'create_time desc', + search_name:'' }, pageTotal:0, listingList:[], @@ -183,8 +184,13 @@ export default { }, created(){ console.info(this.$route.query) + if(this.$route.query){ + this.query.search_name=this.$route.query.search + } bus.$on('getDate', (e) => { + this.query.search_name=e this.getData() + }) this.getData() this.getProvince(); diff --git a/src/components/page/Purchaser/myCollection.vue b/src/components/page/Purchaser/myCollection.vue index 79e670c..41b2973 100644 --- a/src/components/page/Purchaser/myCollection.vue +++ b/src/components/page/Purchaser/myCollection.vue @@ -121,7 +121,7 @@ export default { checkBuy(data).then(res => { console.info(res) if(res.code==100){ - this.$router.push({path:'/order/confirmOrder',query:{step:0,id:id,count:count}}) + this.$router.push({path:'/order/confirmOrder',query:{step:0,id:id,count:count,orderType:0,type:0}}) }else{ this.$message.error(res.msg) }