You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

51 lines
870 B

<template>
<view class="productList">
<u-navbar :title="$route.query.title" placeholder>
<view slot="left" class="back">
<u-icon @click="toHome()" name="arrow-left"></u-icon>
</view>
</u-navbar>
<productList :list="list.records || []"/>
</view>
</template>
<script>
import productList from '@/components/product/productList.vue'
export default {
components : {
productList,
},
data() {
return {
list : {
records : []
}
};
},
onShow(){
this.getData()
},
methods : {
getData(){
this.request('getShopPage', {}, {
"class_id": this.$route.query.id,
"pageSize":999, 
"currentPage": 0
}).then(res => {
this.list = res.data
})
},
toHome() {
uni.switchTab({
url: '/pages/home/home'
})
},
}
}
</script>
<style lang="scss" scoped>
.productList{
}
</style>