Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mongo-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
mongo-ui
Commits
f576da6c
Commit
f576da6c
authored
Aug 20, 2020
by
郭志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 华贵表单验证完善
parent
20e7c738
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
161 additions
and
86 deletions
+161
-86
App.vue
src/App.vue
+1
-0
validation.js
src/service/validation.js
+18
-0
index.vue
src/views/Consultant/Plan/index.vue
+0
-54
index.vue
src/views/Policy/Add/index.vue
+142
-32
No files found.
src/App.vue
View file @
f576da6c
...
...
@@ -40,6 +40,7 @@ export default {
display: flex;
justify-content: center;
align-items: center;
z-index: 9999;
.loading {
padding: 6px;
border-radius: 6px;
...
...
src/service/validation.js
View file @
f576da6c
...
...
@@ -69,6 +69,15 @@ export function isIdNo(str) {
return
false
;
}
// 判断输入的字符是否为中文姓名最少两个中文字符
export
function
isChineseName
(
str
)
{
if
(
!
isNull
(
str
))
{
const
reg
=
/^
[\u
0391-
\u
FFE5
]{2,}
$/
;
return
reg
.
test
(
str
);
}
return
false
;
}
// 判断输入的字符是否以数字开头
export
function
isStartWithInteger
(
str
)
{
if
(
!
isNull
(
str
))
{
...
...
@@ -258,6 +267,15 @@ export function isBankNumber(str) {
return
false
;
}
// 判断中文地址不能少于5个汉字,且必须有一位数字
export
function
isChnAddress
(
str
)
{
if
(
!
isNull
(
str
))
{
const
reg
=
/^
(\d
|
[\u
4e00-
\u
9fa5
]){5,10}
$/
;
return
reg
.
test
(
str
);
}
return
false
;
}
// 判断微信环境
export
const
isWeixinBrower
=
window
.
navigator
.
userAgent
.
toLowerCase
().
match
(
/MicroMessenger/i
)
==
"
micromessenger
"
;
// 判断信用钱包环境
...
...
src/views/Consultant/Plan/index.vue
View file @
f576da6c
...
...
@@ -109,60 +109,6 @@ export default {
{
title
:
"
重疾险
"
,
price
:
"
50万
"
},
{
title
:
"
意外险
"
,
price
:
"
60万
"
},
{
title
:
"
寿险
"
,
price
:
"
350万
"
}
],
overviewList
:
[
{
id
:
1
,
goods
:
"
国民保·百万医疗险
"
,
type
:
"
mi
"
,
title
:
"
医疗险
"
,
amount
:
"
600万
"
,
range
:
"
1年
"
,
way
:
"
趸交
"
,
price
:
"
350元
"
,
goodsPirce
:
"
3000
"
,
goodsUnit
:
"
元/每年
"
,
reason
:
"
推荐理由推荐理由推荐理由推荐理由推荐理由推荐理由推荐理由
"
},
{
id
:
2
,
goods
:
"
康惠保2020终身重疾险
"
,
type
:
"
cii
"
,
title
:
"
重疾险
"
,
amount
:
"
50万
"
,
range
:
"
终身
"
,
way
:
"
20年
"
,
price
:
"
6000元
"
,
goodsPirce
:
"
6000
"
,
goodsUnit
:
"
元/每年
"
,
reason
:
"
推荐理由推荐理由推荐理由推荐理由推荐理由推荐理由推荐理由
"
},
{
id
:
3
,
goods
:
"
国民保·百万意外险
"
,
type
:
"
ai
"
,
title
:
"
意外险
"
,
amount
:
"
50万
"
,
range
:
"
1年
"
,
way
:
"
趸交
"
,
price
:
"
350元
"
,
goodsPirce
:
"
3000
"
,
goodsUnit
:
"
元/每年
"
,
reason
:
"
推荐理由推荐理由推荐理由推荐理由推荐理由推荐理由推荐理由
"
},
{
id
:
4
,
goods
:
"
国民保·百万寿险
"
,
type
:
"
li
"
,
title
:
"
寿险
"
,
amount
:
"
350万
"
,
range
:
"
保至70岁
"
,
way
:
"
20年
"
,
price
:
"
3725元
"
,
goodsPirce
:
"
3000
"
,
goodsUnit
:
"
元/每年
"
,
reason
:
"
推荐理由推荐理由推荐理由推荐理由推荐理由推荐理由推荐理由
"
}
]
};
},
...
...
src/views/Policy/Add/index.vue
View file @
f576da6c
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment