feat(customer vue): 주문화면으로 이동

- 매장 화면에서 주문화면으로 이동하는 기능
This commit is contained in:
hoon7566
2022-03-15 11:41:43 +09:00
parent a811d122fc
commit c59023a56f

View File

@@ -8,6 +8,17 @@
<router-view
v-on:getStoreId="renderNavigation">
</router-view>
<div align="right" >
<v-btn
color="primary"
dark
right
fab
@click="toOrder"
>
<v-icon>mdi-basket</v-icon>
</v-btn>
</div>
</v-container>
</v-main>
<bottom-navigation></bottom-navigation>
@@ -45,6 +56,11 @@ export default {
const response = await storeApi.requestStore(this.store.id);
this.store = response.data.data;
},
toOrder(){
if(confirm("주문화면으로 이동할까요?")){
this.$router.replace("/order")
}
}
}
}