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
cbf32fcc
Commit
cbf32fcc
authored
Apr 22, 2024
by
潘永坪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
外国人bug处理
parent
db5cb91b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
29 deletions
+31
-29
scenicCombiOrder.vue
pages/scenic/scenicCombiOrder/scenicCombiOrder.vue
+1
-1
editContacts.vue
pages/scenic/scenicComponents/editContacts.vue
+29
-24
scenicSingleOrder.vue
pages/scenic/scenicSingleOrder/scenicSingleOrder.vue
+1
-4
No files found.
pages/scenic/scenicCombiOrder/scenicCombiOrder.vue
View file @
cbf32fcc
...
@@ -204,7 +204,7 @@
...
@@ -204,7 +204,7 @@
@click="visitorChoose(index,index2)"
@click="visitorChoose(index,index2)"
:key="index2"
:key="index2"
>
>
{{
item2
.
name
}}
<text
class=
"one-txt-cut"
>
{{
item2
.
name
}}
</text>
<!-- contactVos为该联系人满足该产品的证件信息列表 -->
<!-- contactVos为该联系人满足该产品的证件信息列表 -->
<text
v-if=
"!item2.contactVos||item2.contactVos.length==0"
style=
"font-size: 20rpx;color: #ff0000;"
>
请补充证件
</text>
<text
v-if=
"!item2.contactVos||item2.contactVos.length==0"
style=
"font-size: 20rpx;color: #ff0000;"
>
请补充证件
</text>
<view
v-if=
"item2.ifChoose"
class=
"date-icon"
>
<view
v-if=
"item2.ifChoose"
class=
"date-icon"
>
...
...
pages/scenic/scenicComponents/editContacts.vue
View file @
cbf32fcc
...
@@ -26,18 +26,18 @@
...
@@ -26,18 +26,18 @@
<text
class=
"bottom-title"
>
<text
class=
"bottom-title"
>
证件类型
证件类型
</text>
</text>
<!-- 0和空用全等防止
为空时
出现bug -->
<!-- 0和空用全等防止出现bug -->
<text
style=
"flex: 1;"
v-if=
"credentialType===''"
>
请选择证件类型
</text>
<text
style=
"flex: 1;"
v-if=
"credentialType===''"
>
请选择证件类型
</text>
<text
style=
"flex: 1;"
v-if=
"credentialType===0"
>
身份证
</text>
<text
style=
"flex: 1;"
v-if=
"credentialType===0"
>
身份证
</text>
<text
style=
"flex: 1;"
v-if=
"credentialType==
'1'
"
>
护照
</text>
<text
style=
"flex: 1;"
v-if=
"credentialType==
1
"
>
护照
</text>
<text
style=
"flex: 1;"
v-if=
"credentialType==
'2'
"
>
港澳通行证
</text>
<text
style=
"flex: 1;"
v-if=
"credentialType==
2
"
>
港澳通行证
</text>
<text
style=
"flex: 1;"
v-if=
"credentialType==
'3'
"
>
台胞通行证
</text>
<text
style=
"flex: 1;"
v-if=
"credentialType==
3
"
>
台胞通行证
</text>
<text
style=
"flex: 1;"
v-if=
"credentialType==
'4'
"
>
台胞证
</text>
<text
style=
"flex: 1;"
v-if=
"credentialType==
4
"
>
台胞证
</text>
<text
style=
"flex: 1;"
v-if=
"credentialType==
'5'
"
>
回乡证
</text>
<text
style=
"flex: 1;"
v-if=
"credentialType==
5
"
>
回乡证
</text>
<text
style=
"flex: 1;"
v-if=
"credentialType==
'6'
"
>
外国人永久居留证
</text>
<text
style=
"flex: 1;"
v-if=
"credentialType==
6
"
>
外国人永久居留证
</text>
<text
style=
"flex: 1;"
v-if=
"credentialType==
'7'
"
>
学生证
</text>
<text
style=
"flex: 1;"
v-if=
"credentialType==
7
"
>
学生证
</text>
<text
style=
"flex: 1;"
v-if=
"credentialType==
'8'
"
>
军官证
</text>
<text
style=
"flex: 1;"
v-if=
"credentialType==
8
"
>
军官证
</text>
<text
style=
"flex: 1;"
v-if=
"credentialType==
'9'
"
>
残疾军人证
</text>
<text
style=
"flex: 1;"
v-if=
"credentialType==
9
"
>
残疾军人证
</text>
<u-icon
name=
"arrow-right"
size=
'26'
color=
'#B4B4B4'
></u-icon>
<u-icon
name=
"arrow-right"
size=
'26'
color=
'#B4B4B4'
></u-icon>
</view>
</view>
...
@@ -76,18 +76,18 @@
...
@@ -76,18 +76,18 @@
证件类型
证件类型
</view>
</view>
<view
v-for=
"(item,index) in credentialList"
:key=
'index'
class=
"idList"
@
click=
"chooseCredential(item)"
>
<view
v-for=
"(item,index) in credentialList"
:key=
'index'
class=
"idList"
@
click=
"chooseCredential(item)"
>
<
!-- 0用全等防止为空时出现bug --
>
<
text
v-if=
"item==0"
>
身份证
</text
>
<text
v-if=
"item==
=0"
>
身份证
</text>
<text
v-if=
"item==
1"
>
护照
</text>
<text
v-if=
"item==
'1'"
>
护照
</text>
<text
v-if=
"item==
2"
>
港澳通行证
</text>
<text
v-if=
"item==
'2'"
>
港澳
通行证
</text>
<text
v-if=
"item==
3"
>
台胞
通行证
</text>
<text
v-if=
"item==
'3'"
>
台胞通行
证
</text>
<text
v-if=
"item==
4"
>
台胞
证
</text>
<text
v-if=
"item==
'4'"
>
台胞
证
</text>
<text
v-if=
"item==
5"
>
回乡
证
</text>
<text
v-if=
"item==
'5'"
>
回乡
证
</text>
<text
v-if=
"item==
6"
>
外国人永久居留
证
</text>
<text
v-if=
"item==
'6'"
>
外国人永久居留
证
</text>
<text
v-if=
"item==
7"
>
学生
证
</text>
<text
v-if=
"item==
'7'"
>
学生
证
</text>
<text
v-if=
"item==
8"
>
军官
证
</text>
<text
v-if=
"item==
'8'"
>
军官
证
</text>
<text
v-if=
"item==
9"
>
残疾军人
证
</text>
<
text
v-if=
"item=='9'"
>
残疾军人证
</text
>
<
!--用全等防止为空时出现bug --
>
<u-icon
name=
'checkmark'
size=
'48'
color=
'#3688FF'
v-if=
"credentialType==item"
></u-icon>
<u-icon
name=
'checkmark'
size=
'48'
color=
'#3688FF'
v-if=
"credentialType==
=
item"
></u-icon>
</view>
</view>
</view>
</view>
...
@@ -118,7 +118,8 @@ export default {
...
@@ -118,7 +118,8 @@ export default {
this
.
credentialNumber
=
newValue
.
credentialNumber
||
''
this
.
credentialNumber
=
newValue
.
credentialNumber
||
''
this
.
reviseContactId
=
newValue
.
id
||
''
this
.
reviseContactId
=
newValue
.
id
||
''
this
.
phone
=
newValue
.
phone
||
''
this
.
phone
=
newValue
.
phone
||
''
this
.
credentialType
=
newValue
.
credentialType
||
''
// 不加双竖线的原因是,防止是0时,变成空
this
.
credentialType
=
newValue
.
credentialType
},
},
deep
:
true
,
deep
:
true
,
immediate
:
true
immediate
:
true
...
@@ -126,7 +127,11 @@ export default {
...
@@ -126,7 +127,11 @@ export default {
credential
:
{
//该产品对应联系人可以添加的证件类型
credential
:
{
//该产品对应联系人可以添加的证件类型
handler
(
newValue
,
oldValue
)
{
handler
(
newValue
,
oldValue
)
{
if
(
newValue
){
if
(
newValue
){
this
.
credentialList
=
newValue
.
split
(
','
)
this
.
credentialList
=
newValue
.
split
(
','
)
||
[]
this
.
credentialList
.
forEach
((
item
,
index
)
=>
{
//转化成数字类型,防止上面证件类型,编辑选择身份证时出现bug
this
.
credentialList
[
index
]
=
parseFloat
(
item
)
})
if
(
this
.
credentialList
.
length
==
1
){
if
(
this
.
credentialList
.
length
==
1
){
let
type
=
this
.
credentialList
[
0
]
let
type
=
this
.
credentialList
[
0
]
if
(
type
==
'0'
){
this
.
placeholderText
=
'请输入身份证,必填'
}
if
(
type
==
'0'
){
this
.
placeholderText
=
'请输入身份证,必填'
}
...
...
pages/scenic/scenicSingleOrder/scenicSingleOrder.vue
View file @
cbf32fcc
...
@@ -246,7 +246,7 @@
...
@@ -246,7 +246,7 @@
@click="visitorChoose(index)"
@click="visitorChoose(index)"
:key="index"
:key="index"
>
>
{{
item
.
name
}}
<text
class=
"one-txt-cut"
>
{{
item
.
name
}}
</text>
<!-- contactVos为该联系人满足该产品的证件信息列表 -->
<!-- contactVos为该联系人满足该产品的证件信息列表 -->
<text
v-if=
"!item.contactVos||item.contactVos.length==0"
style=
"font-size: 20rpx;color: #ff0000;"
>
请补充证件
</text>
<text
v-if=
"!item.contactVos||item.contactVos.length==0"
style=
"font-size: 20rpx;color: #ff0000;"
>
请补充证件
</text>
<view
v-if=
"item.ifChoose"
class=
"date-icon"
>
<view
v-if=
"item.ifChoose"
class=
"date-icon"
>
...
@@ -1626,9 +1626,6 @@ export default {
...
@@ -1626,9 +1626,6 @@ export default {
border-radius
:
5rpx
;
border-radius
:
5rpx
;
position
:
relative
;
position
:
relative
;
margin
:
20rpx
15rpx
0
0
;
margin
:
20rpx
15rpx
0
0
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
}
.plus-list-last
{
.plus-list-last
{
color
:
$theme
;
color
:
$theme
;
...
...
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