Commit 276d0d5e authored by 罗超's avatar 罗超

修改搜索链接页面

parent fc4583ce
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
:custom-style='postionStyle' :custom-style='postionStyle'
readonly readonly
/> --> /> -->
<view class="search-box" :style="{ background: bg }"> <view class="search-box" :style="{ background: bg }" @click="goSearch">
<u-search <u-search
:placeholder="styleStr.placeholder" :placeholder="styleStr.placeholder"
v-model="val" v-model="val"
...@@ -51,6 +51,13 @@ export default { ...@@ -51,6 +51,13 @@ export default {
// } // }
//console.log(this.postionStyle); //console.log(this.postionStyle);
}, },
methods: {
goSearch(){
uni.navigateTo({
url: '/pages/search/search'
});
}
},
}; };
</script> </script>
......
...@@ -3,6 +3,9 @@ ...@@ -3,6 +3,9 @@
"^u-(.*)": "uview-ui/components/u-$1/u-$1.vue" "^u-(.*)": "uview-ui/components/u-$1/u-$1.vue"
}, },
"pages": [{ "pages": [{
"path": "pages/index/index"
},
{
"path": "pages/search/search" "path": "pages/search/search"
}, },
{ {
...@@ -11,10 +14,6 @@ ...@@ -11,10 +14,6 @@
{ {
"path": "pages/cats/cats" "path": "pages/cats/cats"
}, },
{
"path": "pages/index/index"
},
{ {
"path": "pages/goods/goods" "path": "pages/goods/goods"
}, },
...@@ -49,7 +48,7 @@ ...@@ -49,7 +48,7 @@
"path": "pages/order/index" "path": "pages/order/index"
}, },
{ {
"path" : "pages/order/index/index" "path": "pages/order/index/index"
} }
], ],
......
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