fixbug
This commit is contained in:
parent
18395e7841
commit
4a80e4c730
@ -3,7 +3,7 @@
|
|||||||
<div class="page">
|
<div class="page">
|
||||||
<div style="margin-top: 350px;">
|
<div style="margin-top: 350px;">
|
||||||
|
|
||||||
<van-field v-model="userName" clearable placeholder="请输入姓名">
|
<van-field v-model="userName" clearable placeholder="请输入姓名" @input="preventSpace">
|
||||||
<template #label>
|
<template #label>
|
||||||
<div style="color: #E5E5E5;">
|
<div style="color: #E5E5E5;">
|
||||||
预约人姓名
|
预约人姓名
|
||||||
@ -11,7 +11,7 @@
|
|||||||
</template>
|
</template>
|
||||||
</van-field>
|
</van-field>
|
||||||
|
|
||||||
<van-field style="margin-top: 20px;" v-model="num" clearable placeholder="请输入用餐人数">
|
<van-field style="margin-top: 20px;" type="number" v-model="num" clearable placeholder="请输入用餐人数">
|
||||||
<template #label>
|
<template #label>
|
||||||
<div style="color: #E5E5E5;">
|
<div style="color: #E5E5E5;">
|
||||||
用餐人数
|
用餐人数
|
||||||
@ -147,7 +147,9 @@ const addYuyue = async () => {
|
|||||||
showfail.value = true
|
showfail.value = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
const preventSpace = (e) => {
|
||||||
|
e.target.value = e.target.value.replace(/\s/g, '')
|
||||||
|
}
|
||||||
|
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
|
Loading…
Reference in New Issue
Block a user