seimin 3 years ago
parent
commit
db4da72d2d
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/views/my.vue

+ 4 - 4
src/views/my.vue

@@ -152,10 +152,10 @@ export default {
152
       });
152
       });
153
       toast.show();
153
       toast.show();
154
       let address = "";
154
       let address = "";
155
-      // let addressResult = await this.getLocation();
156
-      // if (addressResult.status === 0) {
157
-      //   address = addressResult.result.formatted_addresses.recommend;
158
-      // }
155
+      let addressResult = await this.getLocation();
156
+      if (addressResult.status === 0) {
157
+        address = addressResult.result.formatted_addresses.recommend;
158
+      }
159
       online = online == 1 ? 0 : 1;
159
       online = online == 1 ? 0 : 1;
160
       this.$http
160
       this.$http
161
         .post("service/auth/online", { onlion: online, address })
161
         .post("service/auth/online", { onlion: online, address })