2025-10-23
商品搜索
This commit is contained in:
@@ -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: '',
|
||||
|
||||
Reference in New Issue
Block a user