...
|
...
|
@@ -4,7 +4,7 @@ |
|
|
<image src="/static/ic_logo.png" mode=""></image>
|
|
|
<view class="search" @click="gosourch">
|
|
|
<view class="tosear" >
|
|
|
<input type="text" @click="gosourch" value="" placeholder="搜索" disabled="true"
|
|
|
<input type="text" value="" placeholder="搜索"
|
|
|
placeholder-style="text-align: center;font-size: 28rpx; color: rgba(194,194,194,1);" />
|
|
|
<image src="/static/icon-search.png" mode=""></image>
|
|
|
</view>
|
...
|
...
|
@@ -19,7 +19,7 @@ |
|
|
</view>
|
|
|
<view class="contail">
|
|
|
<view class="nev">
|
|
|
<view class="bar" v-for="(item,index) in categoryList" :key="index" @click="tocate(item.name)">
|
|
|
<view class="bar" v-for="(item,index) in categoryList" :key="index" @click="tocate(item.id)">
|
|
|
<image class="barimg" :src="item.image_preview" mode=""></image>
|
|
|
<text>{{item.name}}</text>
|
|
|
</view>
|
...
|
...
|
@@ -158,9 +158,9 @@ |
|
|
url: "/pages/index/consultationDetails?id=" + e
|
|
|
})
|
|
|
},
|
|
|
tocate(name) {
|
|
|
tocate(id) {
|
|
|
uni.navigateTo({
|
|
|
url: "/pages/index/product?ktext="+name
|
|
|
url: "/pages/index/product?sort_id="+id
|
|
|
})
|
|
|
},
|
|
|
toallCate(){
|
...
|
...
|
@@ -283,6 +283,7 @@ |
|
|
},
|
|
|
//跳转搜索
|
|
|
gosourch() {
|
|
|
console.log(2)
|
|
|
uni.navigateTo({
|
|
|
url: "/pages/index/search"
|
|
|
})
|
...
|
...
|
|