|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<div class="apply">
|
|
|
- <van-nav-bar title="预定" left-text="返回列表" left-arrow @click-left="$router.go(-1)" />
|
|
|
+ <van-nav-bar title="预定" />
|
|
|
<van-form @submit="onSubmit">
|
|
|
<van-field
|
|
|
v-model="username"
|
|
@@ -50,9 +50,11 @@ import {
|
|
|
Button as vanButton,
|
|
|
RadioGroup as vanRadioGroup,
|
|
|
Radio as vanRadio,
|
|
|
+ Toast
|
|
|
} from "vant";
|
|
|
import "vant/lib/nav-bar/style/index";
|
|
|
import "vant/lib/form/style/index";
|
|
|
+import "vant/lib/toast/style/index";
|
|
|
import "vant/lib/field/style/index";
|
|
|
import "vant/lib/button/style/index";
|
|
|
|
|
@@ -78,8 +80,7 @@ export default {
|
|
|
});
|
|
|
|
|
|
},
|
|
|
- computed: {
|
|
|
- },
|
|
|
+ computed: {},
|
|
|
methods: {
|
|
|
filter(type, options) {
|
|
|
if (type === "minute") {
|
|
@@ -88,13 +89,12 @@ export default {
|
|
|
return options;
|
|
|
},
|
|
|
onSubmit() {
|
|
|
-
|
|
|
applyreal({
|
|
|
userName: this.username,
|
|
|
userPhone: this.userphone,
|
|
|
goodsId: this.radio,
|
|
|
}).then(() => {
|
|
|
- this.$router.push('/');
|
|
|
+ Toast("预约成功")
|
|
|
});
|
|
|
},
|
|
|
},
|