Forráskód Böngészése

Merge branch 'master' of https://gitee.com/he2802/saas_applet

Tang 3 éve
szülő
commit
8c2bfe7cd3

+ 1 - 1
components/course/courseChapter.vue

@@ -172,7 +172,7 @@ export default {
 		color: #FFFFFF;
 		font-size: 20rpx;
 		text-align: center;
-		line-height: 20rpx;
+		line-height: 28rpx;
 	}
 	.exam{
 		display: flex;

+ 11 - 0
pages2/class/detail.vue

@@ -237,6 +237,17 @@ export default {
 		this.courseDetail();
 		this.getGoodsDetail();
 		this.getAnswerList();
+		let noteSecond = Number(option.noteSecond);
+		if(noteSecond>0){
+			//我的消息跳过来,播放节
+			let item = {
+				sectionId:Number(option.sectionId),
+				recordingUrl:option.recordingUrl,
+				noteSecond:noteSecond
+			}
+			this.$store.commit('setPlaySectionId', {playSectionId  :item.sectionId});
+			this.playNoteVideo(item);
+		}
 		
 	},
 	onShow() {

+ 11 - 3
pages2/msg/detail.vue

@@ -11,10 +11,10 @@
 					<view class="h33">
 						{{ item.courseName }}{{ item.moduleName ? '/' + item.moduleName : '' }}{{ item.chapterName ? '/' + item.chapterName : '' }}{{ item.sectionName }}
 					</view>
-					<view style="display: flex;align-items: center;margin:28rpx 0rpx;">
+					<view style="display: flex;align-items: center;margin:28rpx 0rpx;"  @click="jumpSection(item)">
 						<image style="width: 35rpx;height: 35rpx;" src="@/static/courseIcon.png" mode=""></image>
 						<text class="timeStys">第{{ item.topicNum }}分钟</text>
-						<text class="aSty" @click="jumpSection(item)">点击可直接跳转</text>
+						<text class="aSty">点击可直接跳转</text>
 					</view>
 				</view>
 				<view class="lsow" style="border-bottom: 1rpx solid #eee;margin-top: 10rpx;" v-for="(item, index) in listData.informVo.informExamVo" :key="index">
@@ -23,7 +23,7 @@
 					<view style="display: flex;align-items: center;margin:28rpx 0rpx;">
 						<image style="width: 35rpx;height: 35rpx;" src="@/static/examIcon.png" mode=""></image>
 						<text class="timeStys">第{{ item.topicNum }}道题</text>
-						<text class="aSty" @click="jumpSection(item)">点击可直接跳转</text>
+						<text class="aSty" @click="jumpExam(item)">点击可直接跳转</text>
 					</view>
 				</view>
 			</view>
@@ -122,6 +122,14 @@ export default {
 		//跳转节视频
 		jumpSection(item) {
 			console.log(item);
+			item.noteSecond = Number(item.topicNum)*60 //转秒数
+			this.$navTo.togo('/pages2/class/detail', {
+				id: item.courseId,
+				goodsId: item.goodsId,
+				noteSecond:item.noteSecond,
+				sectionId:item.sectionId,
+				recordingUrl:item.recordingUrl
+			});
 		},
 		//跳转题库题目
 		jumpExam(item) {

+ 1 - 1
pages2/wd/course.vue

@@ -54,7 +54,7 @@ export default {
 		jump(item) {
 			this.$navTo.togo('/pages2/class/detail', {
 				id: item.courseId,
-				goodsId: this.goodsId
+				goodsId: this.goodsId,
 			});
 		},
 		studyIn(item) {