Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
voucher-h5
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
潘琦
voucher-h5
Commits
2cb680ea
Commit
2cb680ea
authored
Aug 06, 2020
by
何为
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改签约协议及健康券页面样式
parent
4d31be66
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
43 additions
and
15 deletions
+43
-15
signing.js
src/api/signing/signing.js
+9
-0
notice-img1.png
src/assets/images/notice-img1.png
+0
-0
cardItem.vue
src/components/cardItem.vue
+2
-2
index.vue
src/views/signing/index.vue
+1
-1
index.vue
src/views/signingWD/index.vue
+31
-12
No files found.
src/api/signing/signing.js
View file @
2cb680ea
...
...
@@ -89,3 +89,12 @@ export function getSignInfoBySignId (params) {
params
:
params
})
}
// 根据身份证号查询信息
export
function
getManualByPriKey
(
params
)
{
return
request
({
url
:
'/v1/voucher/wd/getManualByPriKey'
,
method
:
'GET'
,
params
:
params
})
}
src/assets/images/notice-img1.png
0 → 100644
View file @
2cb680ea
1000 KB
src/components/cardItem.vue
View file @
2cb680ea
...
...
@@ -101,12 +101,12 @@ export default {
width: 13em; */
}
.card-item
>
.card-item-content
>
.card-item-table
>
.info
.title
{
font-size
:
1
.3
em
;
font-size
:
1em
;
font-weight
:
bold
;
/* margin-bottom:0.5em; */
margin-bottom
:
0
;
white-space
:
nowrap
;
max-width
:
13.2em
;
overflow
:
hidden
;
/* overflow: hidden; */
}
</
style
>
src/views/signing/index.vue
View file @
2cb680ea
...
...
@@ -541,7 +541,7 @@ import { getOrgInfo, getSignInfo, getAreaList, getVillages, getOrgsByAreaCode, c
import
{
validatename
,
cardid
,
isvalidatemobile
}
from
'@/util/validate'
import
{
SubtractDay
,
getBirthByIdNumber
,
getSexByIdCard
,
getAgeByBirth
}
from
'@/util/index'
import
_defaultPicture
from
'../../assets/images/org-default-picture.png'
import
_noticePicture
from
'../../assets/images/notice-img.png'
import
_noticePicture
from
'../../assets/images/notice-img
1
.png'
import
_signatureBg
from
'../../assets/images/signature-bg.png'
import
{
wxpermission
}
from
'@/wxpermission'
const
wx
=
require
(
'weixin-js-sdk'
)
...
...
src/views/signingWD/index.vue
View file @
2cb680ea
...
...
@@ -24,6 +24,13 @@
<div
class=
"form"
>
<div
class=
"table"
>
<div
class=
"tr"
>
<div
class=
"td label"
>
身份证号
</div>
<div
class=
"td text-right"
>
<input
type=
"text"
class=
"form-control"
placeholder=
"请输入有效的女性身份证号"
@
blur=
"BaseValidateIdCard"
v-model=
"BaseForm.idCard"
:disabled=
"signStatus=='update'"
/>
<span
v-show=
"!BaseValidate.idCardState"
class=
"small-hint"
>
请输入有效的女性身份证号
</span>
</div>
</div>
<div
class=
"tr"
>
<div
class=
"td label"
>
姓名
</div>
<div
class=
"td text-right"
>
<input
type=
"text"
class=
"form-control"
maxlength=
"15"
v-model=
"BaseForm.name"
@
blur=
"BaseValidateName"
placeholder=
"请输入姓名"
:disabled=
"signStatus=='update'"
/>
...
...
@@ -38,13 +45,6 @@
</div>
</div>
<div
class=
"tr"
>
<div
class=
"td label"
>
身份证号
</div>
<div
class=
"td text-right"
>
<input
type=
"text"
class=
"form-control"
placeholder=
"请输入有效的女性身份证号"
@
blur=
"BaseValidateIdCard"
v-model=
"BaseForm.idCard"
:disabled=
"signStatus=='update'"
/>
<span
v-show=
"!BaseValidate.idCardState"
class=
"small-hint"
>
请输入有效的女性身份证号
</span>
</div>
</div>
<div
class=
"tr"
>
<div
class=
"td label"
>
末次月经时间
</div>
<div
class=
"td text-right"
>
<input
type=
"text"
class=
"form-control"
v-model=
"BaseForm.lastMensesTime"
v-if=
"signStatus=='update'"
:disabled=
"signStatus=='update'"
/>
...
...
@@ -95,7 +95,7 @@
</div>
</div>
</div>
<div
class=
"form"
>
<
!--
<
div
class=
"form"
>
<div
class=
"table"
>
<div
class=
"tr"
>
<div
class=
"td label"
>
保健手册编码
</div>
...
...
@@ -112,7 +112,7 @@
</div>
</div>
</div>
</div>
</div>
-->
<!--
<div
class=
"form"
>
<div
class=
"table"
>
<div
class=
"tr"
>
...
...
@@ -198,7 +198,7 @@
</div>
</div>
<div
class=
"tr"
>
<div
class=
"td label"
>
出生
年月
</div>
<div
class=
"td label"
>
出生
日期
</div>
<div
class=
"td text-right"
>
<div
class=
"td-table"
@
click=
"openPickerBirth(index)"
v-if=
"item.editor"
>
<div
class=
"td-table-cell text"
>
...
...
@@ -454,11 +454,11 @@
<
script
>
import
store
from
'@/store'
import
{
getOrgInfo
,
getSignInfo
,
getAreaList
,
getVillages
,
getOrgsByAreaCode
,
createSignWD
,
extendSignWD
}
from
'@/api/signing/signing'
import
{
getOrgInfo
,
getSignInfo
,
getAreaList
,
getVillages
,
getOrgsByAreaCode
,
createSignWD
,
extendSignWD
,
getManualByPriKey
}
from
'@/api/signing/signing'
import
{
validatename
,
cardid
,
isvalidatemobile
}
from
'@/util/validate'
import
{
SubtractDay
,
getBirthByIdNumber
,
getSexByIdCard
,
getAgeByBirth
}
from
'@/util/index'
import
_defaultPicture
from
'../../assets/images/org-default-picture.png'
import
_noticePicture
from
'../../assets/images/notice-img.png'
import
_noticePicture
from
'../../assets/images/notice-img
1
.png'
import
_signatureBg
from
'../../assets/images/signature-bg.png'
import
{
wxpermission
}
from
'@/wxpermission'
const
wx
=
require
(
'weixin-js-sdk'
)
...
...
@@ -839,18 +839,37 @@ export default {
BaseValidateIdCard
()
{
// 身份证验证
if
(
cardid
(
this
.
BaseForm
.
idCard
)[
0
])
{
this
.
BaseValidate
.
idCardState
=
false
console
.
log
(
'不通过'
)
}
else
{
if
(
getSexByIdCard
(
this
.
BaseForm
.
idCard
)
===
'2'
)
{
this
.
BaseValidate
.
idCardState
=
true
}
else
{
this
.
BaseValidate
.
idCardState
=
false
}
console
.
log
(
'通过'
)
this
.
getManualPriKey
()
}
if
(
this
.
pageType
===
0
)
{
this
.
BaseFormIntoTab1
()
}
this
.
saveSignInfoToCookie
()
// 储存用户签约录入信息
},
// 根据身份证号查询身份信息
getManualPriKey
()
{
let
params
=
{
idCard
:
this
.
BaseForm
.
idCard
}
getManualByPriKey
(
params
).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
if
(
res
.
records
.
name
)
{
this
.
BaseForm
.
name
=
res
.
records
.
name
}
if
(
res
.
records
.
lastMensesTime
)
{
this
.
BaseForm
.
lastMensesTime
=
res
.
records
.
lastMensesTime
}
}
})
},
// BaseValidateIdCardKid () { // 子女身份证验证
// if (cardid(this.userData.idCardKid)[0]) {
// this.BaseValidate.idCardKidState = false
...
...
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