修改装修搜索传参
parent
8c5b703c47
commit
7f71614781
|
@ -89,7 +89,7 @@
|
|||
>
|
||||
<div class="navbar-right"></div>
|
||||
|
||||
<search style="width: 100%" :res="item.options" />
|
||||
<search style="width: 100%" :res="item.options" :storeId = "storeId"/>
|
||||
</u-navbar>
|
||||
<carousel v-if="item.type == 'carousel'" :res="item.options" />
|
||||
<titleLayout v-if="item.type == 'title'" :res="item.options" />
|
||||
|
@ -234,6 +234,8 @@ export default {
|
|||
*/
|
||||
async onLoad(options) {
|
||||
this.storeId = options.id;
|
||||
console.log(this.storeId,'this.storeId')
|
||||
|
||||
this.goodsParams.storeId = options.id;
|
||||
this.couponParams.storeId = options.id;
|
||||
},
|
||||
|
|
|
@ -12,17 +12,25 @@
|
|||
<script>
|
||||
export default {
|
||||
title:"搜索栏",
|
||||
props: ["res"],
|
||||
props: ["res","storeId"],
|
||||
methods: {
|
||||
linkMsgDetail(){
|
||||
uni.navigateTo({
|
||||
url:`/pages/tabbar/home/title`
|
||||
})
|
||||
},
|
||||
|
||||
handleSearch() {
|
||||
uni.navigateTo({
|
||||
url: "/pages/navigation/search/searchPage",
|
||||
if(this.storeId){
|
||||
uni.navigateTo({
|
||||
url: `/pages/navigation/search/searchPage?storeId=${this.storeId}`,
|
||||
});
|
||||
}else{
|
||||
uni.navigateTo({
|
||||
url: `/pages/navigation/search/searchPage`,
|
||||
});
|
||||
}
|
||||
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue