<template>
  <section class="AppOpenChat">

  </section>
</template>

<script>
import {mapActions} from "vuex"

export default {
  name: "AppOpenChat",
  appName: "创建群聊",
  data() {
    return {}
  },
  methods: {
    ...mapActions(['injectJWeixin']),
  },
  created() {
    this.injectJWeixin("openEnterpriseChat").then(() => this.$confirm("确定创建省志愿者活动专用群聊?"))
    .then(() => {
      wx.openEnterpriseChat({
        userIds: "18507227517;AiXianLing",
        externalUserIds: "wmGBFVDgAAj_krfwaThRm-RRAq9rBeaQ",
        groupName: "省志愿者活动专用群"
      })
    }).catch(() => 0)
  }
}
</script>

<style lang="scss" scoped>
.AppOpenChat {
}
</style>
