export const openType = {
  props: {
    openType: String
  },

  methods: {
    bindGetUserInfo(event) {
      this.$emit('getuserinfo', event)
    },

    bindContact(event) {
      this.$emit('contact', event.detail)
    },

    bindGetPhoneNumber(event) {
      this.$emit('getphonenumber', event.detail)
    },

    bindError(event) {
      this.$emit('error', event.detail)
    },

    bindLaunchApp(event) {
      this.$emit('launchapp', event.detail)
    },

    bindOpenSetting(event) {
      this.$emit('opensetting', event.detail)
    }
  }
}
