Pārlūkot izejas kodu

腾讯验证码

wangxin 5 gadi atpakaļ
vecāks
revīzija
9e442c00fa
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      src/view/captcha/captcha.vue

+ 2 - 2
src/view/captcha/captcha.vue

@@ -72,7 +72,7 @@
                             randstr: res.randstr,
                             phone: that.phone
                         }).then(() => {
-                            this.$toast({message: '验证码获取成功'})
+                            that.$toast({message: '验证码获取成功'})
                             if (that.isiOS) {
                                 window.webkit.messageHandlers.returnVerificationCode.postMessage(res.ret.toString());
                             }
@@ -80,7 +80,7 @@
                                 window.hap.verificationCode(res.ret.toString());
                             }
                         }).catch(data => {
-                            this.$toast.fail({icon: 'close', message: data.errmsg})
+                            that.$toast.fail({icon: 'close', message: data.errmsg})
                             if (that.isiOS) {
                                 window.webkit.messageHandlers.returnVerificationCode.postMessage(res.ret.toString());
                             }