classify 8.4

This commit is contained in:
2020-08-04 19:08:04 +08:00
parent 1e9f442b7b
commit 2fd62acb73
26 changed files with 563 additions and 186 deletions

View File

@@ -15,7 +15,7 @@
<text>{{item.gc_name}}</text>
</view>
<view class="item-container">
<view class="thumb-box" v-for="(item1, index1) in item._child" :key="index1">
<view class="thumb-box" v-for="(item1, index1) in item._child" :key="index1" @click="toClassifyPage(item1.gc_id, item1.gc_name)">
<image class="item-menu-image" :src="item1.img" mode=""></image>
<view class="item-menu-name">{{item1.gc_name}}</view>
</view>
@@ -50,6 +50,11 @@
this.getMenuItemTop()
},
methods: {
toSearchPage() {
this.$u.route({
url: "pageB/search/index"
})
},
// 获取分类列表
getClassifyList() {
this.$u.api.getGoodsClassifyList().then(res => {
@@ -161,6 +166,12 @@
}
}
}, 10)
},
toClassifyPage(id, name) {
this.$u.route('pageC/classify/goods', {
cid: id,
cname: name,
});
}
}
}