Commit b2195edd authored by 郑秀明's avatar 郑秀明

搜索返回按钮

parent a3ae59ba
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<view class="content"> <view class="content">
<view class="navbar" :style="{position:headerPosition}"> <view class="navbar" :style="{position:headerPosition}">
<view class="search-content"> <view class="search-content">
<uni-icons color="#212121" class="search-icon-arrowleft" size="24" type="arrowleft" /> <uni-icons color="#212121" class="search-icon-arrowleft" @click="backHome" size="24" type="arrowleft" />
<view class="search-input_box" @click="searchClick"> <view class="search-input_box" @click="searchClick">
<view class="search-input_val">{{searchVal}}</view> <view class="search-input_val">{{searchVal}}</view>
<uni-icons color="#999999" class="uni-searchbar__box-icon-search" size="20" type="search" /> <uni-icons color="#999999" class="uni-searchbar__box-icon-search" size="20" type="search" />
...@@ -121,6 +121,11 @@ ...@@ -121,6 +121,11 @@
this.getData(); this.getData();
}, },
methods: { methods: {
backHome(){
uni.redirectTo({
url: '/pages/home/home'
})
},
// 加入购物车 // 加入购物车
addCart(spec_id, quantity) { addCart(spec_id, quantity) {
this.$addCart(spec_id, quantity, this.isLogin); this.$addCart(spec_id, quantity, this.isLogin);
......
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