From 7199cb6e23f7f93506b9bc908601a85146c4ad7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?TOP=E7=B3=AF=E7=B1=B3?= <1130395124@qq.com> Date: Wed, 15 Mar 2023 11:29:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=A6=96=E9=A1=B5=E6=8E=A5?= =?UTF-8?q?=E5=8D=95=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/apis.js | 7 ++++++- src/pages/index/index.vue | 8 +++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/core/apis.js b/src/core/apis.js index 71bca1c..aa61502 100644 --- a/src/core/apis.js +++ b/src/core/apis.js @@ -4,6 +4,11 @@ const apis = { url: "/wxapp/index/one", showLoading: true, }, + serviceData: { + url: "/user/workerinfo/datainfo", + showLoading: true, + auth: true, + }, }, user: { sendCode: { @@ -28,7 +33,7 @@ const apis = { setServiceInfo: { url: "/user/workerinfo/setinfo", auth: true, - } + }, }, service: { cate: { diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index f72fcd1..4ceb047 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -134,7 +134,13 @@ export default { AppLayout, }, onLoad() {}, - onShow() {}, + onShow() { + this.$request({ + api: "system.serviceData", + }).then((response) => { + console.log(response); + }); + }, onReady() {}, onReachBottom() {}, onPullDownRefresh() {},