Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
data-table
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2023-02-01 15:07:59 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c5b3367ce4aeea0322c0d01b148b52d9c7ae839a
c5b3367c
1 parent
3d9e8b84
✨ feat: 身份证计算性别功能废弃
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
src/components/IdentityField/index.vue
src/components/IdentityField/index.vue
View file @
c5b3367
<!--
* @Date: 2022-09-14 14:44:30
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-02-01 1
2:05
:15
* @LastEditTime: 2023-02-01 1
5:07
:15
* @FilePath: /data-table/src/components/IdentityField/index.vue
* @Description: 身份证输入控件
-->
...
...
@@ -25,7 +25,7 @@
:border="false"
>
</van-field>
<
div v-if="gender" class="gender"><span>性别:</span>{{ gender }}</div
>
<
!-- <div v-if="gender" class="gender"><span>性别:</span>{{ gender }}</div> --
>
<van-number-keyboard
v-model="item.value"
:show="show"
...
...
@@ -117,7 +117,7 @@ const blurKeyboard = () => {
} else if (input_val && !/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/.test(input_val)) {
showFailToast("请输入正确身份证号码");
} else {
gender.value = getGenderByIdNumber(input_val)
//
gender.value = getGenderByIdNumber(input_val)
}
};
...
...
Please
register
or
login
to post a comment