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
bf12641e
Commit
bf12641e
authored
May 31, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
e30f3578
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
15 deletions
+13
-15
subscribeTicket.vue
pages/ticketCoupons/components/subscribeTicket.vue
+7
-9
detail.vue
pages/ticketCoupons/detail.vue
+6
-6
No files found.
pages/ticketCoupons/components/subscribeTicket.vue
View file @
bf12641e
<
template
>
<view
class=
"subscribeTicket"
>
<view>
<calendar
ref=
"calendar"
:datePrice=
"datePrice"
:curryear=
'curryear'
:currmonth=
'currmonth'
<
z-
calendar
ref=
"calendar"
:datePrice=
"datePrice"
:curryear=
'curryear'
:currmonth=
'currmonth'
howManyMonth=
"6"
mode=
"2"
@
changeDate=
"changeDate"
@
changeMonth=
"changeMonth"
:defaultSelect=
"date"
></calendar>
:defaultSelect=
"date"
></
z-
calendar>
</view>
</view>
</
template
>
<
script
>
import
calende
r
from
'./njzz-calendar/njzz-calendar.vue'
import
zCalenda
r
from
'./njzz-calendar/njzz-calendar.vue'
export
default
{
components
:
{
calende
r
zCalenda
r
},
props
:
{
date
:
{
...
...
@@ -38,7 +38,7 @@
console
.
log
(
val
,
oldVal
)
let
newMonth
=
val
.
split
(
'-'
)[
1
]
let
oldMonth
=
oldVal
.
split
(
'-'
)[
1
]
if
(
newMonth
!=
oldMonth
){
if
(
newMonth
!=
oldMonth
&&
oldMonth
!=
undefined
){
console
.
log
(
newMonth
!=
oldMonth
)
this
.
getGoodsDateList
()
}
...
...
@@ -71,18 +71,16 @@
let
datePrice
=
[];
data
.
forEach
(
x
=>
{
let
obj
=
{}
obj
.
date
=
x
.
Date
;
obj
.
date
=
x
.
Year
+
'-'
+
x
.
Month
+
'-'
+
x
.
Day
;
if
(
x
.
IsHavePrice
===
1
){
obj
.
price
=
x
.
HPriceB
;
}
else
{
obj
.
price
=
""
;
}
datePrice
.
push
(
obj
)
})
this
.
datePrice
=
datePrice
console
.
log
(
this
.
datePrice
)
}
);
},
...
...
pages/ticketCoupons/detail.vue
View file @
bf12641e
...
...
@@ -187,12 +187,12 @@
</
template
>
<
script
>
import
calendar
from
"./components/uni-calendar/uni-calendar.vue"
//
import calendar from "./components/uni-calendar/uni-calendar.vue"
import
buyNotice
from
"./components/buyNotice.vue"
import
subscribeTicket
from
"./components/subscribeTicket.vue"
export
default
{
components
:
{
calendar
,
//
calendar,
buyNotice
,
subscribeTicket
,
},
...
...
@@ -295,10 +295,10 @@
res
.
data
.
ScenicSpotTag
=
res
.
data
.
ScenicSpotTag
.
split
(
','
)
res
.
data
.
GeographicTag
=
res
.
data
.
GeographicTag
.
split
(
','
)
this
.
details
=
res
.
data
;
if
(
res
.
data
.
VideoUrl
==
''
)
{
this
.
active
=
1
};
this
.
details
.
imgs
=
[]
//
if (res.data.VideoUrl == '') {
//
this.active = 1
//
};
//
this.details.imgs = []
// this.details.BannerList.forEach(x=>{
// let obj= {
// name:x
...
...
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