zizhong.wang 3 år sedan
förälder
incheckning
cf50a57956
1 ändrade filer med 11 tillägg och 13 borttagningar
  1. 11 13
      components/lx-calendar/lx-calendar.vue

+ 11 - 13
components/lx-calendar/lx-calendar.vue

@@ -22,17 +22,7 @@
 				</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.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" v-show="false"><text class="iconfont next icon-fanhui" :class="[retract ? '' : 'retract_icon']" /></view>
-			</swiper-item>
+			
 		</swiper>
 	</view>
 </template>
@@ -442,6 +432,8 @@ export default {
 //			this.nowDay = '';
 			this.date = '';
 			
+			
+			
 			if(this.retract){
 				if(type == 'prev'){
 					this.get_date(this.nowTime - 86400 * 7 * 1000);
@@ -453,8 +445,9 @@ export default {
 					this.set_doc_lists_update();
 				}
 			}else{
+				
 				this.get_date(this.get_month(type))
-				this.update_swiper_item('month');
+				//this.update_swiper_item('month');
 			}
 			
 			this.set_doc_lists_update();
@@ -488,6 +481,9 @@ export default {
 			this.get_date(this.next_date)
 		},
 		get_date(value = '',type = 'same'){
+			
+			
+			
 			let date = new Date();
 			if(value){
 				date = new Date(value);
@@ -497,7 +493,9 @@ export default {
 				nowDay = date.getDate(),
 				nowTime = date.getTime(),
 				nowWeek = date.getDay();
-
+			
+			
+				
 			
 			let days = this.get_month_days(nowMonth,nowYear);
 			let start_date = new Date(nowYear,nowMonth - 1, 1);