梁航:获取个人发布的信息接口

This commit is contained in:
hot777zz
2023-11-19 00:51:58 +08:00
parent 28763a8e28
commit e45d8775d6
2 changed files with 17 additions and 1 deletions

View File

@@ -32,8 +32,13 @@
this.macthList = res.data.data this.macthList = res.data.data
console.log(res); console.log(res);
}) })
},
getMyPublished(type){
this.$api.getMyPublished(type).then(res => {
console.log(res);
console.log(type);
})
} }
}, },
onLoad: function (option) { onLoad: function (option) {
wx.setNavigationBarTitle({ wx.setNavigationBarTitle({
@@ -42,16 +47,20 @@
this.titletext = option.titletext this.titletext = option.titletext
if(this.titletext == '发布的店铺转让'){ if(this.titletext == '发布的店铺转让'){
this.listId = 0 this.listId = 0
this.getMyPublished(1)
} }
if(this.titletext == '发布的找店选址'){ if(this.titletext == '发布的找店选址'){
this.listId = 1 this.listId = 1
this.getMyPublished(2)
} }
if(this.titletext == '发布的项目招商'){ if(this.titletext == '发布的项目招商'){
this.listId = 2 this.listId = 2
this.getMyPublished(4)
} }
if(this.titletext == '发布的店铺出租'){ if(this.titletext == '发布的店铺出租'){
this.listId = 3 this.listId = 3
this.getMyPublished(3)
} }
if(this.titletext == '我的匹配'){ if(this.titletext == '我的匹配'){
this.listId = 4 this.listId = 4

View File

@@ -290,6 +290,13 @@ const apiService = {
return new Promise((resolve,reject) => { return new Promise((resolve,reject) => {
resolve(service.get(url)) resolve(service.get(url))
}) })
},
//获取个人发布过的信息
getMyPublished(type){
const url = `/center/mypub/?type=${type}`
return new Promise((resolve,reject) => {
resolve(service.post(url))
})
} }
} }
export { export {