优化首页搜索框跳转逻辑
This commit is contained in:
parent
d3c1ab9a99
commit
414ea79463
@ -666,7 +666,7 @@ export default {
|
|||||||
goods_and_count: group.map(item => {
|
goods_and_count: group.map(item => {
|
||||||
return {
|
return {
|
||||||
goods_id: item.goods_id,
|
goods_id: item.goods_id,
|
||||||
count: item.count,
|
count: item.is_one_one === 1 ? item.count / 2 : item.count,
|
||||||
price: item.price,
|
price: item.price,
|
||||||
freight: item.commodity_goods_info.freight,
|
freight: item.commodity_goods_info.freight,
|
||||||
}
|
}
|
||||||
|
|||||||
@ -49,7 +49,7 @@ page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.hot-word-container {
|
.hot-word-container {
|
||||||
width: 60%;
|
width: 90%;
|
||||||
height: 50rpx;
|
height: 50rpx;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
position: relative;
|
position: relative;
|
||||||
@ -81,11 +81,6 @@ page {
|
|||||||
color: #666;
|
color: #666;
|
||||||
}
|
}
|
||||||
|
|
||||||
.searchBox2 {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.white_container {
|
.white_container {
|
||||||
background: #FFFFFF;
|
background: #FFFFFF;
|
||||||
padding: 0 20rpx;
|
padding: 0 20rpx;
|
||||||
@ -170,6 +165,8 @@ page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.searchBox2 {
|
.searchBox2 {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 60rpx;
|
height: 60rpx;
|
||||||
background-color: #f6f7fb;
|
background-color: #f6f7fb;
|
||||||
@ -183,7 +180,7 @@ page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.searchBox2 image {
|
.searchBox2 image {
|
||||||
width: 40rpx;
|
width: 30rpx;
|
||||||
height: 28rpx;
|
height: 28rpx;
|
||||||
margin-right: 16rpx;
|
margin-right: 16rpx;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
<!-- 搜索框 -->
|
<!-- 搜索框 -->
|
||||||
<view class="search2" v-if="isShowSearch">
|
<view class="search2" v-if="isShowSearch">
|
||||||
<view class="searchBox2">
|
<view class="searchBox2" @click="goSearchView">
|
||||||
<image
|
<image
|
||||||
src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/property-img-file/com_communitySearchIcon.png"
|
src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/property-img-file/com_communitySearchIcon.png"
|
||||||
mode="aspectFill"></image>
|
mode="aspectFill"></image>
|
||||||
@ -33,9 +33,6 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="search_input" @click="goSearchView">
|
|
||||||
请输入内容
|
|
||||||
</view>
|
|
||||||
<!-- <input class="search_input" placeholder='请输入内容' confirm-type='search' @input="searchInput"
|
<!-- <input class="search_input" placeholder='请输入内容' confirm-type='search' @input="searchInput"
|
||||||
@confirm="searchInput" :value="selectKeyWord" @click="goSearchView"/> -->
|
@confirm="searchInput" :value="selectKeyWord" @click="goSearchView"/> -->
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user