简体   繁体   English

Wix 开发人员工具出现问题

[英]Trouble with Wix developer tools

I am using a wix page as a place to send my users to complete an ID verification through Veriff.我正在使用 wix 页面作为发送我的用户通过 Veriff 完成 ID 验证的地方。 However, if my users open the website on their phone, when prompted to allow camera access, they grant access but the Veriff form never starts.但是,如果我的用户在他们的手机上打开该网站,当提示允许访问相机时,他们会授予访问权限,但 Veriff 表单永远不会启动。 When I add the code Veriff tells me to add, I get an error on Wix stating "cannot use JSX unless the jsx flag is provided. I've included a screenshot of what I see when I'm working.当我添加 Veriff 告诉我添加的代码时,我在 Wix 上收到一个错误,指出“除非提供 jsx 标志,否则不能使用 JSX。我已经包含了我在工作时看到的屏幕截图。

Screenshot of Wix editor Wix编辑器截图

$w.onReady(function () {
<>
  <script src='https://cdn.veriff.me/sdk/js/1.1/veriff.min.js'</script>
 <script src='https://cdn.veriff.me/incontext/js/v1/veriff.js'</script>

<div id='veriff-root'></div>
<script>
const veriff = Veriff({
host: '*************',
apiKey: '************',
parentId: 'veriff-root',
onSession: function(err, response) {
  window.veriffSDK.createVeriffFrame({ url: response.verification.url });
}
});
veriff.setParams({
person: {
  givenName: ' ',
  lastName: ' '
}
});
veriff.mount({
formLabel: {
  vendorData: 'Email'
}
});
</script> </>

});

External scripts can be loaded using the iFrame Component or Wix Custom Element (Web Component)可以使用 iFrame 组件或 Wix 自定义元素(Web 组件)加载外部脚本

HTML Component: https://www.wix.com/velo/reference/$w/htmlcomponent Custom Element: https://www.wix.com/velo/reference/$w/customelement HTML Component: https://www.wix.com/velo/reference/$w/htmlcomponent Custom Element: https://www.wix.com/velo/reference/$w/customelement

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM