Files
dvcp_v2_wxcp_app/src/components/AiOpenData.vue

27 lines
497 B
Vue
Raw Normal View History

2021-11-24 16:34:31 +08:00
<template>
2021-12-03 15:00:39 +08:00
<div :type="type" :openid="openid" v-text="openid"/>
2021-11-24 16:34:31 +08:00
</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>