2025-10-23

商品搜索
This commit is contained in:
2025-10-23 13:49:19 +08:00
parent 397c73077b
commit 0e2dbdb9db
4 changed files with 277 additions and 7 deletions

View File

@@ -15,7 +15,7 @@
</view>
</view>
<view class="menu-level2" v-if="categoryList[currentCate]?.relative.length!=0">
<view class="menu-item" v-for="item in categoryList[currentCate]?.relative">
<view class="menu-item" v-for="item in categoryList[currentCate]?.relative" @click="handleSearchCategory(item)">
<u-image v-if="item.img" :fade="false" :src="getImageUrl(item.img)" :width="iconWidth"
mode="widthFix"></u-image>
<view class="menu-text">
@@ -116,6 +116,12 @@
const handleChangeCategory = (index) => {
currentCate.value = index
}
const handleSearchCategory = (item) => {
uni.navigateTo({
url: '/pages/home/mallSearch?cate=' + item.name
})
}
const params = ref({
keyword: '',