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
7f558cc1
Commit
7f558cc1
authored
May 28, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
9ed4df20
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
845 additions
and
45 deletions
+845
-45
pages.json
pages.json
+1
-5
buyNotice.vue
pages/ticketCoupons/components/buyNotice.vue
+451
-0
subscribeTicket.vue
pages/ticketCoupons/components/subscribeTicket.vue
+103
-0
detail.vue
pages/ticketCoupons/detail.vue
+109
-40
list.vue
pages/ticketCoupons/list.vue
+7
-0
policyDetail.vue
pages/ticketCoupons/policyDetail.vue
+174
-0
No files found.
pages.json
View file @
7f558cc1
...
...
@@ -764,11 +764,7 @@
"path"
:
"imgList"
},
{
"path"
:
"buyNotice"
,
"enablePullDownRefresh"
:
true
,
"style"
:
{
"navigationStyle"
:
"custom"
}
"path"
:
"policyDetail"
}
]
}
...
...
pages/ticketCoupons/buyNotice.vue
→
pages/ticketCoupons/
components/
buyNotice.vue
View file @
7f558cc1
This diff is collapsed.
Click to expand it.
pages/ticketCoupons/components/subscribeTicket.vue
0 → 100644
View file @
7f558cc1
<
template
>
<view
class=
"subscribeTicket"
>
<view>
<calendar
ref=
"calendar"
:datePrice=
"datePrice"
:curryear=
'curryear'
:currmonth=
'currmonth'
howManyMonth=
"6"
mode=
"2"
@
changeDate=
"changeDate"
@
changeMonth=
"changeMonth"
:defaultSelect=
"date"
></calendar>
</view>
</view>
</
template
>
<
script
>
import
calender
from
'./njzz-calendar/njzz-calendar.vue'
export
default
{
components
:
{
calender
},
props
:
{
date
:
{
type
:
String
,
default
:
""
},
id
:
{
type
:
Number
,
default
:
0
}
},
data
()
{
return
{
curryear
:
0
,
currmonth
:
0
,
datePrice
:
[
],
}
},
watch
:
{
date
(
val
,
oldVal
)
{
console
.
log
(
val
,
oldVal
)
let
newMonth
=
val
.
split
(
'-'
)[
1
]
let
oldMonth
=
oldVal
.
split
(
'-'
)[
1
]
if
(
newMonth
!=
oldMonth
){
console
.
log
(
newMonth
!=
oldMonth
)
this
.
getGoodsDateList
()
}
}
},
mounted
()
{
let
year
=
new
Date
().
getFullYear
();
//年
let
month
=
new
Date
().
getMonth
()
+
1
;
//月
if
(
month
<
10
){
month
=
(
'0'
+
month
)
}
this
.
curryear
=
year
this
.
currmonth
=
month
console
.
log
(
'sub'
)
this
.
getGoodsDateList
()
},
methods
:
{
getGoodsDateList
()
{
this
.
request2
({
url
:
'/api/AppletDining/GetMonthTicketList'
,
data
:
{
TicketID
:
this
.
id
,
BuyDate
:
this
.
date
}
},
res
=>
{
let
data
=
res
.
data
;
let
datePrice
=
[];
data
.
forEach
(
x
=>
{
let
obj
=
{}
obj
.
date
=
x
.
Date
;
if
(
x
.
IsHavePrice
===
1
){
obj
.
price
=
x
.
HPriceB
;
}
else
{
obj
.
price
=
""
;
}
datePrice
.
push
(
obj
)
})
this
.
datePrice
=
datePrice
}
);
},
changeMonth
(
nowMonth
){
let
Month
=
nowMonth
.
year
+
'-'
+
nowMonth
.
month
;
this
.
getGoodsDateList
(
Month
)
},
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.subscribeTicket
{
height
:
70vh
;
padding
:
45rpx
45rpx
90rpx
;
}
</
style
>
pages/ticketCoupons/detail.vue
View file @
7f558cc1
This diff is collapsed.
Click to expand it.
pages/ticketCoupons/list.vue
View file @
7f558cc1
...
...
@@ -92,6 +92,7 @@
<u-loading
mode=
"flower"
size=
"48"
></u-loading>
<Text
style=
"color: #fff; margin-top: 10rpx;"
>
加载中...
</Text>
</view>
</view>
</
template
>
...
...
@@ -99,7 +100,9 @@
// import rangeSlider from "./components/range-slider.vue"
// import canlendar from "./components/time/index.vue"
// import Cascade from "./components/cascade.vue"
export
default
{
data
()
{
return
{
dataList
:[],
//列表数据
...
...
@@ -165,6 +168,10 @@
this
.
getList
();
// 获取景点门票类型
},
methods
:
{
openBuyNotice
(){
console
.
log
(
1
,
this
.
$refs
.
popup
)
this
.
$refs
.
popup
.
open
()
},
lower
(
e
)
{
if
(
this
.
msg
.
pageIndex
<
this
.
page_count
)
{
this
.
msg
.
pageIndex
++
;
...
...
pages/ticketCoupons/policyDetail.vue
0 → 100644
View file @
7f558cc1
<
template
>
<!-- 政策详情 -->
<view
class=
"policyDetail"
>
<u-tabs
:list=
"typeList"
:current=
"active"
name=
"Name"
:is-scroll=
"false"
@
change=
"changeHandler"
:active-color=
"mainColor"
bg-color=
"#FFF"
bar-height=
'4'
height=
"100"
></u-tabs>
<view
class=
"officialNotice"
>
<view
class=
"title"
>
官方公告信息
</view>
<view
class=
"desc"
>
<rich-text
:nodes=
"details.TicketNotice"
></rich-text>
</view>
<view
class=
"title"
>
开放时间
</view>
<view
class=
"desc"
>
<view
v-for=
"(item,index) in details.OpenTimeList"
:key=
"index"
>
<view
class=
"open-date"
v-if=
"item.StartDay&&item.EndDay"
>
{{
item
.
StartDay
}}
~
<text
v-if=
"item.IsNextYear===1"
>
次年
</text>
{{
item
.
EndDay
}}
</view>
<view
class=
"open-item"
v-if=
"item.StartDay&&item.EndDay"
>
<view
class=
"BusinessStartWeek"
>
<text
v-if=
"item.BusinessStartWeek===0"
>
不限
</text>
<text
v-if=
"item.BusinessStartWeek===1"
>
周一
</text>
<text
v-if=
"item.BusinessStartWeek===2"
>
周二
</text>
<text
v-if=
"item.BusinessStartWeek===3"
>
周三
</text>
<text
v-if=
"item.BusinessStartWeek===4"
>
周四
</text>
<text
v-if=
"item.BusinessStartWeek===5"
>
周五
</text>
<text
v-if=
"item.BusinessStartWeek===6"
>
周六
</text>
<text
v-if=
"item.BusinessStartWeek===7"
>
周七
</text>
</view>
~
<view
class=
"BusinessEndWeek"
>
<text
v-if=
"item.BusinessEndWeek===0"
>
不限
</text>
<text
v-if=
"item.BusinessEndWeek===1"
>
周一
</text>
<text
v-if=
"item.BusinessEndWeek===2"
>
周二
</text>
<text
v-if=
"item.BusinessEndWeek===3"
>
周三
</text>
<text
v-if=
"item.BusinessEndWeek===4"
>
周四
</text>
<text
v-if=
"item.BusinessEndWeek===5"
>
周五
</text>
<text
v-if=
"item.BusinessEndWeek===6"
>
周六
</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>
</view>
<view
class=
"title"
>
购票须知
</view>
<view
class=
"desc"
>
<rich-text
:nodes=
"details.BookingInfo"
></rich-text>
</view>
<view
class=
"title"
>
温馨提示
</view>
<view
class=
"desc"
>
<rich-text
:nodes=
"details.About"
></rich-text>
</view>
</view>
</view>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
active
:
0
,
mainColor
:
"#DFBE6E"
,
barStyle
:
{
width
:
'30rrpx'
,
height
:
'6rpx'
,
background
:
'#DFBE6E'
,
borderRadius
:
'3rpx'
},
typeList
:
[{
Id
:
0
,
Name
:
'官方公告'
},
{
Id
:
1
,
Name
:
'购票须知'
},
{
Id
:
2
,
Name
:
'温馨提示'
}],
richText
:
""
,
ID
:
0
,
details
:
{},
}
},
onLoad
(
options
)
{
console
.
log
(
options
)
this
.
ID
=
options
.
id
this
.
getDetail
()
},
methods
:
{
changeHandler
(
i
)
{
this
.
active
=
i
;
},
//获取详情
getDetail
()
{
this
.
request2
({
url
:
'/api/AppletDining/GetTicketCouponsDetails'
,
data
:
{
ID
:
this
.
ID
,
}
},
res
=>
{
if
(
res
.
resultCode
==
1
)
{
// res.data.ScenicSpotTag = res.data.ScenicSpotTag.split(',')
// res.data.GeographicTag = res.data.GeographicTag.split(',')
this
.
details
=
res
.
data
;
}
}
);
},
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.policyDetail
{
.officialNotice
{
padding
:
0
45rpx
90rpx
;
}
.title
{
font-size
:
36rpx
;
font-family
:
PingFang
SC
;
font-weight
:
800
;
color
:
#111111
;
margin-bottom
:
45rpx
;
}
.desc
{
margin-bottom
:
60rpx
;
.open-date
{
// width: 660rpx;
height
:
60rpx
;
background-color
:
#F4F4F4
;
font-size
:
20rpx
;
font-family
:
PingFang
SC
;
font-weight
:
500
;
color
:
#4B4949
;
line-height
:
58rpx
;
padding
:
0
30rpx
;
}
.open-item
{
display
:
flex
;
height
:
60rpx
;
background-color
:
#FFFFFF
;
font-size
:
20rpx
;
font-family
:
PingFang
SC
;
font-weight
:
500
;
color
:
#4B4949
;
line-height
:
58rpx
;
padding
:
0
30rpx
;
border
:
1rpx
solid
#F4F4F4
;
.Businesstime
{
margin-left
:
20rpx
;
}
}
}
}
</
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