Browse Source

首页修改手机号优化

gzb
guozhongbo 7 months ago
parent
commit
8e9b5c82ab

+ 4
- 0
src/views/layout.vue View File

369
                 oldpwd: ""
369
                 oldpwd: ""
370
               };
370
               };
371
             } else {
371
             } else {
372
+              if (this.adminInfo.timer) {
373
+                clearInterval(this.phoneInfo.timer);
374
+              }
372
               this.phoneInfo = {
375
               this.phoneInfo = {
373
                 show: true,
376
                 show: true,
374
                 timer: null,
377
                 timer: null,
379
                 phone: "",
382
                 phone: "",
380
                 msgcode: ""
383
                 msgcode: ""
381
               };
384
               };
385
+
382
             }
386
             }
383
           } else {
387
           } else {
384
             this.$Message.error(res.msg);
388
             this.$Message.error(res.msg);

+ 6
- 0
src/views/regionSection/regionManage/adminManage.vue View File

571
     },
571
     },
572
     // 新建
572
     // 新建
573
     toAdd() {
573
     toAdd() {
574
+      if(this.adminInfo.timer){
575
+        clearInterval(this.adminInfo.timer);
576
+      }
574
       this.adminInfo = {
577
       this.adminInfo = {
575
         show: true,
578
         show: true,
576
         timer: null,
579
         timer: null,
738
       }).then((res) => {
741
       }).then((res) => {
739
         this.showLoading = false;
742
         this.showLoading = false;
740
         if (res.code === 0) {
743
         if (res.code === 0) {
744
+          if(this.adminInfo.timer){
745
+            clearInterval(this.adminInfo.timer);
746
+          }
741
           this.adminInfo = {
747
           this.adminInfo = {
742
             show: true,
748
             show: true,
743
             timer: null,
749
             timer: null,

+ 0
- 1
src/views/regionSection/regionManage/regionManage.vue View File

788
     toAdd() {
788
     toAdd() {
789
       if (this.regionInfo.timer) {
789
       if (this.regionInfo.timer) {
790
         clearInterval(this.regionInfo.timer);
790
         clearInterval(this.regionInfo.timer);
791
-        this.regionInfo.timer = null;
792
       }
791
       }
793
       this.regionInfo = {
792
       this.regionInfo = {
794
         show: true,
793
         show: true,

Loading…
Cancel
Save