<view class="cales">
<view class="cale" v-for="(dat,index) in calenders" :key="index" :class="isActive===index? 'activeColor':''"
@click="btn(index)">
<view class="time" :class="isActive===index? 'dateColor':''">{
{dat.time}}</view>
<view class="date" :class="isActive===index? 'dateColor':''">{
{dat.date}}</view>
<view class="point" :class="isActive===index? 'pointColor':''"></view>
</view>
</view>
<script>
export default {
data() {
return {
calenders: [],
met: false,
isActive: 0,
}
},
onReady() {
this.calendar(); //日历
},
methods: {
btn(index) {
co