|
@@ -74,24 +74,28 @@
|
|
|
</view>
|
|
|
<view v-for="(item, index) in noteList" >
|
|
|
<view class="dateBox">{{$method.timestampToTime(item.dateNote)}}</view>
|
|
|
- <view class="noteBox" v-for="(item1, index1) in item.userNotes">
|
|
|
- <view>
|
|
|
- <view class="tBox" v-if="playSectionId==item1.sectionId">
|
|
|
- <image src="/static/icon/note1.png" style="width: 39rpx;height: 39rpx;margin:0 29rpx;"></image>
|
|
|
- <view class="title leftPadding">{{item1.dateNote}}</view>
|
|
|
+ <view class="noteBox">
|
|
|
+ <view v-for="(item1, index1) in item.userNotes" style="margin-top: 30rpx;" @click="jumpNote(item1)">
|
|
|
+ <view style="display: flex;">
|
|
|
+ <view>
|
|
|
+ <view >
|
|
|
+ <image src="/static/icon/note2.png" v-if="noteId!=item1.noteId" style="width: 39rpx;height: 39rpx;margin:0 29rpx;"></image>
|
|
|
+ <image src="/static/icon/note1.png" v-if="noteId==item1.noteId" style="width: 39rpx;height: 39rpx;margin:0 29rpx;"></image>
|
|
|
+ </view>
|
|
|
+ <view class="title" style="width: 39rpx;height: 39rpx;margin:0 29rpx;">{{$method.secondToDate(item1.noteSecond)}}</view>
|
|
|
</view>
|
|
|
- <view class="tBox2">
|
|
|
- <view class="title" style="width: 39rpx;height: 39rpx;margin:0 29rpx;">{{$method.secondToDate(item1.noteSecond)}}</view>
|
|
|
- <view class="t2Content leftPadding">fdgdfgd</view>
|
|
|
+ <view style="margin-left: 10rpx;">
|
|
|
+ <view class="t2Content leftPadding">{{item1.sectionName}}</view>
|
|
|
+ <view class="tBox2">
|
|
|
+ {{item1.noteText}}
|
|
|
+
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- <view class="tBox" v-if="playSectionId!=item1.sectionId">
|
|
|
- <image src="/static/icon/note2.png" style="width: 39rpx;height: 39rpx;margin:0 29rpx;"></image>
|
|
|
- <view class="title leftPadding">{{item1.sectionName}}</view>
|
|
|
- </view>
|
|
|
- <view style="margin-left: 97rpx;" class="t2Content leftPadding">{{item1.noteText}}</view>
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
+ </view>
|
|
|
+
|
|
|
|
|
|
</view>
|
|
|
</view>
|
|
@@ -223,7 +227,8 @@ export default {
|
|
|
placeholder:'您可以在这里输入答疑内容',
|
|
|
ctxValue:'',
|
|
|
noteList:[],
|
|
|
- noteValue:''
|
|
|
+ noteValue:'',
|
|
|
+ noteId:0
|
|
|
};
|
|
|
},
|
|
|
onUnload() {},
|
|
@@ -261,6 +266,8 @@ export default {
|
|
|
}
|
|
|
this.startStatus = true
|
|
|
this.startTime = 0
|
|
|
+ //获取节笔记
|
|
|
+ this.getNoteList()
|
|
|
});
|
|
|
eventHub.$on('levelId', item => {
|
|
|
let arr = item.split('-')
|
|
@@ -271,6 +278,14 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
methods: {
|
|
|
+ jumpNote(item){
|
|
|
+ this.noteId = item.noteId
|
|
|
+ this.$u.toast('即将跳到笔记位置');
|
|
|
+ //跳到笔记时刻
|
|
|
+ var polyvPlayerContext = this.selectComponent('#playerVideo');
|
|
|
+ polyvPlayerContext.seek(item.noteSecond)
|
|
|
+ polyvPlayerContext.play()
|
|
|
+ },
|
|
|
postNote() {
|
|
|
let self = this;
|
|
|
if(!(this.playSectionId>0)){
|
|
@@ -307,7 +322,7 @@ export default {
|
|
|
},
|
|
|
getNoteList() {
|
|
|
let self = this;
|
|
|
- this.$api.noteList({ courseId: this.courseId,gradeId:this.gradeId,goodsId:this.goodsId }).then(res => {
|
|
|
+ this.$api.noteList({ sectionId:this.playSectionId,courseId: this.courseId,gradeId:this.gradeId,goodsId:this.goodsId }).then(res => {
|
|
|
if (res.data.code == 200) {
|
|
|
self.noteList = res.data.rows;
|
|
|
}
|
|
@@ -555,7 +570,7 @@ export default {
|
|
|
self.gradeId = self.goodsData.gradeId
|
|
|
self.getMenuList();
|
|
|
self.getReMenuList() //获取重修目录
|
|
|
- self.getNoteList()
|
|
|
+
|
|
|
if(self.goodsData.goodsPlayConfig){
|
|
|
self.goodsPlayConfig = JSON.parse(self.goodsData.goodsPlayConfig);
|
|
|
if(self.goodsPlayConfig.autoPlay>0){
|
|
@@ -734,15 +749,17 @@ export default {
|
|
|
margin-left: 8rpx;
|
|
|
}
|
|
|
.t2Content {
|
|
|
- font-size: 30rpx;
|
|
|
+ font-size: 28rpx;
|
|
|
font-family: PingFang SC;
|
|
|
font-weight: bold;
|
|
|
- color: #333333;
|
|
|
+ color: #999999;
|
|
|
line-height: 48rpx;
|
|
|
}
|
|
|
.tBox2 {
|
|
|
display: flex;
|
|
|
padding-top: 10rpx;
|
|
|
+ color: #333333;
|
|
|
+ font-size: 30rpx;
|
|
|
}
|
|
|
.tBox {
|
|
|
display: flex;
|