he2802 před 4 roky
rodič
revize
1952f7a51f
1 změnil soubory, kde provedl 7 přidání a 1 odebrání
  1. 7 1
      pages2/plan/detail.vue

+ 7 - 1
pages2/plan/detail.vue

@@ -50,7 +50,7 @@
 		<view>
 			<uni-swipe-action>
 				<uni-swipe-action-item :autoClose="false" @change="swipeChange($event, item)" :show="item.show" v-for="(item, index) in list" :key="index">
-					<view class="list_item" :class="index % 2 == 0 ? 'list_item_bac1' : 'list_item_bac2'">
+					<view class="list_item" :class="index % 2 == 0 ? 'list_item_bac1' : 'list_item_bac2'" @click.stop="openEdit(item)">
 						<u-row>
 							<u-col span="11">
 								<text class="item_t1">{{ item.coursePlanVo[0].categoryName }}:{{ $method.timestampToTime(item.endTime) }}截止</text>
@@ -209,6 +209,11 @@ export default {
 			}
 			this.dealDayList()
 		},
+		openEdit(item){
+			this.listItem = item
+			this.isOpen = false;
+			this.dealMonth()
+		},
 		dealDayList(){
 			let firstItem = this.calendarStudyVo.dayStudyList[0]
 			this.calendarStudyVo.miniDayStudyList = [] //创建缩放的数组
@@ -299,6 +304,7 @@ export default {
 		},
 		swipeChange(e, item) {
 			item.show = e;
+			console.log(item,66)
 		},
 		openShow(item) {
 			if (item.show == 'none') {