814

parent 9fe973ed
......@@ -369,6 +369,7 @@
}
});
getGoodsDetailApi(this.shopId).then(data=>{
// debugger
data.desc = JSON.parse(data.desc);
data.goods_desc = JSON.parse(data.goods_desc);
data.share_desc = JSON.parse(data.share_desc);
......
......@@ -315,7 +315,7 @@ export default {
// this.refIcon =
// this.
},
goToBuyPage() {
goToBuyPage(type) {
let query = { shopId: this.shopId, invite_code: this.invite_code };
let invite = this.invite_code;
this.$sa.track("buyCourse", {
......@@ -628,7 +628,7 @@ export default {
this.$sa.track("ViewRegisterpage", {});
}, 1000);
} else {
this.goToBuyPage();
this.goToBuyPage(type);
}
}
}
......
......@@ -230,40 +230,42 @@ export default {
localStorage.setItem("clarityType", this.clarityType);
this.showObj.video.forEach(el=>{
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.addEventListener("loadedmetadata", function()
{
// console.log(230)
// that.$refs.videoDom.currentTime=10
console.log(230)
// that.$refs.videoDom.currentTime=20
})
} else if (a == "720") {
this.clarityType = 720;
localStorage.setItem("clarityType", this.clarityType);
this.showObj.video.forEach(el=>{
el.url = el.url.slice(0,el.url.indexOf('_'))+'_'+this.clarityType+el.url.slice(-4)
console.log(el.url)
})
this.$refs.videoDom.load()
// debugger
this.$refs.videoDom.addEventListener("loadedmetadata", function()
{
// console.log(230)
// that.$refs.videoDom.currentTime=10
console.log(230)
// that.$refs.videoDom.currentTime=20
})
} else {
this.clarityType = 540;
localStorage.setItem("clarityType", this.clarityType);
this.showObj.video.forEach(el=>{
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.addEventListener("loadedmetadata", function()
{
// console.log(230)
// that.$refs.videoDom.currentTime=10
console.log(230)
// that.$refs.videoDom.currentTime=20
})
}
this.secClarity = false;
......@@ -512,6 +514,9 @@ export default {
change: this.contentData.content.change
};
}
// this.showObj.video.forEach(el=>{
// el.url = el.url+'?/avvod/m3u8'
// })
// console.log(this.$refs.itembox)
// console.log(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