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() {},