Browse Source

清除地址选择记录

yangc 7 years ago
parent
commit
d6e3d7da92
1 changed files with 14 additions and 0 deletions
  1. 14 0
      components/mobile/base/SelectAddress.vue

+ 14 - 0
components/mobile/base/SelectAddress.vue

@@ -47,6 +47,20 @@
         }
         }
       })
       })
     },
     },
+    watch: {
+      isShow: function (val) {
+        if (val) {
+          this.activeObj = {
+            // 省
+            province: -1,
+            // 市
+            city: -1,
+            // 区
+            area: -1
+          }
+        }
+      }
+    },
     computed: {
     computed: {
       currentType () {
       currentType () {
         if (this.activeObj.area > -1) {
         if (this.activeObj.area > -1) {