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
a68f2c14
Commit
a68f2c14
authored
May 11, 2024
by
潘永坪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug处理
parent
8a3c7f66
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
scenicProduct.vue
pages/scenic/scenicProduct/scenicProduct.vue
+9
-5
No files found.
pages/scenic/scenicProduct/scenicProduct.vue
View file @
a68f2c14
...
...
@@ -8,14 +8,14 @@
</u-swiper>
</view>
<view
class=
"middle"
>
<view
class=
"middle-introduce"
>
<view
class=
"middle-introduce"
v-if=
"detailData"
>
<view
class=
"introduce-one"
@
click=
"showDetail()"
>
<view
class=
"merchantname"
>
{{
detailData
.
name
}}
</view>
<view
class=
"businesstime"
>
<view
style=
"font-size: 24rpx;"
>
<text
style=
"color: #3688ff;margin-right: 20rpx;"
>
{{
s
tatus
}}
</text>
<text
style=
"color: #3688ff;margin-right: 20rpx;"
>
{{
tagS
tatus
}}
</text>
<text
style=
"color: #999;"
>
{{
detailData
.
businessStart
?
detailData
.
businessStart
.
substr
(
0
,
5
):
""
}}
~
{{
detailData
.
businessStart
?
detailData
.
businessEnd
.
substr
(
0
,
5
):
""
}}
</text>
...
...
@@ -120,7 +120,7 @@ export default {
detailData
:
''
,
//详情数据
currentNum
:
0
,
//轮播图下标
tagArr
:[],
//标签数组
s
tatus
:
''
,
//标签状态,开园或者闭园
tagS
tatus
:
''
,
//标签状态,开园或者闭园
buyKnowData
:
''
,
//购票须知数据
companyId
:
''
,
//公司Id
openid
:
uni
.
getStorageSync
(
'openid'
)
||
''
,
//openid
...
...
@@ -256,6 +256,10 @@ export default {
this
.
$request
(
'scenic/user/merchant/findDetailInfo'
,
data
).
then
((
res
)
=>
{
if
(
res
.
code
==
'00'
){
this
.
detailData
=
res
.
data
//解决详情里面图片太宽超出屏幕宽度出现滚动条的问题
if
(
this
.
detailData
.
introduce
){
this
.
detailData
.
introduce
=
this
.
detailData
.
introduce
.
replace
(
/\<img/gi
,
'<img style="max-width:100%;height:auto;"'
)
}
if
(
this
.
detailData
.
tag
){
this
.
tagArr
=
this
.
detailData
.
tag
.
split
(
','
)
}
...
...
@@ -268,9 +272,9 @@ export default {
end
=
parseInt
(
this
.
$commonjs
.
changeTime
(
this
.
detailData
.
businessEnd
.
substr
(
0
,
5
)))
}
if
(
start
<
this
.
nowTime
<
end
){
this
.
s
tatus
=
'开园中'
this
.
tagS
tatus
=
'开园中'
}
else
{
this
.
s
tatus
=
'闭园中'
this
.
tagS
tatus
=
'闭园中'
}
}
else
{
uni
.
showToast
({
...
...
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