|
@@ -36,7 +36,7 @@
|
|
|
@statechange="onStateChange"
|
|
|
@fullscreenchange="fullscreenchange"
|
|
|
@error="playError"
|
|
|
- :autoplay="autoplay"
|
|
|
+ :autoplay="true"
|
|
|
:isAllowSeek="isAllowSeek"
|
|
|
:playbackRate="playbackRate"
|
|
|
:startTime="startTime"
|
|
@@ -510,6 +510,7 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ channelItem:null,
|
|
|
lockTimer: null,
|
|
|
orderGoodsId: 0,
|
|
|
noticeShow: false,
|
|
@@ -601,7 +602,7 @@ export default {
|
|
|
onLoad(option) {
|
|
|
this.courseId = Number(option.id);
|
|
|
this.goodsId = Number(option.goodsId);
|
|
|
- this.orderGoodsId = Number(option.orderGoodsId);
|
|
|
+ this.orderGoodsId = Number(option.orderGoodsId) || '';
|
|
|
this.courseDetail();
|
|
|
this.getGoodsDetail();
|
|
|
this.getAnswerList();
|
|
@@ -624,6 +625,8 @@ export default {
|
|
|
this.$store.commit("setPlayVID", { playVID: item.recordingUrl });
|
|
|
this.$store.commit("updatePlayNextId", playNextId);
|
|
|
console.log("this.playNoteVideo");
|
|
|
+
|
|
|
+ this.playNoteVideo(item)
|
|
|
}
|
|
|
},
|
|
|
onShow() {
|
|
@@ -830,6 +833,7 @@ export default {
|
|
|
//清除录播
|
|
|
this.$store.commit("setPlayVID", { playVID: null });
|
|
|
this.playChannel(item);
|
|
|
+ this.channelItem = item;
|
|
|
});
|
|
|
uni.$on("isRebuild", (item) => {
|
|
|
console.log(item);
|
|
@@ -860,19 +864,19 @@ export default {
|
|
|
console.log("Rebuild1");
|
|
|
if (res.data.code == 200) {
|
|
|
if (res.data.rows.length) {
|
|
|
- // res.data.rows[index].name = res.data.rows[index].menuName;
|
|
|
- // this.$set(this.reMenuList,index,res.data.rows[index])
|
|
|
- // for (let i = 0; i < res.data.rows.length; i++) {
|
|
|
- // let item = res.data.rows[i];
|
|
|
- // item.down = true;
|
|
|
- // item.id = item.menuId;
|
|
|
- // item.name = item.menuName;
|
|
|
- // }
|
|
|
- // this.reMenuList = []
|
|
|
- // this.$nextTick(() => {
|
|
|
- // this.reMenuList = res.data.rows;
|
|
|
- // console.log(this.reMenuList,'this.reMenuList1')
|
|
|
- // })
|
|
|
+ res.data.rows[index].name = res.data.rows[index].menuName;
|
|
|
+ this.$set(this.reMenuList,index,res.data.rows[index])
|
|
|
+ for (let i = 0; i < res.data.rows.length; i++) {
|
|
|
+ let item = res.data.rows[i];
|
|
|
+ item.down = true;
|
|
|
+ item.id = item.menuId;
|
|
|
+ item.name = item.menuName;
|
|
|
+ }
|
|
|
+ this.reMenuList = []
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.reMenuList = res.data.rows;
|
|
|
+ console.log(this.reMenuList,'this.reMenuList1')
|
|
|
+ })
|
|
|
} else {
|
|
|
this.reMenuList = [];
|
|
|
}
|
|
@@ -1258,6 +1262,7 @@ export default {
|
|
|
this.liveDuration = this.liveDuration + 1; //每隔1秒
|
|
|
if (this.liveDuration == 2) {
|
|
|
//直播第2秒拍照
|
|
|
+ console.log(this.channelItem)
|
|
|
if (
|
|
|
this.goodsPhotographConfig.livephotograph == 1 &&
|
|
|
this.channelItem.learning != 1
|