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 {