From e45d8775d6eccdbc9fdeb3443635c226b358f6b7 Mon Sep 17 00:00:00 2001 From: hot777zz <912275990@qq.com> Date: Sun, 19 Nov 2023 00:51:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A2=81=E8=88=AA=EF=BC=9A=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E5=8F=91=E5=B8=83=E7=9A=84=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/published/published.vue | 11 ++++++++++- service/request.js | 7 +++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/pages/published/published.vue b/pages/published/published.vue index 099a485..25ff32b 100644 --- a/pages/published/published.vue +++ b/pages/published/published.vue @@ -32,8 +32,13 @@ this.macthList = res.data.data console.log(res); }) + }, + getMyPublished(type){ + this.$api.getMyPublished(type).then(res => { + console.log(res); + console.log(type); + }) } - }, onLoad: function (option) { wx.setNavigationBarTitle({ @@ -42,16 +47,20 @@ this.titletext = option.titletext if(this.titletext == '发布的店铺转让'){ this.listId = 0 + this.getMyPublished(1) } if(this.titletext == '发布的找店选址'){ this.listId = 1 + this.getMyPublished(2) } if(this.titletext == '发布的项目招商'){ this.listId = 2 + this.getMyPublished(4) } if(this.titletext == '发布的店铺出租'){ this.listId = 3 + this.getMyPublished(3) } if(this.titletext == '我的匹配'){ this.listId = 4 diff --git a/service/request.js b/service/request.js index 94cbe1a..eb65803 100644 --- a/service/request.js +++ b/service/request.js @@ -290,6 +290,13 @@ const apiService = { return new Promise((resolve,reject) => { resolve(service.get(url)) }) + }, + //获取个人发布过的信息 + getMyPublished(type){ + const url = `/center/mypub/?type=${type}` + return new Promise((resolve,reject) => { + resolve(service.post(url)) + }) } } export {