|
@@ -152,10 +152,10 @@ export default {
|
152
|
152
|
});
|
153
|
153
|
toast.show();
|
154
|
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
|
159
|
online = online == 1 ? 0 : 1;
|
160
|
160
|
this.$http
|
161
|
161
|
.post("service/auth/online", { onlion: online, address })
|