<template>
  <div
    id="app"
    class="headerPreparation"
  >
    <img src="./assets/logo.png">
    <mintSelect
      v-bind:parentData="parentData"
      @func="getModelOrBrand"
    >
    </mintSelect>
  </div>
</template>

<script>
export default {
  name: "App",
  components: {},
  data() {
    return {
      parentData: {
        postUrl: "/wx/condition",
        subPostUrl: "/wx/getBrandByModel?modelid=",
        subShow: true,
        param: {
          test: "123"
        }
      }
    };
  },
  methods: {
    //emit子父组件传值
    getModelOrBrand(data) {
      this.param.brandId = data.brand;
      this.param.modelId = data.model;
    }
  }
};
</script>

<style>
#app {
  font-family: "Avenir", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* text-align: center; */
  color: #2c3e50;
}
html,
body,
#app {
  margin: 0;
  padding: 0;
  height: 100%;
}
</style>
