修复问题

This commit is contained in:
TOP糯米 2023-03-17 00:35:35 +08:00
parent e04c62df44
commit 51a23c558b
3 changed files with 17 additions and 15 deletions

View File

@ -143,7 +143,7 @@ export default {
return resolve(order); return resolve(order);
} }
return reject(response.msg); return reject(response.msg);
}).catch(e => { throw e }); }).catch(e => { });
}); });
}, },
/** /**

View File

@ -1,8 +1,8 @@
export default { export default {
worketTypeText(type) { worketTypeText(type) {
switch (type) { switch (type) {
case 0: return ['普通师傅', '#bfbfbf']; case 1: return ['普通师傅', '#bfbfbf'];
case 1: return ['入驻师傅', '#d9a019']; case 2: return ['入驻师傅', '#d9a019'];
} }
}, },
} }

View File

@ -123,10 +123,10 @@ export default {
}, },
], ],
action: { action: {
item1: 1, item1: 0,
item2: 2, item2: 0,
item3: 3, item3: 0,
item4: 4, item4: 0,
}, },
}; };
}, },
@ -137,14 +137,16 @@ export default {
onShow() { onShow() {
this.$request({ this.$request({
api: "system.serviceData", api: "system.serviceData",
}).then((response) => { })
if (response.code == 1) { .then((response) => {
this.action.item1 = response.data.order1; if (response.code == 1) {
this.action.item2 = response.data.order2; this.action.item1 = response.data.order1;
this.action.item3 = response.data.order3; this.action.item2 = response.data.order2;
this.action.item4 = response.data.order4; this.action.item3 = response.data.order3;
} this.action.item4 = response.data.order4;
}); }
})
.catch((e) => {});
}, },
onReady() {}, onReady() {},
onReachBottom() {}, onReachBottom() {},