梁航:我的匹配接口
This commit is contained in:
@@ -69,7 +69,7 @@ const service = {
|
||||
header['content-type'] = 'application/x-www-form-urlencoded'
|
||||
return new Promise((resolve, reject) => {
|
||||
uni.request({
|
||||
method: 'put',
|
||||
method: 'post',
|
||||
url: serverHost + url,
|
||||
data: data,
|
||||
header: header,
|
||||
@@ -203,10 +203,18 @@ const apiService = {
|
||||
resolve(service.get(url))
|
||||
})
|
||||
},
|
||||
//修改个人信息
|
||||
editPersonInfo(data){
|
||||
const url = `/center/userupdate`
|
||||
const url = `center/userupdate`
|
||||
return new Promise((resolve,reject) => {
|
||||
resolve(service.post(url,data))
|
||||
resolve(service.putWithFormData(url,data))
|
||||
})
|
||||
},
|
||||
//获取我的匹配
|
||||
getMyMatch(){
|
||||
const url = `/center/match/`
|
||||
return new Promise((resolve,reject) => {
|
||||
resolve(service.get(url))
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user