Parcourir la source

feat:图形验证码功能

leo il y a 1 an
Parent
commit
f96cd2884e

+ 5 - 4
components/verifition/Verify/VerifySlide.vue

@@ -141,7 +141,7 @@ export default {
       default() {
         return {
           width: '310px',
-          height: '40px',
+          height: '50px',
         };
       },
     },
@@ -257,12 +257,13 @@ export default {
     // 鼠标按下
     start: function (e) {
       e = e || window.event;
+      let x = null;
       if (!e.touches) {
         // 兼容PC端
-        var x = e.clientX;
+        x = e.clientX;
       } else {
         // 兼容移动端
-        var x = e.touches[0].pageX;
+        x = e.touches[0].pageX;
       }
       this.startLeft = Math.floor(
         x - this.barArea.getBoundingClientRect().left,
@@ -273,7 +274,7 @@ export default {
         this.moveBlockBackgroundColor = '#337ab7';
         this.leftBarBorderColor = '#337AB7';
         this.iconColor = '#fff';
-        e.stopPropagation();
+        // e.stopPropagation();
         this.status = true;
       }
     },

+ 7 - 8
pages/claimCloudPhone/components/bargainingAssistance.vue

@@ -225,8 +225,7 @@
                 'login-code',
                 {
                   disabled:
-                    codeNumber !== '获取验证码' ||
-                    laoginData.phone.length < 11,
+                    codeNumber !== '获取验证码' || laoginData.phone.length < 11,
                 },
               ]"
               @click="getCode"
@@ -686,7 +685,7 @@ export default {
         this.$toast('手机号码有误,请重填');
         return;
       }
-      this.$refs.verify.show()
+      this.$refs.verify.show();
     },
     // 登录
     async login() {
@@ -790,10 +789,10 @@ export default {
         type: 'common',
         authorizationType: 4,
         phone: this.laoginData.phone,
-        captchaVerification: data.captchaVerification
+        captchaVerification: data.captchaVerification,
       };
       this.$axios
-        .$post('message/v5/phone/send', params)
+        .$post('activity/v5/assist/bargaining/phone/send/activity', params)
         .then((res) => {
           if (res.success) {
             this.codeNumber = 60;
@@ -817,7 +816,7 @@ export default {
         .finally(() => {
           this.$toast.clear();
         });
-    }
+    },
   },
 };
 </script>
@@ -825,10 +824,10 @@ export default {
 <style lang="less" scoped>
 .bargaining-assistance {
   height: 100%;
-  /deep/ .van-overlay{
+  /deep/ .van-overlay {
     z-index: 0 !important;
   }
-  /deep/ .van-dialog{
+  /deep/ .van-dialog {
     z-index: 0 !important;
   }
   .inviter-tips,