Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
U
uni-pdtravel
Project
Project
Details
Activity
Releases
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
panyongping
uni-pdtravel
Commits
db5cb91b
Commit
db5cb91b
authored
Apr 22, 2024
by
潘永坪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug处理
parent
c74814df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
8 deletions
+17
-8
editContacts.vue
pages/scenic/scenicComponents/editContacts.vue
+17
-8
No files found.
pages/scenic/scenicComponents/editContacts.vue
View file @
db5cb91b
...
@@ -129,7 +129,6 @@ export default {
...
@@ -129,7 +129,6 @@ export default {
this
.
credentialList
=
newValue
.
split
(
','
)
this
.
credentialList
=
newValue
.
split
(
','
)
if
(
this
.
credentialList
.
length
==
1
){
if
(
this
.
credentialList
.
length
==
1
){
let
type
=
this
.
credentialList
[
0
]
let
type
=
this
.
credentialList
[
0
]
this
.
credentialType
=
type
if
(
type
==
'0'
){
this
.
placeholderText
=
'请输入身份证,必填'
}
if
(
type
==
'0'
){
this
.
placeholderText
=
'请输入身份证,必填'
}
if
(
type
==
'1'
){
this
.
placeholderText
=
'请输入护照,必填'
}
if
(
type
==
'1'
){
this
.
placeholderText
=
'请输入护照,必填'
}
if
(
type
==
'2'
){
this
.
placeholderText
=
'请输入港澳通行证,必填'
}
if
(
type
==
'2'
){
this
.
placeholderText
=
'请输入港澳通行证,必填'
}
...
@@ -162,12 +161,21 @@ export default {
...
@@ -162,12 +161,21 @@ export default {
})
})
return
return
}
}
if
(
this
.
credentialType
===
''
){
let
credentialType
=
''
uni
.
showToast
({
//当只有一个证件类型时取第一个
title
:
'请选择证件类型'
,
if
(
this
.
credentialList
.
length
==
1
){
icon
:
'none'
credentialType
=
this
.
credentialList
[
0
]
})
}
return
//当有多个证件类型时取选中的那一个
if
(
this
.
credentialList
.
length
>
1
){
credentialType
=
this
.
credentialType
}
if
(
credentialType
===
''
){
uni
.
showToast
({
title
:
'请选择证件类型'
,
icon
:
'none'
})
return
}
}
if
(
!
this
.
credentialNumber
){
if
(
!
this
.
credentialNumber
){
uni
.
showToast
({
uni
.
showToast
({
...
@@ -183,6 +191,7 @@ export default {
...
@@ -183,6 +191,7 @@ export default {
})
})
return
return
}
}
let
data
=
{
let
data
=
{
name
:
this
.
name
,
//保存姓名
name
:
this
.
name
,
//保存姓名
phone
:
this
.
phone
,
//电话号码
phone
:
this
.
phone
,
//电话号码
...
@@ -191,7 +200,7 @@ export default {
...
@@ -191,7 +200,7 @@ export default {
merchantType
:
1
,
//商户类型,1.景区,2.酒店,3.餐饮
merchantType
:
1
,
//商户类型,1.景区,2.酒店,3.餐饮
id
:
this
.
reviseContactId
,
//被修改人id
id
:
this
.
reviseContactId
,
//被修改人id
category
:
''
,
//成人或者儿童
category
:
''
,
//成人或者儿童
credentialType
:
this
.
credentialType
,
//证件类型
credentialType
,
//证件类型
}
}
let
queryUrl
=
''
let
queryUrl
=
''
if
(
this
.
reviseContactId
){
if
(
this
.
reviseContactId
){
...
...
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