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
bc2709d5
Commit
bc2709d5
authored
Jan 31, 2024
by
潘永坪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
湖广会馆购票须知开放时间处理
parent
a189f6d8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
6 deletions
+38
-6
merchantDetail.vue
components/merchantDetail.vue
+3
-3
hghgIndex.vue
pages/indexs/hghgIndex/hghgIndex.vue
+35
-3
No files found.
components/merchantDetail.vue
View file @
bc2709d5
...
...
@@ -116,10 +116,10 @@ export default {
this
.
travelTips
=
''
if
(
newValue
.
merchantTitleData
&&
newValue
.
merchantTitleData
.
length
>
0
)
{
let
openTime
=
''
newValue
.
merchantTitleData
.
forEach
((
item
,
index
)
=>
{
newValue
.
merchantTitleData
.
forEach
((
item
)
=>
{
if
(
item
.
titleCode
==
'scenic_base_info'
)
{
//基本信息
item
.
merchantChildTitleData
.
forEach
((
items
,
index
)
=>
{
item
.
merchantChildTitleData
.
forEach
((
items
)
=>
{
if
(
items
.
childTitleCode
==
'101001'
)
{
//开放时间
openTime
=
items
.
contentList
...
...
@@ -140,7 +140,7 @@ export default {
}
})
if
(
openTime
.
length
>
0
)
{
this
.
times
=
openTime
.
map
((
item
,
index
)
=>
{
this
.
times
=
openTime
.
map
((
item
)
=>
{
return
item
.
content
.
split
(
';'
)
})
}
...
...
pages/indexs/hghgIndex/hghgIndex.vue
View file @
bc2709d5
...
...
@@ -22,7 +22,7 @@
<text>
开放时间:
</text>
09:00 - 18:00,闭馆前1小时(17:00)停止售票
{{
openTime
}}
</view>
<view>
<text>
...
...
@@ -55,7 +55,8 @@ export default {
data
()
{
return
{
urlQuery
:
''
,
showKnow
:
false
showKnow
:
false
,
openTime
:
'09:00 - 18:00,闭馆前1小时(17:00)停止售票'
,
//开放时间
}
},
onLoad
(
option
)
{
...
...
@@ -65,6 +66,7 @@ export default {
let
groupId
=
option
.
groupId
||
''
let
groupChannelId
=
option
.
groupChannelId
||
''
this
.
urlQuery
=
channelId
+
'&merchantId='
+
merchantId
+
'&groupId='
+
groupId
+
'&groupChannelId='
+
groupChannelId
+
'&companyId='
+
companyId
this
.
initDetail
(
merchantId
)
},
methods
:
{
//---购票
...
...
@@ -76,7 +78,37 @@ export default {
//---购票须知
goKnow
(){
this
.
showKnow
=
true
}
},
//---初始化详情
initDetail
(
merchantId
){
let
data
=
{
userId
:
uni
.
getStorageSync
(
'userId'
)
||
''
,
openid
:
uni
.
getStorageSync
(
'openid'
)
||
''
,
id
:
merchantId
,
isDetail
:
1
,
//商户详情
}
this
.
$request
(
'scenic/user/merchant/findDetailInfo'
,
data
).
then
((
res
)
=>
{
if
(
res
.
code
==
'00'
){
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
}
})
}
})
}
else
{
uni
.
showToast
({
title
:
res
.
message
,
icon
:
'none'
})
}
})
},
}
}
</
script
>
...
...
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