邓洁 : 地图接口
This commit is contained in:
@@ -128,8 +128,8 @@ const toast = {
|
||||
}
|
||||
const apiService = {
|
||||
serverHost,
|
||||
imgUrl:'https://spsp.feashow.com/',
|
||||
key:'ZRKBZ-Q7FWL-GVZPK-MCRBU-4XFB5-ATBDB',
|
||||
imgUrl: 'https://spsp.feashow.com/',
|
||||
key: 'ZRKBZ-Q7FWL-GVZPK-MCRBU-4XFB5-ATBDB',
|
||||
uploadImgUrl: serverHost + `/upload/image/`,
|
||||
//登录接口
|
||||
login(data) {
|
||||
@@ -145,6 +145,13 @@ const apiService = {
|
||||
resolve(service.post(url, data))
|
||||
})
|
||||
},
|
||||
//地图
|
||||
getMap(data) {
|
||||
const url = '/home/map'
|
||||
return new Promise((resolve, reject) => {
|
||||
resolve(service.post(url, data))
|
||||
})
|
||||
},
|
||||
// 获取客服电话
|
||||
getCsTel() {
|
||||
const url = '/center/cfg?key=kf_phone'
|
||||
@@ -203,10 +210,10 @@ const apiService = {
|
||||
resolve(service.get(url))
|
||||
})
|
||||
},
|
||||
editPersonInfo(data){
|
||||
editPersonInfo(data) {
|
||||
const url = `/center/userupdate`
|
||||
return new Promise((resolve,reject) => {
|
||||
resolve(service.post(url,data))
|
||||
return new Promise((resolve, reject) => {
|
||||
resolve(service.post(url, data))
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user