瀏覽代碼

调用人脸

ccf 4 年之前
父節點
當前提交
2f5eb43ce6
共有 1 個文件被更改,包括 4 次插入5 次删除
  1. 4 5
      pages/wo/cash.vue

+ 4 - 5
pages/wo/cash.vue

@@ -201,9 +201,9 @@ export default {
       if(!isFace) {
         this.$message.info("为了您的资金安全,本次操作需要进行人脸认证。")
         await this.callFaceQrcode()
-        return 
+        return
       }
-      
+
       this.dialogShow = true;
       let res = await this.$axios.$post("/api/user/send_mobile_auth_code", {
         mobile: this.userinfo.mobile,
@@ -232,10 +232,9 @@ export default {
      async callFaceQrcode(){
       try{
 
-        // let res = await this.$axios.$post("/uapi/user/realName/face");
-        // console.log(res);
+         let res = await this.$axios.$post("/uapi/user/realName/face");
 
-        let qrcode = 'http://www.baidu.com'
+        let qrcode = res.data.kezhan_url;
         let that = this;
         QRCode.toDataURL(
             qrcode, {