Commit 7f558cc1 authored by 罗超's avatar 罗超

1

parent 9ed4df20
......@@ -764,11 +764,7 @@
"path": "imgList"
},
{
"path": "buyNotice",
"enablePullDownRefresh": true,
"style": {
"navigationStyle": "custom"
}
"path": "policyDetail"
}
]
}
......
<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>
This diff is collapsed.
......@@ -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++;
......
<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>
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