dengjie commit : 我的页面部分接口

This commit is contained in:
clay
2023-01-05 21:57:51 +08:00
parent 2417d8fe28
commit 458f5a2562
17 changed files with 341 additions and 371 deletions

View File

@@ -116,7 +116,6 @@ const service = {
})
})
}
}
const toastDuration = 1500
const toast = {
@@ -223,7 +222,41 @@ const apiService = {
resolve(service.get(url, id))
})
},
//绑定公司和升级VIP
bindComponyAndUpdate(data) {
const url = `/center/update`
return new Promise((resolve, reject) => {
resolve(service.post(url, data))
})
},
//获取历史记录或收藏
getHistoryOrCollection(type) {
const url = `/center/favlist/?type=${type}`
return new Promise((resolve, reject) => {
resolve(service.get(url, type))
})
},
//删除历史记录或收藏
deleteHistoryOrCollection(id) {
const url = `/center/delfav/?id=${id}`
return new Promise((resolve, reject) => {
resolve(service.post(url, id))
})
},
//收藏按钮
collect(pid) {
const url = `/center/addfav/?pid=${pid}`
return new Promise((resolve, reject) => {
resolve(service.post(url, pid))
})
},
//点赞按钮
thumb(pid) {
const url = `/center/thumb/?pid=${pid}`
return new Promise((resolve, reject) => {
resolve(service.post(url, pid))
})
},
// 获取首页分类Tag
getTags(data) {
const url = `/home/tags`