|
@@ -148,8 +148,12 @@
|
|
|
this.playAuth = ''
|
|
|
this.cacheZhangInfo = {}
|
|
|
Number(this.jieNumber++)
|
|
|
- this.init({
|
|
|
- jieNumber: this.jieNumber
|
|
|
+ // this.init({
|
|
|
+ // jieNumber: this.jieNumber
|
|
|
+ // })
|
|
|
+ uni.redirectTo({
|
|
|
+ //url: '/pages/study/lookShipin?studyData=' + JSON.stringify(pageData)
|
|
|
+ url: '/pages/study/lookShipin?jieNumber='+this.jieNumber
|
|
|
})
|
|
|
},
|
|
|
getLive() {
|
|
@@ -213,12 +217,14 @@
|
|
|
// instance.$el指向的是触发事件的那个节点;ownerInstance.$el指向当前vue文件中的根节点;
|
|
|
// instance的作用目前尚不明确,官方没有给出用法
|
|
|
if (newValue) {
|
|
|
+ this.playAuth = ''
|
|
|
this.playAuth = newValue
|
|
|
this.playAli()
|
|
|
}
|
|
|
},
|
|
|
videoIdFun(newValue, oldValue, ownerInstance, instance) {
|
|
|
if (newValue) {
|
|
|
+ this.videoId = ''
|
|
|
this.videoId = newValue
|
|
|
}
|
|
|
},
|
|
@@ -273,6 +279,8 @@
|
|
|
},
|
|
|
playAli() {
|
|
|
let that = this
|
|
|
+ console.log(this.videoId);
|
|
|
+ console.log(this.playAuth);
|
|
|
//配置播放器
|
|
|
var player = new Aliplayer({
|
|
|
id: "wgy-player-test",
|
|
@@ -330,7 +338,7 @@
|
|
|
|
|
|
}, function(player) {});
|
|
|
this.player = player;
|
|
|
- player.one('canplay', function() {
|
|
|
+ player.on('canplay', function() {
|
|
|
console.log('canplay', this.player.tag);
|
|
|
player.tag.play();
|
|
|
|