梁航:我的匹配接口

This commit is contained in:
hot777zz
2023-11-16 18:16:49 +08:00
parent 126a39edf8
commit 209b3cc1cd
3 changed files with 43 additions and 24 deletions

View File

@@ -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))
})
}
}