html
<template>
<view class="content">
<view style="border: 2rpx solid red;padding: 30rpx;background-color: antiquewhite;">
<official-account @load="bindload" @error="binderror"></official-account>
</view>
</view>
</template>
js
methods:{
bindload(e){
console.log(e,'----------------')
},
binderror(e){
console.log(e,'----------------')
}
}
未关联会报错
小程序后台关注微信公众号
显示已设置的公众号