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
46416077
Commit
46416077
authored
Dec 01, 2023
by
潘永坪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vlogo详情处理
parent
4d8a5879
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
113 additions
and
96 deletions
+113
-96
albumOrderdetail.vue
pages/album/albumOrderdetail/albumOrderdetail.vue
+9
-4
contactList.vue
pages/scenic/scenicComponents/contactList.vue
+58
-54
editContacts.vue
pages/scenic/scenicComponents/editContacts.vue
+46
-38
No files found.
pages/album/albumOrderdetail/albumOrderdetail.vue
View file @
46416077
...
...
@@ -66,10 +66,14 @@
<text>
不可退
</text>
</view>
<view
class=
"bottom-btn"
>
<text
class=
"button-empty"
@
click=
"goMyPhoto()"
>
我的影集
</text>
<!-- 11图片,12视频 -->
<text
class=
"button-empty"
@
click=
"goMyPhoto()"
v-if=
"orderInfo.orderType==11"
>
我的影集
</text>
<!-- 全部退货退款时不显示 -->
<text
class=
"button"
@
click=
"download()"
v-if=
"orderInfo.orderStatus!=8"
>
下载
</text>
<text
class=
"button"
@
click=
"showPop=true"
v-if=
"orderInfo.orderStatus!=8"
>
打印
</text>
<template
v-if=
"orderInfo.orderStatus!=8"
>
<text
class=
"button"
@
click=
"download()"
>
下载
</text>
<text
class=
"button"
@
click=
"showPop=true"
v-if=
"orderInfo.orderType==11"
>
打印
</text>
</
template
>
</view>
</view>
...
...
@@ -209,7 +213,8 @@ export default {
getDetail
(){
let
data
=
{
orderId
:
this
.
orderId
,
//订单ID
userId
:
uni
.
getStorageSync
(
'openid'
)
||
''
,
//用户Id
// userId:uni.getStorageSync('openid')||'',//用户Id
userId
:
'oroHZ5FaUQ_SOOC_uQQP92fJpBRE'
,
//用户Id
}
this
.
$request
(
'order/userOrder/findOrderDetail'
,
data
).
then
(
res
=>
{
if
(
res
.
code
==
'00'
)
{
...
...
pages/scenic/scenicComponents/contactList.vue
View file @
46416077
<
template
>
<view
v-show=
"showPop"
>
<view
class=
"list-
box
"
>
<view
class=
"list-bg"
v-show=
"showPop"
>
<view
class=
"list-
wrap
"
>
<view
class=
"top"
>
<view
class=
"top-num"
>
<text>
需填写
{{
contactNum
}}
位联系人
</text>
<view
class=
"top-icon"
@
click=
"showPop=false"
>
<u-icon
name=
"close"
bold
></u-icon>
<view
class=
"top-num"
>
<text>
需填写
{{
contactNum
}}
位联系人
</text>
<view
class=
"top-icon"
@
click=
"showPop=false"
>
<u-icon
name=
"close"
bold
></u-icon>
</view>
</view>
<view
@
click=
"showEdit()"
class=
"top-add"
>
<text>
+添加旅客信息
</text>
</view>
</view>
<view
@
click=
"showEdit()"
class=
"top-add"
>
<text>
+添加旅客信息
</text>
</view>
</view>
<view
class=
"bottom"
>
<checkbox-group
@
change=
"chooseContactChange"
>
<view
class=
"bottom-list"
v-for=
"(item,index) of listTotal"
:key=
"item.id"
>
<label>
<checkbox
class=
"blue"
:value=
"JSON.stringify(item)"
:checked=
"item.ifChoose"
color=
"#3688ff"
/>
<view
class=
"bottom-content"
>
<view>
{{
item
.
name
}}
</view>
<view>
<text>
身份证
</text>
{{
item
.
credentialNumber
?
item
.
credentialNumber
.
substr
(
0
,
3
)
+
"****"
+
item
.
credentialNumber
.
substr
(
14
,
4
):
"无"
}}
</view>
<view>
<text>
手机号
</text>
{{
item
.
phone
?
item
.
phone
.
substr
(
0
,
3
)
+
"****"
+
item
.
phone
.
substr
(
7
,
4
):
"无"
}}
<view
class=
"bottom"
>
<checkbox-group
@
change=
"chooseContactChange"
>
<view
class=
"bottom-list"
v-for=
"(item,index) of listTotal"
:key=
"item.id"
>
<label>
<checkbox
class=
"blue"
:value=
"JSON.stringify(item)"
:checked=
"item.ifChoose"
color=
"#3688ff"
/>
<view
class=
"bottom-content"
>
<view>
{{
item
.
name
}}
</view>
<view>
<text>
身份证
</text>
{{
item
.
credentialNumber
?
item
.
credentialNumber
.
substr
(
0
,
3
)
+
"****"
+
item
.
credentialNumber
.
substr
(
14
,
4
):
"无"
}}
</view>
<view>
<text>
手机号
</text>
{{
item
.
phone
?
item
.
phone
.
substr
(
0
,
3
)
+
"****"
+
item
.
phone
.
substr
(
7
,
4
):
"无"
}}
</view>
</view>
</label>
<view
@
click=
"goEdit(item)"
style=
"margin-right:20rpx;"
>
<u-icon
name=
"edit-pen"
color=
"#3688ff"
size=
"56"
></u-icon>
</view>
<view
@
click=
"clickDele(item.id)"
>
<u-icon
name=
"trash-fill"
color=
"#3688ff"
size=
"56"
></u-icon>
</view>
</label>
<view
@
click=
"goEdit(item)"
style=
"margin-right:20rpx;"
>
<u-icon
name=
"edit-pen"
color=
"#3688ff"
size=
"56"
></u-icon>
</view>
<view
@
click=
"clickDele(item.id)"
>
<u-icon
name=
"trash-fill"
color=
"#3688ff"
size=
"56"
></u-icon>
<view
style=
"margin: 40rpx 0;text-align: center;"
v-if=
'listTotal&&listTotal.length>0'
>
已展示所有联系人
</view>
</checkbox-group>
<view
class=
"bottom-sure"
@
click=
"config()"
>
确定
</view>
<view
style=
"margin: 40rpx 0;text-align: center;"
v-if=
'listTotal&&listTotal.length>0'
>
已展示所有联系人
</view>
</checkbox-group>
<view
class=
"bottom-sure"
@
click=
"config()"
>
确定
</view>
</view>
</view>
</view>
<u-modal
:show=
"showModal"
@
confirm=
"confirmDele"
@
cancel=
"showModal=false"
showCancelButton
title=
"确认删除该联系人"
></u-modal>
</view>
</
template
>
<
script
>
...
...
@@ -170,16 +168,21 @@ export default {
</
script
>
<
style
scoped=
"scoped"
lang=
"scss"
>
.list-b
ox
{
background
:
#F5F5F5
;
.list-b
g
{
background
:
rgba
(
0
,
0
,
0
,
0
.4
)
;
position
:
fixed
;
top
:
0
;
left
:
0
;
right
:
0
;
bottom
:
0
;
z-index
:
999
;
padding-top
:
120rpx
;
}
.list-wrap
{
height
:
100%
;
display
:
flex
;
flex-direction
:
column
;
background
:
#ffffff
;
}
.top-num
{
height
:
100rpx
;
...
...
@@ -191,6 +194,7 @@ export default {
font-weight
:
bold
;
font-size
:
32rpx
;
position
:
relative
;
border-radius
:
20rpx
20rpx
0
0
;
}
.top-icon
{
position
:
absolute
;
...
...
pages/scenic/scenicComponents/editContacts.vue
View file @
46416077
<
template
>
<view
class=
"editBox"
v-show=
"showEdit"
>
<view
class=
"return"
>
<!-- 新增的时候 -->
<view
v-if=
"!reviseContactId"
>
已新增
{{
contactTotal
.
length
}}
位联系人
<view
class=
"edit-bg"
v-show=
"showEdit"
>
<view
class=
"edit-wrap"
>
<view
class=
"return"
>
<!-- 新增的时候 -->
<view
v-if=
"!reviseContactId"
>
已新增
{{
contactTotal
.
length
}}
位联系人
</view>
<view
@
click=
"showEdit = false"
class=
"return-icon"
>
<u-icon
name=
"close"
bold
></u-icon>
</view>
</view>
<view
class=
"editTop"
>
<view
@
click=
"showEdit = false"
class=
"return-icon"
>
<u-icon
name=
"close"
bold
></u-icon>
</view>
</view>
<view
class=
"editTop"
>
</view>
<view
class=
"editBottom"
>
<view
class=
"bottomContent"
>
<view>
<text>
姓名:
</text>
<input
v-model
.
trim=
"name"
placeholder=
"请输入中文姓名,必填"
/>
</view>
<view>
<text>
身份证:
</text>
<input
v-model
.
trim=
"credentialNumber"
maxlength=
"18"
placeholder=
"请输入身份证号码,必填"
/>
</view>
<view>
<text>
联系电话:
</text>
<input
v-model
.
trim=
"phone"
maxlength=
"11"
placeholder=
"用于接收行程信息"
/>
</view>
<view>
<a
class=
"complete"
@
click=
"keepSave()"
>
完成
</a>
<view
class=
"editBottom"
>
<view
class=
"bottomContent"
>
<view>
<text>
姓名:
</text>
<input
v-model
.
trim=
"name"
placeholder=
"请输入中文姓名,必填"
/>
</view>
<view>
<text>
身份证:
</text>
<input
v-model
.
trim=
"credentialNumber"
maxlength=
"18"
placeholder=
"请输入身份证号码,必填"
/>
</view>
<view>
<text>
联系电话:
</text>
<input
v-model
.
trim=
"phone"
maxlength=
"11"
placeholder=
"用于接收行程信息"
/>
</view>
<view>
<a
class=
"complete"
@
click=
"keepSave()"
>
完成
</a>
</view>
</view>
</view>
</view>
</view>
</
template
>
...
...
@@ -138,14 +138,21 @@ export default {
</
script
>
<
style
scoped=
"scoped"
lang=
"scss"
>
.edit
Box
{
background
:
#F5F5F5
;
.edit
-bg
{
background
:
rgba
(
0
,
0
,
0
,
0
.4
)
;
position
:
fixed
;
top
:
0
;
left
:
0
;
right
:
0
;
bottom
:
0
;
z-index
:
1000
;
padding-top
:
120rpx
;
}
.edit-wrap
{
height
:
100%
;
display
:
flex
;
flex-direction
:
column
;
background
:
#ffffff
;
}
.return
{
height
:
100rpx
;
...
...
@@ -157,6 +164,7 @@ export default {
font-weight
:
bold
;
font-size
:
32rpx
;
position
:
relative
;
border-radius
:
20rpx
20rpx
0
0
;
}
.return-icon
{
position
:
absolute
;
...
...
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