搜索修改
This commit is contained in:
parent
a127f08375
commit
396e795943
@ -6,7 +6,9 @@
|
|||||||
'font-size':'32rpx',
|
'font-size':'32rpx',
|
||||||
'color':'#FF780F',
|
'color':'#FF780F',
|
||||||
'overflow':'unset'
|
'overflow':'unset'
|
||||||
}"></u-search>
|
}"
|
||||||
|
@search="search"
|
||||||
|
></u-search>
|
||||||
</view>
|
</view>
|
||||||
<view class="list">
|
<view class="list">
|
||||||
<view class="title">搜索发现</view>
|
<view class="title">搜索发现</view>
|
||||||
@ -23,6 +25,18 @@ export default {
|
|||||||
return{
|
return{
|
||||||
keyword:""
|
keyword:""
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
methods:{
|
||||||
|
search(value){
|
||||||
|
// console.log(value)
|
||||||
|
this.$u.route({
|
||||||
|
url:"/pageB/search/out",
|
||||||
|
params:{
|
||||||
|
value,
|
||||||
|
type:"shop"
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
@ -4,7 +4,8 @@
|
|||||||
<image></image>
|
<image></image>
|
||||||
<u-search placeholder="搜索您需要的商品" v-model="keyword" height="60" :show-action="false"></u-search>
|
<u-search placeholder="搜索您需要的商品" v-model="keyword" height="60" :show-action="false"></u-search>
|
||||||
</view>
|
</view>
|
||||||
<u-tabs-swiper @change="tabsChange" :show-bar="false" :bold="false" :font-size="32" active-color="#FF780F" ref="uTabs" :list="list" :is-scroll="false" style="border-bottom: 1px solid #ececec;flex-shrink:0" height="88"></u-tabs-swiper>
|
<u-tabs-swiper v-if="type == 'dianpu'" @change="tabsChange" :show-bar="false" :bold="false" :font-size="32" active-color="#FF780F" ref="uTabs" :list="list" :is-scroll="false" style="border-bottom: 1px solid #ececec;flex-shrink:0" height="88"></u-tabs-swiper>
|
||||||
|
<view></view>
|
||||||
<swiper class="swiper" :current="swiperCurrent" @transition="transition" @animationfinish="animationfinish">
|
<swiper class="swiper" :current="swiperCurrent" @transition="transition" @animationfinish="animationfinish">
|
||||||
<swiper-item>
|
<swiper-item>
|
||||||
<scroll-view :scroll-y="true" style="height:100%">
|
<scroll-view :scroll-y="true" style="height:100%">
|
||||||
@ -81,7 +82,8 @@ export default {
|
|||||||
],
|
],
|
||||||
current: 0,
|
current: 0,
|
||||||
swiperCurrent: 0,
|
swiperCurrent: 0,
|
||||||
keyword:""
|
keyword:"",
|
||||||
|
type:""
|
||||||
}
|
}
|
||||||
}, methods: {
|
}, methods: {
|
||||||
tabsChange(index) {
|
tabsChange(index) {
|
||||||
@ -97,6 +99,9 @@ export default {
|
|||||||
this.swiperCurrent = current;
|
this.swiperCurrent = current;
|
||||||
this.current = current;
|
this.current = current;
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
onLoad(o){
|
||||||
|
this.type = o.type
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
@ -6,7 +6,9 @@
|
|||||||
<text class="u-line-1">{{ area }}</text>
|
<text class="u-line-1">{{ area }}</text>
|
||||||
<image src="/static/image/shop/2.png"></image>
|
<image src="/static/image/shop/2.png"></image>
|
||||||
</view>
|
</view>
|
||||||
<u-search placeholder="日照香炉生紫烟" v-model="keyword" :show-action="false" bg-color="#fff" border-color="#999999"></u-search>
|
<view @click="sousuo">
|
||||||
|
<u-search placeholder="日照香炉生紫烟" v-model="keyword" :show-action="false" bg-color="#fff" border-color="#999999" :disabled="true"></u-search>
|
||||||
|
</view>
|
||||||
<image src="/static/image/shop/3.png" class="mnue" @click="toClassifyPage"></image>
|
<image src="/static/image/shop/3.png" class="mnue" @click="toClassifyPage"></image>
|
||||||
</view>
|
</view>
|
||||||
<u-swiper :list="list" mode="dot" @click="clickImage"></u-swiper>
|
<u-swiper :list="list" mode="dot" @click="clickImage"></u-swiper>
|
||||||
@ -91,6 +93,12 @@ export default {
|
|||||||
this.getGoodsRecommend();
|
this.getGoodsRecommend();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
sousuo(){
|
||||||
|
// console.log(123)
|
||||||
|
this.$u.route({
|
||||||
|
url:"pageB/search/index"
|
||||||
|
})
|
||||||
|
},
|
||||||
getShopTopList() {
|
getShopTopList() {
|
||||||
this.$u.api.getShopTopList().then((res)=>{
|
this.$u.api.getShopTopList().then((res)=>{
|
||||||
if (res.errCode == 0) {
|
if (res.errCode == 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user