日期日历 当前时间点 往后推4天
作者:互联网
<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
标签:co,methods,日历,往后,dat,日期,false,calendar 来源: https://blog.csdn.net/qq_59347596/article/details/122185086