Files
dvcp_v2_wxcp_app/src/components/AiOpenData.vue
aixianling e54e316ec9 BUG 25209
2021-12-03 15:00:39 +08:00

27 lines
497 B
Vue

<template>
<div :type="type" :openid="openid" v-text="openid"/>
</template>
<script>
import {mapActions} from "vuex";
export default {
name: "AiOpenData",
props: ['type', 'openid'],
methods: {
...mapActions(['injectJWeixin'])
},
mounted() {
this.injectJWeixin().then(() => {
WWOpenData.bind(this.$el)
WWOpenData.on('error', res => {
console.log(res)
})
WWOpenData.on('update', res => {
console.log(res)
})
})
}
}
</script>