Drew hace 6 años
padre
commit
18df3762c7
Se han modificado 3 ficheros con 3 adiciones y 3 borrados
  1. 1 1
      src/app.wpy
  2. 1 1
      src/utils/api.js
  3. 1 1
      src/utils/config.js

+ 1 - 1
src/app.wpy

@@ -247,7 +247,7 @@ export default class extends wepy.app {
             datRes = await getCityId({ city: data.result.ad_info.city });
             this.globalData.location.current_city = {
                 ...res,
-                ...datRes.data.location
+                ...datRes
             };
             this.globalData.locateFail = false;
 

+ 1 - 1
src/utils/api.js

@@ -162,7 +162,7 @@ function getCity(data) {
     {city:'北京市'}
 ------------------*/
 function getCityId(data) {
-    return API.GET(`${BASE_URL}/location?city=${data.city}`, data, {
+    return API.GET(`${BASE_URL}/location/getCityLocation?city=${data.city}`, data, {
         toast: { duration: 1000 }
     });
 }

+ 1 - 1
src/utils/config.js

@@ -1,5 +1,5 @@
 const HOST = 'https://movieplusplus.com'
-const BASE_URL = 'https://huanpiao.izouma.com'
+const BASE_URL = 'http://localhost:8080'
 const API = HOST + '/api/v3'
 const APIv2 = HOST + '/api/v2'