浏览代码

视频学习弹出摄像头

chenxiong 3 年之前
父节点
当前提交
b412e30075
共有 4 个文件被更改,包括 7 次插入6 次删除
  1. 1 1
      pages/index/index.vue
  2. 1 1
      pages2/class/questionBank.vue
  3. 3 2
      pages2/plan/create.vue
  4. 2 2
      pages2/plan/index.vue

+ 1 - 1
pages/index/index.vue

@@ -12,7 +12,7 @@
 				</swiper-item>
 			</swiper>
 			<view class="dots">
-				<view class="dot" :class="{'active':index == current}" v-for="(swiper,index) in list"></view>
+				<view class="dot" :class="{'active':index == current}" v-for="(swiper,index) in list" :key="index"></view>
 			</view>
 		</view>
 		<view class="content">

+ 1 - 1
pages2/class/questionBank.vue

@@ -603,7 +603,7 @@ export default {
 				if (self.goodsDetail.goodsPhotoExamConfig) {
 					let goodsPhotoExamConfig = JSON.parse(self.goodsDetail.goodsPhotoExamConfig);
 					if (goodsPhotoExamConfig.photograph > 0) {
-						// self.needPhoto = true;
+						self.needPhoto = true;
 					}
 				}
 				

+ 3 - 2
pages2/plan/create.vue

@@ -21,7 +21,7 @@
 					<view v-else style="text-align: right;">请添加网课</view>
 				</u-form-item>
 				<u-form-item label="考试日期" prop="birth" :label-width="auto">
-					<picker mode="date" :value="form.date" @change="bindDateChange">
+					<picker mode="date" :start="stateDate" :value="form.date" @change="bindDateChange">
 						<view class="picker">{{ form.date }}</view>
 					</picker>
 				</u-form-item>
@@ -119,7 +119,7 @@ export default {
 			week_show: false,
 			form: {
 				category: '',
-				date: '2021-01-01',
+				date: this.$method.timestampToTime(new Date().valueOf()/1000, true),
 				time: '20:30',
 				startDate: '2021-05-07',
 				endDate: '2021-05-31',
@@ -130,6 +130,7 @@ export default {
 			list: [],
 			list2: [],
 			show: false,
+			stateDate:this.$method.timestampToTime(new Date().valueOf()/1000, true),
 			calendar_show: false,
 			maxDate: '2023-01-01',
 			minDate: '',

+ 2 - 2
pages2/plan/index.vue

@@ -43,7 +43,7 @@
 				<view v-for="(item, index) in workList" :key="index">
 					<view style="margin-left: 30rpx;margin-top: 10rpx;display: flex;align-items: center;" @click="jumpDetail(item)">
 						<text class="date_t2">{{ item.goodsName }}</text>
-						<view class="circle_num" style="margin-left: 20rpx;">{{ item.chapterNum }}</view>
+						<view class="circle_num" style="margin-left: 20rpx;">{{ item.classHours }}</view>
 					</view>
 				</view>
 			</view>
@@ -498,7 +498,7 @@ export default {
 .item_date {
 	width: 26rpx;
 	height: 26rpx;
-	background: #32467b;
+	background: #007AFF;
 	border-radius: 50%;
 	margin-left: 20rpx;
 	font-size: 18rpx;