diff --git a/pages/index/fabu.vue b/pages/index/fabu.vue index 49ffec0..210e23b 100644 --- a/pages/index/fabu.vue +++ b/pages/index/fabu.vue @@ -487,7 +487,7 @@ agreeShow.value = true } - function apply() { + async function apply() { if (agreeAdd.value == false) { uni.showToast({ title: '请先同意发布须知', @@ -573,6 +573,12 @@ return } console.log('apply——form:', form.value); + + const res = await sheep.$api.rent.addRent(form.value) + if(res.code == 1){ + console.log('发布成功'); + } + }