소스 검색

消息跳播放

he2802 3 년 전
부모
커밋
0d93d2bf2f
5개의 변경된 파일25개의 추가작업 그리고 11개의 파일을 삭제
  1. 1 1
      components/course/courseChapter.vue
  2. 11 0
      pages2/class/detail.vue
  3. 1 6
      pages2/course/detail.vue
  4. 11 3
      pages2/msg/detail.vue
  5. 1 1
      pages2/wd/course.vue

+ 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() {

+ 1 - 6
pages2/course/detail.vue

@@ -40,13 +40,8 @@
 			
 		</view>
 		<view style="padding: 20rpx;position: relative;top: 680rpx;" v-show="current==0">
-<<<<<<< HEAD
-			<view class="content">
-				<view v-html="detail.mobileDetailHtml" style="width: 100%;overflow: hidden;"></view>
-=======
 			<view class="content" style="padding: 10rpx;">
-				<view v-html="detail.mobileDetailHtml" style="width: 100%;"></view>
->>>>>>> 50b8991b1bbfc147f6098874fb80946439feb3c1
+				<view v-html="detail.mobileDetailHtml" style="width: 100%;overflow: hidden;"></view>
 			</view>
 		</view>
 		<view style="padding: 20rpx;padding-bottom: 100rpx;position: relative;top: 680rpx;" v-show="current==1">

+ 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

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