|
|
@ -1,6 +1,7 @@ |
|
|
|
<template> |
|
|
|
<view class="bg"> |
|
|
|
<span class="iconfont topLeft" @click="goBack"></span> |
|
|
|
<!-- <span class="iconfont topLeft" @click="goBack"></span> --> |
|
|
|
<image :src="showImg(headImg)" class="topImg"></image> |
|
|
|
|
|
|
|
<view class="calendar"> |
|
|
|
<view class="calendar-top flex-between"> |
|
|
@ -8,7 +9,7 @@ |
|
|
|
<img src="https://static.ticket.sz-trip.com/hsrNewTown/images/calendar/left.png" class="iconfont" /> |
|
|
|
{{ monthShow ? '上一月' : '上一周' }} |
|
|
|
</view> |
|
|
|
<view>{{year}}年<span>{{month}}</span>月</view> |
|
|
|
<view>{{year}}年{{month}}月</view> |
|
|
|
<view @click="preNextDate(1)"> |
|
|
|
{{ monthShow ? '下一月' : '下一周' }} |
|
|
|
<img src="https://static.ticket.sz-trip.com/hsrNewTown/images/calendar/right.png" class="iconfont" /> |
|
|
@ -103,7 +104,8 @@ |
|
|
|
id: '16' |
|
|
|
} |
|
|
|
], |
|
|
|
typeIndex: 0 |
|
|
|
typeIndex: 0, |
|
|
|
headImg: '' |
|
|
|
} |
|
|
|
}, |
|
|
|
onLoad() { |
|
|
@ -120,6 +122,7 @@ |
|
|
|
this.getWeekDates(new Date()) |
|
|
|
|
|
|
|
this.getList() |
|
|
|
this.getHeadImg('calendar').then(res => {this.headImg = res}) |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
// 列表 |
|
|
@ -372,9 +375,9 @@ |
|
|
|
.bg { |
|
|
|
min-height: 100vh; |
|
|
|
overflow-x: hidden; |
|
|
|
background: url('https://static.ticket.sz-trip.com/yandu/images/eventCalendar/topBg.png') no-repeat; |
|
|
|
background-size: 100%; |
|
|
|
background-color: #F7F7F7; |
|
|
|
// background: url('https://static.ticket.sz-trip.com/yandu/images/eventCalendar/topBg.png') no-repeat; |
|
|
|
// background-size: 100%; |
|
|
|
background-color: #F5F5F5; |
|
|
|
padding-bottom: 100rpx; |
|
|
|
} |
|
|
|
|
|
|
@ -394,9 +397,17 @@ |
|
|
|
left: 0; |
|
|
|
} |
|
|
|
|
|
|
|
.topImg { |
|
|
|
width: 750rpx; |
|
|
|
height: 309.33rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.calendar{ |
|
|
|
padding: 0 26rpx; |
|
|
|
margin-top: 170rpx; |
|
|
|
border-radius: 20rpx 20rpx 0 0; |
|
|
|
position: relative; |
|
|
|
margin-top: -20rpx; |
|
|
|
background: #F5F5F5; |
|
|
|
|
|
|
|
.calendar-top{ |
|
|
|
height: 109rpx; |
|
|
@ -467,11 +478,11 @@ |
|
|
|
height: 80rpx; |
|
|
|
text-align: center; |
|
|
|
line-height: 80rpx; |
|
|
|
background: linear-gradient(90deg, #9EE4FE, #7FD491); |
|
|
|
background: #248BAA; |
|
|
|
font-size: 29rpx; |
|
|
|
font-family: PingFang SC; |
|
|
|
font-weight: 500; |
|
|
|
color: #000000; |
|
|
|
color: #fff; |
|
|
|
border-radius: 50%; |
|
|
|
} |
|
|
|
} |
|
|
@ -512,7 +523,7 @@ |
|
|
|
width: 670rpx; |
|
|
|
height: 53rpx; |
|
|
|
background: #F7F7F7; |
|
|
|
border-radius: 13rpx; |
|
|
|
border-radius: 27rpx; |
|
|
|
padding: 0 12rpx; |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
@ -545,9 +556,9 @@ |
|
|
|
color: #666666; |
|
|
|
} |
|
|
|
.type-active { |
|
|
|
background: linear-gradient(90deg, #9EE4FE, #7FD491); |
|
|
|
background: #248BAA; |
|
|
|
font-weight: bold; |
|
|
|
color: #000000; |
|
|
|
color: #fff; |
|
|
|
border: none; |
|
|
|
} |
|
|
|
} |
|
|
@ -582,10 +593,10 @@ |
|
|
|
max-width: 400rpx; |
|
|
|
line-height: 36rpx; |
|
|
|
border-radius: 7rpx; |
|
|
|
border: 1rpx solid #71B580; |
|
|
|
border: 1rpx solid #248BAA; |
|
|
|
font-weight: 500; |
|
|
|
font-size: 24rpx; |
|
|
|
color: #71B580; |
|
|
|
color: #248BAA; |
|
|
|
} |
|
|
|
|
|
|
|
.subtitle { |
|
|
|