vant遇到的问题,求大佬解答!

vant遇到的问题,求大佬解答!
两个下拉菜单,一个单选框,一个上传图片 三个组件绑定三个方法。每次触发一个另外两个也跟着执行。每次刷新页面也会触发一次。求大佬指点一二,不胜感激!

 <ul>
        <li class="flex">
          <p>月嫂公司:</p>
          <van-dropdown-menu
            
            class="downMenu"
            active-color="#ff7b00"
          >
            <van-dropdown-item :change="typeChange(defauleCompany)" v-model="defauleCompany" :options="companyList" />
          </van-dropdown-menu>
        </li>
        <li class="flex">
          <p>面试月嫂方式:</p>
          <van-dropdown-menu
            
            class="downMenu"
            active-color="#ff7b00"
          >
            <van-dropdown-item :change="typeChange(defaultType)" v-model="defaultType" :options="typeList" />
          </van-dropdown-menu>
        </li>
      </ul>
      <div class="remarks">
        <p>评价:</p>
        <textarea placeholder="可以描述您选月嫂过程中的一些体验,感受,经验等,给更多的菠萝蜜参考..."></textarea>
      </div>
      <div class="upPhoto flex">
        <van-uploader name='upPhoto' :after-read="upPhoto()" v-model="photoList"  :max-count="6" />
      </div>
      <div class='anonymous'>
          <van-checkbox name='anonymous' @click="isAnonymousHandle()" checked-color="#f19d38" v-model="isAnonymous" shape="square">匿名</van-checkbox>
      </div>
       <van-button @click="submitData()" class="submitBtn" type="default">提交</van-button>
// 方法集合
  methods: {
    typeChange(val) {
        console.log(val)
    },
    upPhoto(){
        console.log(this.photoList)
    },
    isAnonymousHandle(){
        console.log(this.isAnonymous)
    }
  },

你可能感兴趣的:(vant遇到的问题,求大佬解答!)