<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: "#fff",
          //背景颜色;参数一：透明度（0-1）;参数二：背景颜色（array则为线性渐变，string为单色背景）
          backgroundColor: [1, "#00321E"],
          statusBarFontColor: "#ffffff",
        },
        pageType: 1,
        options: null
      };
    },
    onLoad(options) {
      console.log(options, 111)
      this.pageType = options.pageType
      this.options = options
    },
    methods: {

    },
  };
</script>

<style lang='scss' scopd>

</style>
