|
@@ -119,6 +119,8 @@
|
|
this.cacheZhangInfo = cacheManager.get('zhangInfo')
|
|
this.cacheZhangInfo = cacheManager.get('zhangInfo')
|
|
|
|
|
|
let currentObject = this.cacheZhangInfo.jieList.find(item => item.jieId == options.jieId);
|
|
let currentObject = this.cacheZhangInfo.jieList.find(item => item.jieId == options.jieId);
|
|
|
|
+
|
|
|
|
+ console.log(currentObject);
|
|
this.shipinTitle = this.cacheZhangInfo.numberStr + ' ' + this.cacheZhangInfo.zhangName
|
|
this.shipinTitle = this.cacheZhangInfo.numberStr + ' ' + this.cacheZhangInfo.zhangName
|
|
|
|
|
|
this.pageData = {
|
|
this.pageData = {
|
|
@@ -244,7 +246,7 @@
|
|
mounted() {
|
|
mounted() {
|
|
console.log("renderScript1")
|
|
console.log("renderScript1")
|
|
// 在适合的生命周期,通过script和link标签引入播放器sdk、css
|
|
// 在适合的生命周期,通过script和link标签引入播放器sdk、css
|
|
- this.loadWebPlayerSDK()
|
|
|
|
|
|
+ // this.loadWebPlayerSDK()
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -269,7 +271,8 @@
|
|
if (newValue) {
|
|
if (newValue) {
|
|
this.playAuth = ''
|
|
this.playAuth = ''
|
|
this.playAuth = newValue
|
|
this.playAuth = newValue
|
|
- this.playAli()
|
|
|
|
|
|
+ this.loadWebPlayerSDK()
|
|
|
|
+
|
|
}
|
|
}
|
|
},
|
|
},
|
|
videoIdFun(newValue, oldValue, ownerInstance, instance) {
|
|
videoIdFun(newValue, oldValue, ownerInstance, instance) {
|
|
@@ -329,6 +332,9 @@
|
|
// console.log(this.videoId);
|
|
// console.log(this.videoId);
|
|
// console.log(this.playAuth);
|
|
// console.log(this.playAuth);
|
|
//配置播放器
|
|
//配置播放器
|
|
|
|
+ if(!this.playAuth){
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
var player = new Aliplayer({
|
|
var player = new Aliplayer({
|
|
id: "wgy-player-test",
|
|
id: "wgy-player-test",
|
|
"vid": this.videoId,
|
|
"vid": this.videoId,
|
|
@@ -408,7 +414,8 @@
|
|
s_tag.src = 'https://g.alicdn.com/de/prismplayer/2.9.6/aliplayer-min.js';
|
|
s_tag.src = 'https://g.alicdn.com/de/prismplayer/2.9.6/aliplayer-min.js';
|
|
s_tag.charset = 'utf-8';
|
|
s_tag.charset = 'utf-8';
|
|
s_tag.onload = () => {
|
|
s_tag.onload = () => {
|
|
- // this.playAli()
|
|
|
|
|
|
+ // console.log(this.playAuth);
|
|
|
|
+ this.playAli()
|
|
resolve();
|
|
resolve();
|
|
}
|
|
}
|
|
document.body.appendChild(s_tag);
|
|
document.body.appendChild(s_tag);
|