lucky 2 سال پیش
والد
کامیت
66d8c28330
3فایلهای تغییر یافته به همراه7 افزوده شده و 6 حذف شده
  1. 2 2
      src/App.vue
  2. 1 1
      src/assets/js/active.js
  3. 4 3
      src/views/login/index.vue

+ 2 - 2
src/App.vue

@@ -14,8 +14,8 @@ export default {
     }
   },
   mounted() {
-    this.theme('light')
-      // this.theme('dark')
+    // this.theme('light')
+      this.theme('dark')
     
   },
   methods: {

+ 1 - 1
src/assets/js/active.js

@@ -25,7 +25,7 @@ function Fn2(){
 
 };
 
-
+//底部导航函数
 function tabBar(){
   if(type == 'light'){
     return  [

+ 4 - 3
src/views/login/index.vue

@@ -31,7 +31,7 @@
                         placeholder="xxxxxx"
                         type="text"
                         style="background: transparent"
-                        maxlength="6"
+                        maxlength="9"
                         :rules="[{ validator: asyncmobileValidator }]"
                       >
                       </van-field>
@@ -162,11 +162,12 @@ export default {
           this.show_title("请输入卡号!");
           type = false;
         } else {
-          if (val.length !== 6) {
+          if (val.length < 6) {
             this.show_title("卡号不正确!");
             type = false;
           }
-          if (!isnumber(val)) {
+          let patt = /[^\w\/]/ig
+          if (patt.test(val)) {
             this.show_title("卡号不正确!");
             type = false;
           }