feat: customer表单修改

This commit is contained in:
zhangyahui
2025-11-20 14:38:51 +08:00
parent 5d0de60498
commit f35274310e
2 changed files with 7 additions and 5 deletions

View File

@@ -146,8 +146,7 @@ export function getTryOnEffectStyleList(styleId: string | number) {
// 选择顾客 // 选择顾客
interface CustomerInfo { interface CustomerInfo {
name: string vipId: string
email?: string
} }
export const customerCheckin = (data: CustomerInfo) => { export const customerCheckin = (data: CustomerInfo) => {
return request({ return request({

View File

@@ -27,7 +27,7 @@
<div class="form-field"> <div class="form-field">
<label class="field-label">VIP ID</label> <label class="field-label">VIP ID</label>
<input <input
v-model="customerData.name" v-model="customerData.vipId"
type="text" type="text"
placeholder="Enter your ID" placeholder="Enter your ID"
class="form-input" class="form-input"
@@ -71,12 +71,12 @@ const handleChangeMode = (mode: PageMode) => {
} }
const customerData = ref({ const customerData = ref({
name: '' vipId: ''
// email: '' // email: ''
}) })
const handleConfirm = async () => { const handleConfirm = async () => {
if (customerData.value.name === '') { if (customerData.value.vipId === '') {
showToast({ showToast({
message: 'please input name and email', message: 'please input name and email',
position: 'top' position: 'top'
@@ -195,6 +195,9 @@ const handleConfirm = async () => {
padding: 8.2rem 7.9rem; padding: 8.2rem 7.9rem;
margin-top: 7.5rem; margin-top: 7.5rem;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
display: flex;
flex-direction: column;
justify-content: space-evenly;
background: radial-gradient( background: radial-gradient(
100% 100% at 0% 0%, 100% 100% at 0% 0%,