Commit bf12641e authored by 罗超's avatar 罗超

1

parent e30f3578
<template> <template>
<view class="subscribeTicket"> <view class="subscribeTicket">
<view> <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" howManyMonth="6" mode="2" @changeDate="changeDate" @changeMonth="changeMonth"
:defaultSelect="date"></calendar> :defaultSelect="date"></z-calendar>
</view> </view>
</view> </view>
</template> </template>
<script> <script>
import calender from './njzz-calendar/njzz-calendar.vue' import zCalendar from './njzz-calendar/njzz-calendar.vue'
export default { export default {
components: { components: {
calender zCalendar
}, },
props: { props: {
date: { date: {
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
console.log(val, oldVal) console.log(val, oldVal)
let newMonth = val.split('-')[1] let newMonth = val.split('-')[1]
let oldMonth = oldVal.split('-')[1] let oldMonth = oldVal.split('-')[1]
if(newMonth!=oldMonth){ if(newMonth!=oldMonth&&oldMonth!=undefined){
console.log(newMonth!=oldMonth) console.log(newMonth!=oldMonth)
this.getGoodsDateList() this.getGoodsDateList()
} }
...@@ -71,18 +71,16 @@ ...@@ -71,18 +71,16 @@
let datePrice = []; let datePrice = [];
data.forEach(x => { data.forEach(x => {
let obj = {} let obj = {}
obj.date = x.Date; obj.date = x.Year+'-'+x.Month+'-'+x.Day;
if(x.IsHavePrice===1){ if(x.IsHavePrice===1){
obj.price = x.HPriceB; obj.price = x.HPriceB;
}else{ }else{
obj.price = ""; obj.price = "";
} }
datePrice.push(obj) datePrice.push(obj)
}) })
this.datePrice = datePrice this.datePrice = datePrice
console.log(this.datePrice)
} }
); );
}, },
......
...@@ -187,12 +187,12 @@ ...@@ -187,12 +187,12 @@
</template> </template>
<script> <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 buyNotice from "./components/buyNotice.vue"
import subscribeTicket from "./components/subscribeTicket.vue" import subscribeTicket from "./components/subscribeTicket.vue"
export default { export default {
components: { components: {
calendar, // calendar,
buyNotice, buyNotice,
subscribeTicket, subscribeTicket,
}, },
...@@ -295,10 +295,10 @@ ...@@ -295,10 +295,10 @@
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;
if (res.data.VideoUrl == '') { // if (res.data.VideoUrl == '') {
this.active = 1 // this.active = 1
}; // };
this.details.imgs = [] // this.details.imgs = []
// this.details.BannerList.forEach(x=>{ // this.details.BannerList.forEach(x=>{
// let obj= { // let obj= {
// name:x // 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