|
|
@@ -14,31 +14,34 @@
|
|
|
|
|
|
<view class="date_dl" v-show="!retract || index == to_prev_week_index" v-for="(item,index) in week_list_prev_co" :key="index">
|
|
|
<view class="dd" @click="item_click(vo,index,key)" v-for="(vo,key) in item" :key="key">
|
|
|
- <view class="num" :class="[vo.today ? 'today' : '',vo.type == 'month' ? 'month' : (retract ? '' : 'disabled')]">{{vo.day}}</view>
|
|
|
+ <!-- <view class="num" :class="[vo.today ? 'today' : '',vo.type == 'month' ? 'month' : (retract ? '' : 'disabled')]">{{vo.day}}</view> -->
|
|
|
+ <view class="num" :class="[vo.today ? 'today' : '', vo.dot ? '' : 'disabled']">{{vo.day}}</view>
|
|
|
<view v-show="vo.dot && (vo.type == 'month' || retract)" class="dot"></view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view @click="open" class="retract icon"><text class="iconfont next icon-fanhui" :class="[retract ? '' : 'retract_icon']" /></view>
|
|
|
+ <view @click="open" class="retract icon" v-show="false"><text class="iconfont next icon-fanhui" :class="[retract ? '' : 'retract_icon']" /></view>
|
|
|
</swiper-item>
|
|
|
<swiper-item>
|
|
|
|
|
|
<view class="date_dl" v-show="!retract || index == to_week_index" v-for="(item,index) in week_list" :key="index">
|
|
|
<view class="dd" @click="item_click(vo,index,key)" v-for="(vo,key) in item" :key="key">
|
|
|
- <view class="num" :class="[vo.today ? 'today' : '',vo.type == 'month' ? 'month' : (retract ? '' : 'disabled')]">{{vo.day}}</view>
|
|
|
+ <!-- <view class="num" :class="[vo.today ? 'today' : '',vo.type == 'month' ? 'month' : (retract ? '' : 'disabled')]">{{vo.day}}</view> -->
|
|
|
+ <view class="num" :class="[vo.today ? 'today' : '', vo.dot ? '' : 'disabled']">{{vo.day}}</view>
|
|
|
<view v-show="vo.dot && (vo.type == 'month' || retract)" class="dot"></view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view @click="open" class="retract icon"><text class="iconfont next icon-fanhui" :class="[retract ? '' : 'retract_icon']" /></view>
|
|
|
+ <view @click="open" class="retract icon" v-show="false"><text class="iconfont next icon-fanhui" :class="[retract ? '' : 'retract_icon']" /></view>
|
|
|
</swiper-item>
|
|
|
<swiper-item>
|
|
|
|
|
|
<view class="date_dl" v-show="!retract || index == to_next_week_index" v-for="(item,index) in week_list_next_co" :key="index">
|
|
|
<view class="dd" @click="item_click(vo,index,key)" v-for="(vo,key) in item" :key="key">
|
|
|
- <view class="num" :class="[vo.today ? 'today' : '',vo.type == 'month' ? 'month' : (retract ? '' : 'disabled')]">{{vo.day}}</view>
|
|
|
+ <!-- <view class="num" :class="[vo.today ? 'today' : '',vo.type == 'month' ? 'month' : (retract ? '' : 'disabled')]">{{vo.day}}</view> -->
|
|
|
+ <view class="num" :class="[vo.today ? 'today' : '', vo.dot ? '' : 'disabled']">{{vo.day}}</view>
|
|
|
<view v-show="vo.dot && (vo.type == 'month' || retract)" class="dot"></view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view @click="open" class="retract icon"><text class="iconfont next icon-fanhui" :class="[retract ? '' : 'retract_icon']" /></view>
|
|
|
+ <view @click="open" class="retract icon" v-show="false"><text class="iconfont next icon-fanhui" :class="[retract ? '' : 'retract_icon']" /></view>
|
|
|
</swiper-item>
|
|
|
</swiper>
|
|
|
</view>
|
|
|
@@ -338,10 +341,14 @@ export default {
|
|
|
this[type] = list;
|
|
|
},
|
|
|
item_click(item,item_index = -1){
|
|
|
- if(!this.retract && item.type !== 'month'){
|
|
|
+ // if(!this.retract && item.type !== 'month'){
|
|
|
+ // return false;
|
|
|
+ // }
|
|
|
+ if(!item.dot){
|
|
|
return false;
|
|
|
}
|
|
|
- this.date = item.date;;
|
|
|
+ console.log(item.date)
|
|
|
+ this.date = item.date;
|
|
|
if(item.type == 'month'){
|
|
|
this.nowDay = item.day;
|
|
|
if(item_index >= 0) this.to_week_index = item_index;
|