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
79627ed6
Commit
79627ed6
authored
Jan 31, 2024
by
潘永坪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
湖广会馆购票须知修改,添加联系人bug处理
parent
bc2709d5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
12 deletions
+28
-12
hghgIndex.vue
pages/indexs/hghgIndex/hghgIndex.vue
+8
-7
editContacts.vue
pages/scenic/scenicComponents/editContacts.vue
+20
-5
No files found.
pages/indexs/hghgIndex/hghgIndex.vue
View file @
79627ed6
...
...
@@ -57,16 +57,16 @@ export default {
urlQuery
:
''
,
showKnow
:
false
,
openTime
:
'09:00 - 18:00,闭馆前1小时(17:00)停止售票'
,
//开放时间
merchantId
:
''
,
//商户Id
}
},
onLoad
(
option
)
{
let
channelId
=
option
.
channelId
||
''
let
companyId
=
option
.
companyId
||
''
let
merchantId
=
option
.
merchantId
||
''
let
groupId
=
option
.
groupId
||
''
let
groupChannelId
=
option
.
groupChannelId
||
''
this
.
urlQuery
=
channelId
+
'&merchantId='
+
merchantId
+
'&groupId='
+
groupId
+
'&groupChannelId='
+
groupChannelId
+
'&companyId='
+
companyId
this
.
initDetail
(
merchantId
)
this
.
merchantId
=
option
.
merchantId
||
''
this
.
urlQuery
=
channelId
+
'&merchantId='
+
this
.
merchantId
+
'&groupId='
+
groupId
+
'&groupChannelId='
+
groupChannelId
+
'&companyId='
+
companyId
},
methods
:
{
//---购票
...
...
@@ -78,25 +78,26 @@ export default {
//---购票须知
goKnow
(){
this
.
showKnow
=
true
this
.
initDetail
()
},
//---初始化详情
initDetail
(
merchantId
){
initDetail
(){
let
data
=
{
userId
:
uni
.
getStorageSync
(
'userId'
)
||
''
,
openid
:
uni
.
getStorageSync
(
'openid'
)
||
''
,
id
:
merchantId
,
id
:
this
.
merchantId
,
isDetail
:
1
,
//商户详情
}
this
.
$request
(
'scenic/user/merchant/findDetailInfo'
,
data
).
then
((
res
)
=>
{
if
(
res
.
code
==
'00'
){
let
data
=
res
.
data
.
merchantTitleData
let
data
=
res
.
data
.
merchantTitleData
||
[]
data
.
forEach
(
item
=>
{
if
(
item
.
titleCode
==
'scenic_base_info'
)
{
//基本信息
item
.
merchantChildTitleData
.
forEach
(
item2
=>
{
if
(
item2
.
childTitleCode
==
'101001'
)
{
//开放时间
this
.
openTime
=
item2
.
contentList
.
content
this
.
openTime
=
item2
.
contentList
[
0
].
content
||
'09:00 - 18:00,闭馆前1小时(17:00)停止售票'
}
})
}
...
...
pages/scenic/scenicComponents/editContacts.vue
View file @
79627ed6
...
...
@@ -16,26 +16,26 @@
<view
class=
"editBottom"
>
<view
class=
"bottomContent"
>
<view>
<text>
<text
class=
"bottom-title"
>
姓名:
</text>
<input
v-model
.
trim=
"name"
placeholder=
"请输入姓名,必填"
/>
</view>
<view>
<text>
<text
class=
"bottom-title"
>
身份证:
</text>
<input
v-model
.
trim=
"credentialNumber"
maxlength=
"18"
placeholder=
"请输入身份证号码,必填"
/>
</view>
<view>
<text>
<text
class=
"bottom-title"
>
联系电话:
</text>
<input
type=
"number"
v-model
.
trim=
"phone"
maxlength=
"11"
placeholder=
"用于接收行程信息"
/>
</view>
<view>
<
a
class=
"complete"
@
click=
"keepSave()"
>
完成
</a
>
<
text
class=
"complete"
@
click=
"keepSave()"
>
完成
</text
>
</view>
</view>
</view>
...
...
@@ -70,6 +70,20 @@ export default {
methods
:
{
//---保存
keepSave
()
{
if
(
!
this
.
name
){
uni
.
showToast
({
title
:
'请输入姓名'
,
icon
:
'none'
})
return
}
if
(
!
this
.
credentialNumber
){
uni
.
showToast
({
title
:
'请输入证件号码'
,
icon
:
'none'
})
return
}
if
(
this
.
phone
&&!
this
.
$commonjs
.
phoneReg
().
test
(
this
.
phone
))
{
uni
.
showToast
({
title
:
'请输入正确电话号码'
,
...
...
@@ -77,6 +91,7 @@ export default {
})
return
}
let
data
=
{
name
:
this
.
name
,
//保存姓名
phone
:
this
.
phone
,
//电话号码
...
...
@@ -179,7 +194,7 @@ export default {
display
:
flex
;
border-bottom
:
1px
solid
#f0f0f0
;
}
.bottom
Content
view
text
{
.bottom
-title
{
display
:
inline-block
;
width
:
140rpx
;
text-align-last
:
justify
;
...
...
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