优化首页搜索框跳转逻辑

This commit is contained in:
赵毅 2025-10-22 14:44:06 +08:00
parent d3c1ab9a99
commit 414ea79463
3 changed files with 8 additions and 14 deletions

View File

@ -666,7 +666,7 @@ export default {
goods_and_count: group.map(item => {
return {
goods_id: item.goods_id,
count: item.count,
count: item.is_one_one === 1 ? item.count / 2 : item.count,
price: item.price,
freight: item.commodity_goods_info.freight,
}

View File

@ -49,7 +49,7 @@ page {
}
.hot-word-container {
width: 60%;
width: 90%;
height: 50rpx;
overflow: hidden;
position: relative;
@ -81,11 +81,6 @@ page {
color: #666;
}
.searchBox2 {
display: flex;
align-items: center;
}
.white_container {
background: #FFFFFF;
padding: 0 20rpx;
@ -170,6 +165,8 @@ page {
}
.searchBox2 {
display: flex;
align-items: center;
width: 100%;
height: 60rpx;
background-color: #f6f7fb;
@ -183,7 +180,7 @@ page {
}
.searchBox2 image {
width: 40rpx;
width: 30rpx;
height: 28rpx;
margin-right: 16rpx;
}

View File

@ -21,7 +21,7 @@
<!-- 搜索框 -->
<view class="search2" v-if="isShowSearch">
<view class="searchBox2">
<view class="searchBox2" @click="goSearchView">
<image
src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/property-img-file/com_communitySearchIcon.png"
mode="aspectFill"></image>
@ -33,9 +33,6 @@
</view>
</view>
</view>
<view class="search_input" @click="goSearchView">
请输入内容
</view>
<!-- <input class="search_input" placeholder='请输入内容' confirm-type='search' @input="searchInput"
@confirm="searchInput" :value="selectKeyWord" @click="goSearchView"/> -->
</view>