<script type="text/javascript" src="https://cstaticdun.126.net/load.min.js?v=202004246"></script>
<div id="captcha"></div>
mounted() {
var that = this;
var neWidth = $(window).width() >= 330 ? '288px' : $(window).width() - 42 + 'px';
initNECaptcha({
captchaId: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
element: '#captcha',
mode: 'popup',
width: neWidth,
onVerify: function (err, data) {
if (!err) {
} else {
that.agentNum = that.agentNum + 1;
if (that.agentNum >= 6) {
that.NECaptcha.refresh();
that.agentNum = 0;
}
}
}
}, function onload(instance) {
that.NECaptcha = instance;
}, function onerror(err) {
console.log(err);
})
}