From be4932df1241c86ca1876d39fa766399d927ce00 Mon Sep 17 00:00:00 2001 From: kuaileWu <1432334894@qq.com> Date: Tue, 24 Jun 2025 18:37:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E5=85=BC=E5=AE=B9pad?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 1 + components/FormItem.vue | 245 ++++++++++++++------------ components/SelectYear.vue | 170 ------------------ components/customeDatePicker.vue | 293 ++++++++++++++++++++++++++++++++ components/inputBox.vue | 28 +-- components/preBookList.vue | 7 +- pages/index/index.vue | 1 + pages/modify_visitor/modify_visitor.vue | 42 ++--- pages/visit_detail/visit_detail.vue | 6 +- pages/visitors/visitors.vue | 4 +- 10 files changed, 472 insertions(+), 325 deletions(-) delete mode 100644 components/SelectYear.vue create mode 100644 components/customeDatePicker.vue diff --git a/App.vue b/App.vue index 9d7a82b..d4f6022 100644 --- a/App.vue +++ b/App.vue @@ -242,6 +242,7 @@ } .btn{ text-align: center; + font-size: 32rpx; } .primary.btn{ background-color: #39D067; diff --git a/components/FormItem.vue b/components/FormItem.vue index ff9fb45..3b2ab6f 100644 --- a/components/FormItem.vue +++ b/components/FormItem.vue @@ -1,119 +1,152 @@ + + - + handleClick() { + if (!this.disabled) { + this.$emit('click'); // 触发父组件的选择逻辑 + } + }, + }, +}; + + + \ No newline at end of file +.placeholder { + font-family: PingFang SC; + font-size: 32rpx; + font-weight: normal; + line-height: 44rpx; + text-align: right; + letter-spacing: 0.24rpx; + color: #000; +} +/deep/ .formItemPlaceholderStyle { + font-size: 32rpx; + color: #999999; + line-height: 44rpx; +} + \ No newline at end of file diff --git a/components/SelectYear.vue b/components/SelectYear.vue deleted file mode 100644 index 0b08fcb..0000000 --- a/components/SelectYear.vue +++ /dev/null @@ -1,170 +0,0 @@ - - - - \ No newline at end of file diff --git a/components/customeDatePicker.vue b/components/customeDatePicker.vue new file mode 100644 index 0000000..e3d53b6 --- /dev/null +++ b/components/customeDatePicker.vue @@ -0,0 +1,293 @@ + + + + + + \ No newline at end of file diff --git a/components/inputBox.vue b/components/inputBox.vue index 14e0b10..da1fdcb 100644 --- a/components/inputBox.vue +++ b/components/inputBox.vue @@ -1,10 +1,10 @@ @@ -37,6 +37,10 @@ export default { type: String, default: "" }, + inputstyle: { + type: String, + default: "" + }, holder: { type: String, default: '' @@ -82,12 +86,12 @@ export default { this.errormsg = this.label+'不能为空' return false } - + if(this.rule == 'phone' && !/^1[3-9]\d{9}$/.test(noEmptyVal)){ this.errormsg = '手机号格式不正确' return false } - + if(this.rule == 'idcardext' && (!/[a-z0-9A-Z]{4}/.test(noEmptyVal) || noEmptyVal.length!=4)){ this.errormsg = this.label+'格式不正确' return false @@ -126,7 +130,7 @@ export default {