增加首页接单数据

This commit is contained in:
TOP糯米 2023-03-15 11:29:43 +08:00
parent 79136764c4
commit 7199cb6e23
2 changed files with 13 additions and 2 deletions

View File

@ -4,6 +4,11 @@ const apis = {
url: "/wxapp/index/one", url: "/wxapp/index/one",
showLoading: true, showLoading: true,
}, },
serviceData: {
url: "/user/workerinfo/datainfo",
showLoading: true,
auth: true,
},
}, },
user: { user: {
sendCode: { sendCode: {
@ -28,7 +33,7 @@ const apis = {
setServiceInfo: { setServiceInfo: {
url: "/user/workerinfo/setinfo", url: "/user/workerinfo/setinfo",
auth: true, auth: true,
} },
}, },
service: { service: {
cate: { cate: {

View File

@ -134,7 +134,13 @@ export default {
AppLayout, AppLayout,
}, },
onLoad() {}, onLoad() {},
onShow() {}, onShow() {
this.$request({
api: "system.serviceData",
}).then((response) => {
console.log(response);
});
},
onReady() {}, onReady() {},
onReachBottom() {}, onReachBottom() {},
onPullDownRefresh() {}, onPullDownRefresh() {},