省志愿者demo
This commit is contained in:
35
src/project/volunteers/AppOpenChat/AppOpenChat.vue
Normal file
35
src/project/volunteers/AppOpenChat/AppOpenChat.vue
Normal file
@@ -0,0 +1,35 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user