|
|
- <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>
|