品类推荐

This commit is contained in:
唐明明
2022-01-06 17:09:07 +08:00
parent 178fdb4b46
commit 6d4971bc5e
4 changed files with 80 additions and 29 deletions

32
pages/store/list.vue Normal file
View File

@@ -0,0 +1,32 @@
<template>
<view>
<oct-goods
:lists="goodsArr"
color="#e6576b"
@onGoods="$Router.push({ name: 'StoreGoods', params: {id: $event.goods_id}})"
/>
</view>
</template>
<script>
import { meals } from "@/apis/interfaces/store"
export default {
data() {
return {
goodsArr: []
};
},
mounted(){
meals(this.$Route.query.id).then(res => {
uni.setNavigationBarTitle({
title: res.title
})
this.goodsArr = res.items
})
}
}
</script>
<style lang="scss">
</style>