<template>
  <view>
    <navbar :config="config"></navbar>
    <goods v-if="pageType==1" :options='options'></goods>
    <!-- <articles v-if="pageType==2" :options='options'></articles>
    <works v-if="pageType==3" :options='options'></works> -->
  </view>
</template>



<script>
  import goods from "./goods"
  import articles from "./articles"
  import works from "./works"
  export default {
    components: {
      goods,
      articles,
      works

    },
    data() {
      return {
        config: {
          back: false, //false是tolbar页面 是则不写
          title: "宜格优选",
          color: "#1a1a1a",
          //背景颜色;参数一：透明度（0-1）;参数二：背景颜色（array则为线性渐变，string为单色背景）
          backgroundColor: [1, "#ffffff"],
        },
        pageType: 1,
        options: null
      };
    },
    onLoad(options) {
      this.pageType = options.pageType
      this.options = options
    },
    methods: {

    },
  };
</script>

<style lang='scss' scopd>

</style>
