Files
dvcp_v2_wxcp_app/src/project/volunteers/AppOpenChat/AppOpenChat.vue

36 lines
709 B
Vue
Raw Normal View History

2022-09-29 09:41:02 +08:00
<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;LiuHuaJun",
externalUserIds: "wmGBFVDgAAj_krfwaThRm-RRAq9rBeaQ",
groupName: "省志愿者活动专用群"
})
}).catch(() => 0)
}
}
</script>
<style lang="scss" scoped>
.AppOpenChat {
}
</style>