Commit bf12641e authored by 罗超's avatar 罗超

1

parent e30f3578
<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 calender from './njzz-calendar/njzz-calendar.vue'
import zCalendar from './njzz-calendar/njzz-calendar.vue'
export default {
components: {
calender
zCalendar
},
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)
}
);
},
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment