814

parent 9fe973ed
...@@ -369,6 +369,7 @@ ...@@ -369,6 +369,7 @@
} }
}); });
getGoodsDetailApi(this.shopId).then(data=>{ getGoodsDetailApi(this.shopId).then(data=>{
// debugger
data.desc = JSON.parse(data.desc); data.desc = JSON.parse(data.desc);
data.goods_desc = JSON.parse(data.goods_desc); data.goods_desc = JSON.parse(data.goods_desc);
data.share_desc = JSON.parse(data.share_desc); data.share_desc = JSON.parse(data.share_desc);
......
...@@ -315,7 +315,7 @@ export default { ...@@ -315,7 +315,7 @@ export default {
// this.refIcon = // this.refIcon =
// this. // this.
}, },
goToBuyPage() { goToBuyPage(type) {
let query = { shopId: this.shopId, invite_code: this.invite_code }; let query = { shopId: this.shopId, invite_code: this.invite_code };
let invite = this.invite_code; let invite = this.invite_code;
this.$sa.track("buyCourse", { this.$sa.track("buyCourse", {
...@@ -628,7 +628,7 @@ export default { ...@@ -628,7 +628,7 @@ export default {
this.$sa.track("ViewRegisterpage", {}); this.$sa.track("ViewRegisterpage", {});
}, 1000); }, 1000);
} else { } else {
this.goToBuyPage(); this.goToBuyPage(type);
} }
} }
} }
......
...@@ -230,40 +230,42 @@ export default { ...@@ -230,40 +230,42 @@ export default {
localStorage.setItem("clarityType", this.clarityType); localStorage.setItem("clarityType", this.clarityType);
this.showObj.video.forEach(el=>{ this.showObj.video.forEach(el=>{
el.url = el.url.slice(0,el.url.indexOf('_'))+'_'+this.clarityType+el.url.slice(-4) el.url = el.url.slice(0,el.url.indexOf('_'))+'_'+this.clarityType+el.url.slice(-4)
console.log(el.url)
}) })
this.$refs.videoDom.load() this.$refs.videoDom.load()
this.$refs.videoDom.addEventListener("loadedmetadata", function() this.$refs.videoDom.addEventListener("loadedmetadata", function()
{ {
// console.log(230) console.log(230)
// that.$refs.videoDom.currentTime=10 // that.$refs.videoDom.currentTime=20
}) })
} else if (a == "720") { } else if (a == "720") {
this.clarityType = 720; this.clarityType = 720;
localStorage.setItem("clarityType", this.clarityType); localStorage.setItem("clarityType", this.clarityType);
this.showObj.video.forEach(el=>{ this.showObj.video.forEach(el=>{
el.url = el.url.slice(0,el.url.indexOf('_'))+'_'+this.clarityType+el.url.slice(-4) el.url = el.url.slice(0,el.url.indexOf('_'))+'_'+this.clarityType+el.url.slice(-4)
console.log(el.url)
}) })
this.$refs.videoDom.load() this.$refs.videoDom.load()
// debugger // debugger
this.$refs.videoDom.addEventListener("loadedmetadata", function() this.$refs.videoDom.addEventListener("loadedmetadata", function()
{ {
// console.log(230) console.log(230)
// that.$refs.videoDom.currentTime=10 // that.$refs.videoDom.currentTime=20
}) })
} else { } else {
this.clarityType = 540; this.clarityType = 540;
localStorage.setItem("clarityType", this.clarityType); localStorage.setItem("clarityType", this.clarityType);
this.showObj.video.forEach(el=>{ this.showObj.video.forEach(el=>{
el.url = el.url.slice(0,el.url.indexOf('_'))+'_'+this.clarityType+el.url.slice(-4) el.url = el.url.slice(0,el.url.indexOf('_'))+'_'+this.clarityType+el.url.slice(-4)
console.log(el.url)
}) })
this.$refs.videoDom.load() this.$refs.videoDom.load()
this.$refs.videoDom.addEventListener("loadedmetadata", function() this.$refs.videoDom.addEventListener("loadedmetadata", function()
{ {
// console.log(230) console.log(230)
// that.$refs.videoDom.currentTime=10 // that.$refs.videoDom.currentTime=20
}) })
} }
this.secClarity = false; this.secClarity = false;
...@@ -512,6 +514,9 @@ export default { ...@@ -512,6 +514,9 @@ export default {
change: this.contentData.content.change change: this.contentData.content.change
}; };
} }
// this.showObj.video.forEach(el=>{
// el.url = el.url+'?/avvod/m3u8'
// })
// console.log(this.$refs.itembox) // console.log(this.$refs.itembox)
// console.log(this.showObj.video.length) // console.log(this.showObj.video.length)
if (this.$refs.itembox && this.showObj.video.length) { if (this.$refs.itembox && this.showObj.video.length) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment