ソースを参照

腾讯验证码

wangxin 5 年 前
コミット
7b5abfe35c
1 ファイル変更6 行追加0 行削除
  1. 6 0
      src/view/captcha/captcha.vue

+ 6 - 0
src/view/captcha/captcha.vue

@@ -67,6 +67,12 @@
                 function (res) {/* callback */
                     if (res.ret === 0) {
                         // that.countDown();
+                        if (that.isiOS) {
+                            window.webkit.messageHandlers.returnVerificationCode.postMessage(res.ret.toString());
+                        }
+                        if (that.isAndroid) {
+                            window.hap.verificationCode(res.ret.toString());
+                        }
                         postAction(getCaptchaCode, {
                             ticket: res.ticket,
                             randstr: res.randstr,