Showing
6 changed files
with
23 additions
and
26 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2023-06-13 13:26:46 | 2 | * @Date: 2023-06-13 13:26:46 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2024-01-15 13:06:31 | 4 | + * @LastEditTime: 2024-01-18 11:10:18 |
| 5 | * @FilePath: /xysBooking/index.html | 5 | * @FilePath: /xysBooking/index.html |
| 6 | - * @Description: 文件描述 | 6 | + * @Description: 西园寺预约 |
| 7 | --> | 7 | --> |
| 8 | <!DOCTYPE html> | 8 | <!DOCTYPE html> |
| 9 | <html lang='zh'> | 9 | <html lang='zh'> | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2023-06-13 13:26:46 | 2 | * @Date: 2023-06-13 13:26:46 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2024-01-15 17:46:14 | 4 | + * @LastEditTime: 2024-01-18 11:11:46 |
| 5 | * @FilePath: /xysBooking/src/App.vue | 5 | * @FilePath: /xysBooking/src/App.vue |
| 6 | * @Description: 启动页 | 6 | * @Description: 启动页 |
| 7 | --> | 7 | --> |
| 8 | <template> | 8 | <template> |
| 9 | - <!-- <div> --> | ||
| 10 | <router-view></router-view> | 9 | <router-view></router-view> |
| 11 | - <!-- </div> --> | ||
| 12 | </template> | 10 | </template> |
| 13 | 11 | ||
| 14 | <script setup> | 12 | <script setup> | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2024-01-15 17:39:29 | 2 | * @Date: 2024-01-15 17:39:29 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2024-01-18 10:23:30 | 4 | + * @LastEditTime: 2024-01-18 11:14:49 |
| 5 | * @FilePath: /xysBooking/src/views/addVisitor.vue | 5 | * @FilePath: /xysBooking/src/views/addVisitor.vue |
| 6 | - * @Description: 文件描述 | 6 | + * @Description: 添加参观者页面 |
| 7 | --> | 7 | --> |
| 8 | <template> | 8 | <template> |
| 9 | <div class="add-visitor-page"> | 9 | <div class="add-visitor-page"> |
| ... | @@ -63,33 +63,31 @@ import { addPersonAPI } from '@/api/index' | ... | @@ -63,33 +63,31 @@ import { addPersonAPI } from '@/api/index' |
| 63 | const $route = useRoute(); | 63 | const $route = useRoute(); |
| 64 | const $router = useRouter(); | 64 | const $router = useRouter(); |
| 65 | useTitle($route.meta.title); | 65 | useTitle($route.meta.title); |
| 66 | + | ||
| 66 | const go = useGo(); | 67 | const go = useGo(); |
| 68 | + | ||
| 67 | const username = ref(''); | 69 | const username = ref(''); |
| 68 | const idCode = ref(''); | 70 | const idCode = ref(''); |
| 69 | -const isError = ref(false); | ||
| 70 | 71 | ||
| 71 | const show_error = ref(false); | 72 | const show_error = ref(false); |
| 72 | const error_message = ref(''); | 73 | const error_message = ref(''); |
| 73 | 74 | ||
| 74 | -const checkUsername = () => { | 75 | +const checkUsername = () => { // 检查用户名是否为空 |
| 75 | let flag = true; | 76 | let flag = true; |
| 76 | - if (username.value) { | 77 | + if (!username.value) { |
| 77 | - | ||
| 78 | - } else { | ||
| 79 | show_error.value = true; | 78 | show_error.value = true; |
| 80 | error_message.value = '参观者名称不能为空'; | 79 | error_message.value = '参观者名称不能为空'; |
| 81 | flag = false; | 80 | flag = false; |
| 82 | } | 81 | } |
| 83 | return flag; | 82 | return flag; |
| 84 | } | 83 | } |
| 85 | -const checkIdCode = () => { | 84 | + |
| 85 | +const checkIdCode = () => { // 检查身份证号是否为空 | ||
| 86 | let flag = true; | 86 | let flag = true; |
| 87 | if (idCode.value.length === 15) { // 15位身份证号码不校验 | 87 | if (idCode.value.length === 15) { // 15位身份证号码不校验 |
| 88 | flag = true; | 88 | flag = true; |
| 89 | } else { | 89 | } else { |
| 90 | - if (validateCIN(idCode.value)) { | 90 | + if (!validateCIN(idCode.value)) { |
| 91 | - | ||
| 92 | - } else { | ||
| 93 | show_error.value = true; | 91 | show_error.value = true; |
| 94 | error_message.value = '请检查身份证号码'; | 92 | error_message.value = '请检查身份证号码'; |
| 95 | flag = false; | 93 | flag = false; |
| ... | @@ -116,14 +114,15 @@ const columns = [ | ... | @@ -116,14 +114,15 @@ const columns = [ |
| 116 | { text: '身份证', value: '1' }, | 114 | { text: '身份证', value: '1' }, |
| 117 | { text: '其他证件', value: '3' }, | 115 | { text: '其他证件', value: '3' }, |
| 118 | ]; | 116 | ]; |
| 117 | + | ||
| 119 | const fieldValue = ref('身份证'); | 118 | const fieldValue = ref('身份证'); |
| 120 | const id_type = ref('1'); | 119 | const id_type = ref('1'); |
| 121 | 120 | ||
| 122 | -const onConfirm = ({ selectedOptions }) => { | 121 | +const onConfirm = ({ selectedOptions }) => { // 切换类型回调 |
| 123 | showPicker.value = false; | 122 | showPicker.value = false; |
| 124 | // | 123 | // |
| 125 | - fieldValue.value = selectedOptions[0].text; | 124 | + fieldValue.value = selectedOptions[0].text; // 选中的文字 |
| 126 | - id_type.value = selectedOptions[0].value; | 125 | + id_type.value = selectedOptions[0].value; // 选中的value |
| 127 | }; | 126 | }; |
| 128 | </script> | 127 | </script> |
| 129 | 128 | ||
| ... | @@ -156,7 +155,7 @@ const onConfirm = ({ selectedOptions }) => { | ... | @@ -156,7 +155,7 @@ const onConfirm = ({ selectedOptions }) => { |
| 156 | justify-content: center; | 155 | justify-content: center; |
| 157 | .save-btn { | 156 | .save-btn { |
| 158 | background-color: #A67939; | 157 | background-color: #A67939; |
| 159 | - padding: 0.8rem 8rem; | 158 | + padding: 0.8rem 10rem; |
| 160 | color: #FFF; | 159 | color: #FFF; |
| 161 | border-radius: 5px; | 160 | border-radius: 5px; |
| 162 | } | 161 | } | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2024-01-15 13:35:51 | 2 | * @Date: 2024-01-15 13:35:51 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2024-01-18 09:53:50 | 4 | + * @LastEditTime: 2024-01-18 10:40:58 |
| 5 | * @FilePath: /xysBooking/src/views/booking.vue | 5 | * @FilePath: /xysBooking/src/views/booking.vue |
| 6 | * @Description: 预约页面 | 6 | * @Description: 预约页面 |
| 7 | * @Version: 1.0.0 | 7 | * @Version: 1.0.0 |
| ... | @@ -379,7 +379,7 @@ const nextBtn = () => { | ... | @@ -379,7 +379,7 @@ const nextBtn = () => { |
| 379 | box-shadow: 0rem -0.33rem 0.25rem 0rem rgba(0,0,0,0.12); | 379 | box-shadow: 0rem -0.33rem 0.25rem 0rem rgba(0,0,0,0.12); |
| 380 | .button { | 380 | .button { |
| 381 | color: #FFF; | 381 | color: #FFF; |
| 382 | - padding: 0.85rem 8rem; | 382 | + padding: 0.85rem 9rem; |
| 383 | border-radius: 8px; | 383 | border-radius: 8px; |
| 384 | } | 384 | } |
| 385 | } | 385 | } | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2024-01-16 13:33:36 | 2 | * @Date: 2024-01-16 13:33:36 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2024-01-18 10:36:04 | 4 | + * @LastEditTime: 2024-01-18 11:11:00 |
| 5 | * @FilePath: /xysBooking/src/views/me.vue | 5 | * @FilePath: /xysBooking/src/views/me.vue |
| 6 | - * @Description: 文件描述 | 6 | + * @Description: 我的页面 |
| 7 | --> | 7 | --> |
| 8 | <template> | 8 | <template> |
| 9 | <div class="me-page"> | 9 | <div class="me-page"> | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2024-01-15 16:25:51 | 2 | * @Date: 2024-01-15 16:25:51 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2024-01-18 10:36:40 | 4 | + * @LastEditTime: 2024-01-18 11:05:25 |
| 5 | * @FilePath: /xysBooking/src/views/submit.vue | 5 | * @FilePath: /xysBooking/src/views/submit.vue |
| 6 | * @Description: 预约人员信息 | 6 | * @Description: 预约人员信息 |
| 7 | --> | 7 | --> |
| ... | @@ -9,7 +9,7 @@ | ... | @@ -9,7 +9,7 @@ |
| 9 | <div class="submit-page"> | 9 | <div class="submit-page"> |
| 10 | <div @click="goToBooking" class="visit-time"> | 10 | <div @click="goToBooking" class="visit-time"> |
| 11 | <div>参访时间</div> | 11 | <div>参访时间</div> |
| 12 | - <div>{{ date }} {{ time }} <van-icon name="arrow" /></div> | 12 | + <div><span style="font-size: 0.95rem;">{{ date }} {{ time }}</span> <van-icon name="arrow" /></div> |
| 13 | </div> | 13 | </div> |
| 14 | <div @click="goToVisitor" class="add-visitors"> | 14 | <div @click="goToVisitor" class="add-visitors"> |
| 15 | <div><van-icon name="plus" /> 添加参观者</div> | 15 | <div><van-icon name="plus" /> 添加参观者</div> | ... | ... |
-
Please register or login to post a comment