Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jz_Travel
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
zhengke
jz_Travel
Commits
3276cd93
Commit
3276cd93
authored
Sep 30, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
1bf62075
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
228 additions
and
197 deletions
+228
-197
jz_LineDetail.vue
pages/jiuzhai/jz_LineDetail.vue
+24
-7
policyDetail.vue
pages/ticketCoupons/policyDetail.vue
+204
-190
No files found.
pages/jiuzhai/jz_LineDetail.vue
View file @
3276cd93
...
@@ -626,13 +626,7 @@
...
@@ -626,13 +626,7 @@
></span>
></span>
</span>
</span>
<view
class=
"jz_TripMain"
>
<view
class=
"jz_TripMain"
>
<!-- <rich-text :nodes="dataList.feature.feeNonInclude"></rich-text> -->
<!-- #ifdef MP-WEIXIN -->
<rich-text
:nodes=
"dataList.feature.feeNonInclude"
></rich-text>
<rich-text
:nodes=
"dataList.feature.feeNonInclude"
></rich-text>
<!-- #endif -->
<!-- #ifdef MP-ALIPAY -->
<view
v-html=
"dataList.feature.feeNonInclude"
></view>
<!-- #endif -->
</view>
</view>
</view>
</view>
<view
class=
"jz_TripDays"
>
<view
class=
"jz_TripDays"
>
...
@@ -928,6 +922,9 @@
...
@@ -928,6 +922,9 @@
<
script
>
<
script
>
import
hParse
from
"@/components/u-parse/parse.vue"
;
import
hParse
from
"@/components/u-parse/parse.vue"
;
import
canlendar
from
"./components/sign/index.vue"
;
import
canlendar
from
"./components/sign/index.vue"
;
// #ifdef MP-ALIPAY
import
parseHtml
from
"../../plugin/htmlparse.js"
;
// #endif
export
default
{
export
default
{
components
:
{
components
:
{
canlendar
,
canlendar
,
...
@@ -1065,6 +1062,7 @@ export default {
...
@@ -1065,6 +1062,7 @@ export default {
// let tempPrice= res.data.priceList.filter(x=>x.remainNum>0)
// let tempPrice= res.data.priceList.filter(x=>x.remainNum>0)
// res.data.priceList=tempPrice
// res.data.priceList=tempPrice
this
.
dataList
=
res
.
data
;
this
.
dataList
=
res
.
data
;
this
.
scenicNum
=
0
;
this
.
scenicNum
=
0
;
this
.
dataList
.
dayList
.
forEach
((
x
)
=>
{
this
.
dataList
.
dayList
.
forEach
((
x
)
=>
{
x
.
dayArray
.
forEach
((
y
)
=>
{
x
.
dayArray
.
forEach
((
y
)
=>
{
...
@@ -1098,6 +1096,24 @@ export default {
...
@@ -1098,6 +1096,24 @@ export default {
}
}
});
});
this
.
finishFirstLoad
=
true
;
this
.
finishFirstLoad
=
true
;
// #ifdef MP-ALIPAY
this
.
dataList
.
feature
.
feeInclude
=
parseHtml
(
this
.
dataList
.
feature
.
feeInclude
);
this
.
dataList
.
feature
.
feeNonInclude
=
parseHtml
(
this
.
dataList
.
feature
.
feeNonInclude
);
this
.
dataList
.
feature
.
importantTip
=
parseHtml
(
this
.
dataList
.
feature
.
importantTip
);
this
.
dataList
.
feature
.
warmTip
=
parseHtml
(
this
.
dataList
.
feature
.
warmTip
);
this
.
dataList
.
feature
.
visaRemark
=
parseHtml
(
this
.
dataList
.
feature
.
visaRemark
);
// #endif
}
else
{
}
else
{
}
}
},
},
...
@@ -1194,7 +1210,7 @@ export default {
...
@@ -1194,7 +1210,7 @@ export default {
encodeURIComponent
(
this
.
dataList
.
feature
.
importantTipText
),
encodeURIComponent
(
this
.
dataList
.
feature
.
importantTipText
),
});
});
},
},
// #ifdef MP-WEIXIN
//分享朋友圈
//分享朋友圈
onShareTimeline
()
{
onShareTimeline
()
{
let
uid
=
uni
.
getStorageSync
(
"mall_UserInfo"
)
let
uid
=
uni
.
getStorageSync
(
"mall_UserInfo"
)
...
@@ -1271,6 +1287,7 @@ export default {
...
@@ -1271,6 +1287,7 @@ export default {
:
""
,
:
""
,
};
};
},
},
// #endif
},
},
};
};
</
script
>
</
script
>
...
...
pages/ticketCoupons/policyDetail.vue
View file @
3276cd93
...
@@ -2,65 +2,71 @@
...
@@ -2,65 +2,71 @@
<!-- 政策详情 -->
<!-- 政策详情 -->
<view
class=
"policyDetail"
>
<view
class=
"policyDetail"
>
<view
class=
"tab-box"
>
<view
class=
"tab-box"
>
<u-tabs
:list=
"typeList"
:current=
"active"
name=
"Name"
:is-scroll=
"false"
@
change=
"changeHandler"
<u-tabs
:active-color=
"mainColor"
bg-color=
"#FFF"
:bar-style=
"barStyle"
height=
"100"
></u-tabs>
:list=
"typeList"
:current=
"active"
name=
"Name"
:is-scroll=
"false"
@
change=
"changeHandler"
:active-color=
"mainColor"
bg-color=
"#FFF"
:bar-style=
"barStyle"
height=
"100"
></u-tabs>
</view>
</view>
<view
class=
"officialNotice"
>
<view
class=
"officialNotice"
>
<view
class=
"title"
id=
"notice"
>
<view
class=
"title"
id=
"notice"
>
官方公告信息
</view>
官方公告信息
</view>
<view
class=
"desc"
>
<view
class=
"desc"
>
<rich-text
:nodes=
"details.TicketNotice"
class=
"policyDetail-richText"
v-if=
"details.TicketNotice"
>
>
</rich-text>
<rich-text
:nodes=
"details.TicketNotice"
class=
"policyDetail-richText"
v-if=
"details.TicketNotice"
>
>
</rich-text
>
<text
v-if=
"!details.TicketNotice"
>
暂无公告
</text>
<text
v-if=
"!details.TicketNotice"
>
暂无公告
</text>
</view>
</view>
<view
class=
"title"
>
<view
class=
"title"
>
开放时间
</view>
开放时间
</view>
<view
class=
"desc"
>
<view
class=
"desc"
>
<view
v-for=
"(item,index) in details.OpenTimeList"
:key=
"index"
>
<view
v-for=
"(item, index) in details.OpenTimeList"
:key=
"index"
>
<view
class=
"open-date"
v-if=
"item.StartDay&&item.EndDay"
>
<view
class=
"open-date"
v-if=
"item.StartDay && item.EndDay"
>
{{
item
.
StartDay
}}
~
<text
v-if=
"item.IsNextYear===1"
>
次年
</text>
{{
item
.
EndDay
}}
{{
item
.
StartDay
}}
~
<text
v-if=
"item.IsNextYear === 1"
>
次年
</text
>
{{
item
.
EndDay
}}
</view>
</view>
<view
class=
"open-item"
v-if=
"item.StartDay&&
item.EndDay"
>
<view
class=
"open-item"
v-if=
"item.StartDay &&
item.EndDay"
>
<view
class=
"BusinessStartWeek"
>
<view
class=
"BusinessStartWeek"
>
<text
v-if=
"item.BusinessStartWeek===
0"
>
不限
</text>
<text
v-if=
"item.BusinessStartWeek ===
0"
>
不限
</text>
<text
v-if=
"item.BusinessStartWeek===
1"
>
周一
</text>
<text
v-if=
"item.BusinessStartWeek ===
1"
>
周一
</text>
<text
v-if=
"item.BusinessStartWeek===
2"
>
周二
</text>
<text
v-if=
"item.BusinessStartWeek ===
2"
>
周二
</text>
<text
v-if=
"item.BusinessStartWeek===
3"
>
周三
</text>
<text
v-if=
"item.BusinessStartWeek ===
3"
>
周三
</text>
<text
v-if=
"item.BusinessStartWeek===
4"
>
周四
</text>
<text
v-if=
"item.BusinessStartWeek ===
4"
>
周四
</text>
<text
v-if=
"item.BusinessStartWeek===
5"
>
周五
</text>
<text
v-if=
"item.BusinessStartWeek ===
5"
>
周五
</text>
<text
v-if=
"item.BusinessStartWeek===
6"
>
周六
</text>
<text
v-if=
"item.BusinessStartWeek ===
6"
>
周六
</text>
<text
v-if=
"item.BusinessStartWeek===7"
>
周七
</text>
<text
v-if=
"item.BusinessStartWeek === 7"
>
周七
</text>
</view
</view
>
~
>
~
<view
class=
"BusinessEndWeek"
>
<view
class=
"BusinessEndWeek"
>
<text
v-if=
"item.BusinessEndWeek===0"
>
不限
</text>
<text
v-if=
"item.BusinessEndWeek === 0"
>
不限
</text>
<text
v-if=
"item.BusinessEndWeek===1"
>
周一
</text>
<text
v-if=
"item.BusinessEndWeek === 1"
>
周一
</text>
<text
v-if=
"item.BusinessEndWeek===2"
>
周二
</text>
<text
v-if=
"item.BusinessEndWeek === 2"
>
周二
</text>
<text
v-if=
"item.BusinessEndWeek===3"
>
周三
</text>
<text
v-if=
"item.BusinessEndWeek === 3"
>
周三
</text>
<text
v-if=
"item.BusinessEndWeek===4"
>
周四
</text>
<text
v-if=
"item.BusinessEndWeek === 4"
>
周四
</text>
<text
v-if=
"item.BusinessEndWeek===5"
>
周五
</text>
<text
v-if=
"item.BusinessEndWeek === 5"
>
周五
</text>
<text
v-if=
"item.BusinessEndWeek===6"
>
周六
</text>
<text
v-if=
"item.BusinessEndWeek === 6"
>
周六
</text>
<text
v-if=
"item.BusinessEndWeek===7"
>
周七
</text>
<text
v-if=
"item.BusinessEndWeek === 7"
>
周七
</text>
</view>
<view
class=
"Businesstime"
v-if=
"item.StartTime&&item.EndTime"
>
{{
item
.
StartTime
}}
~
{{
item
.
EndTime
}}
,
<text
v-if=
"item.StopTime"
>
{{
item
.
StopTime
}}
停止入场
</text>
</view>
</view>
<view
class=
"Businesstime"
v-if=
"item.StartTime && item.EndTime"
>
{{
item
.
StartTime
}}
~
{{
item
.
EndTime
}}
,
<text
v-if=
"item.StopTime"
>
{{
item
.
StopTime
}}
停止入场
</text>
</view>
</view>
</view>
</view>
</view>
</view>
<view
class=
"title"
id=
"buyTicket"
>
购票须知
</view>
</view>
<view
class=
"title"
id=
"buyTicket"
>
购票须知
</view>
<view
class=
"desc"
>
<view
class=
"desc"
>
<rich-text
:nodes=
"details.BookingInfo"
></rich-text>
<rich-text
:nodes=
"details.BookingInfo"
></rich-text>
</view>
</view>
<view
class=
"title"
id=
"tip"
>
<view
class=
"title"
id=
"tip"
>
温馨提示
</view>
温馨提示
</view>
<view
class=
"desc"
>
<view
class=
"desc"
>
<rich-text
:nodes=
"details.About"
></rich-text>
<rich-text
:nodes=
"details.About"
></rich-text>
</view>
</view>
...
@@ -69,92 +75,100 @@
...
@@ -69,92 +75,100 @@
</
template
>
</
template
>
<
script
>
<
script
>
export
default
{
// #ifdef MP-ALIPAY
import
parseHtml
from
"../../plugin/htmlparse.js"
;
// #endif
export
default
{
data
()
{
data
()
{
return
{
return
{
active
:
0
,
active
:
0
,
mainColor
:
"#DFBE6E"
,
mainColor
:
"#DFBE6E"
,
barStyle
:
{
barStyle
:
{
width
:
'50rpx '
,
width
:
"50rpx "
,
height
:
'6rpx !important'
,
height
:
"6rpx !important"
,
backgroundColor
:
'#DFBE6E !important'
,
backgroundColor
:
"#DFBE6E !important"
,
borderRadius
:
'3rpx !important'
,
borderRadius
:
"3rpx !important"
,
},
},
typeList
:
[{
typeList
:
[
{
Id
:
0
,
Id
:
0
,
Name
:
'官方公告'
Name
:
"官方公告"
,
},
{
},
{
Id
:
1
,
Id
:
1
,
Name
:
'购票须知'
Name
:
"购票须知"
,
},
{
},
{
Id
:
2
,
Id
:
2
,
Name
:
'温馨提示'
Name
:
"温馨提示"
,
}],
},
],
richText
:
""
,
richText
:
""
,
ID
:
0
,
ID
:
0
,
details
:
{},
details
:
{},
}
};
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
this
.
ID
=
options
.
id
this
.
ID
=
options
.
id
;
this
.
getDetail
()
this
.
getDetail
();
},
onPageScroll
(
res
){
console
.
log
(
res
.
scrollTop
);
//距离页面顶部距离
},
},
onPageScroll
(
res
)
{},
methods
:
{
methods
:
{
changeHandler
(
i
)
{
changeHandler
(
i
)
{
this
.
active
=
i
;
this
.
active
=
i
;
let
toID
=
""
let
toID
=
""
;
if
(
i
===
0
)
{
if
(
i
===
0
)
{
toID
=
"#notice"
toID
=
"#notice"
;
}
else
if
(
i
==
1
)
{
}
else
if
(
i
==
1
)
{
toID
=
"#buyTicket"
toID
=
"#buyTicket"
;
}
else
if
(
i
==
2
)
{
}
else
if
(
i
==
2
)
{
toID
=
"#tip"
toID
=
"#tip"
;
}
}
uni
.
pageScrollTo
({
uni
.
pageScrollTo
({
selector
:
toID
,
selector
:
toID
,
duration
:
300
,
duration
:
300
,
success
:
res
=>
{
success
:
(
res
)
=>
{},
}
});
});
},
},
//获取详情
//获取详情
getDetail
()
{
getDetail
()
{
this
.
request2
({
this
.
request2
(
url
:
'/api/AppletDining/GetTicketCouponsDetails'
,
{
url
:
"/api/AppletDining/GetTicketCouponsDetails"
,
data
:
{
data
:
{
ID
:
this
.
ID
,
ID
:
this
.
ID
,
}
},
},
res
=>
{
},
(
res
)
=>
{
if
(
res
.
resultCode
==
1
)
{
if
(
res
.
resultCode
==
1
)
{
// res.data.ScenicSpotTag = res.data.ScenicSpotTag.split(',')
// res.data.ScenicSpotTag = res.data.ScenicSpotTag.split(',')
// res.data.GeographicTag = res.data.GeographicTag.split(',')
// res.data.GeographicTag = res.data.GeographicTag.split(',')
this
.
details
=
res
.
data
;
this
.
details
=
res
.
data
;
// #ifdef MP-ALIPAY
this
.
details
.
BookingInfo
=
parseHtml
(
this
.
details
.
BookingInfo
);
this
.
details
.
TicketNotice
=
parseHtml
(
this
.
details
.
TicketNotice
);
this
.
details
.
About
=
parseHtml
(
this
.
details
.
About
);
console
.
log
(
"tag"
,
this
.
details
);
// #endif
}
}
}
}
);
);
},
},
}
},
}
};
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.tab-box
{
.tab-box
{
width
:
750rpx
;
width
:
750rpx
;
position
:
fixed
;
position
:
fixed
;
top
:
0
;
top
:
0
;
left
:
0
;
left
:
0
;
}
}
.policyDetail
{
.policyDetail
{
margin-top
:
100rpx
;
margin-top
:
100rpx
;
.officialNotice
{
.officialNotice
{
padding
:
0
45rpx
0rpx
;
padding
:
0
45rpx
0rpx
;
}
}
.title
{
.title
{
...
@@ -171,11 +185,11 @@
...
@@ -171,11 +185,11 @@
.open-date
{
.open-date
{
// width: 660rpx;
// width: 660rpx;
height
:
60rpx
;
height
:
60rpx
;
background-color
:
#F4F4F
4
;
background-color
:
#f4f4f
4
;
font-size
:
20rpx
;
font-size
:
20rpx
;
font-family
:
PingFang
SC
;
font-family
:
PingFang
SC
;
font-weight
:
500
;
font-weight
:
500
;
color
:
#4B
4949
;
color
:
#4b
4949
;
line-height
:
58rpx
;
line-height
:
58rpx
;
padding
:
0
30rpx
;
padding
:
0
30rpx
;
}
}
...
@@ -183,23 +197,23 @@
...
@@ -183,23 +197,23 @@
.open-item
{
.open-item
{
display
:
flex
;
display
:
flex
;
height
:
60rpx
;
height
:
60rpx
;
background-color
:
#FFFFFF
;
background-color
:
#ffffff
;
font-size
:
20rpx
;
font-size
:
20rpx
;
font-family
:
PingFang
SC
;
font-family
:
PingFang
SC
;
font-weight
:
500
;
font-weight
:
500
;
color
:
#4B
4949
;
color
:
#4b
4949
;
line-height
:
58rpx
;
line-height
:
58rpx
;
padding
:
0
30rpx
;
padding
:
0
30rpx
;
border
:
1rpx
solid
#F4F4F
4
;
border
:
1rpx
solid
#f4f4f
4
;
.Businesstime
{
.Businesstime
{
margin-left
:
20rpx
;
margin-left
:
20rpx
;
}
}
}
}
}
}
}
}
.policyDetail-richText
p
{
.policyDetail-richText
p
{
font-size
:
26rpx
!
important
;
font-size
:
26rpx
!
important
;
font-weight
:
500
!
important
;
font-weight
:
500
!
important
;
}
}
</
style
>
</
style
>
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