Commit 7157d48e authored by IvyXia123's avatar IvyXia123

video 全屏不能展示提交

parent af3feb64
...@@ -200,12 +200,13 @@ export default { ...@@ -200,12 +200,13 @@ export default {
if (this.saleObj) { if (this.saleObj) {
priceT = priceT - this.saleObj.money; priceT = priceT - this.saleObj.money;
} }
priceT = (priceT / 100).toFixed(1); priceT = (priceT / 100 ).toFixed(1);
let str = priceT.toString(); let str = priceT.toString();
if (str.length > 1) { if (str.length > 1) {
str = str.split(".")[1]; str = str.split(".")[1];
if (str === "0") priceT = parseInt(priceT); if (str === "0") priceT = parseInt(priceT);
} }
console.log(priceT)
return priceT; return priceT;
} }
}, },
...@@ -274,6 +275,8 @@ export default { ...@@ -274,6 +275,8 @@ export default {
); );
}, },
chooseSale(data) { chooseSale(data) {
console.log(data)
console.log(989898)
this.saleObj = data; this.saleObj = data;
}, },
showSale() { showSale() {
...@@ -332,6 +335,7 @@ export default { ...@@ -332,6 +335,7 @@ export default {
salesType: invite ? invite.split("-")[1] : "null", salesType: invite ? invite.split("-")[1] : "null",
salesID: invite ? Number(invite.split("-")[2]) : 0 salesID: invite ? Number(invite.split("-")[2]) : 0
}); });
console.log(this.priceTotal)
if (window.location.href.indexOf("gdt_vid") > -1) { if (window.location.href.indexOf("gdt_vid") > -1) {
json.gdt_vid = this.$route.query.gdt_vid; json.gdt_vid = this.$route.query.gdt_vid;
} }
...@@ -471,10 +475,10 @@ export default { ...@@ -471,10 +475,10 @@ export default {
this.userCourse = JSON.parse(JSON.stringify(res)); this.userCourse = JSON.parse(JSON.stringify(res));
localStorage.setItem("userCourse", JSON.stringify(this.userCourse)); localStorage.setItem("userCourse", JSON.stringify(this.userCourse));
if (res.teacher_alias && res.teacher_alias.substr(0, 1) == 1) { if (res.teacher_alias && res.teacher_alias.substr(0, 1) == 1) {
this.$router.push({ /*this.$router.push({
name: "guide", name: "guide",
query: { shopId: this.shopId } query: { shopId: this.shopId }
}); });*/
} else { } else {
if (orderData.has_buy_goods_info.goods_type === 2) { if (orderData.has_buy_goods_info.goods_type === 2) {
this.$router.push({ this.$router.push({
...@@ -505,6 +509,7 @@ export default { ...@@ -505,6 +509,7 @@ export default {
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);
this.groupDetail = data; this.groupDetail = data;
console.log(this.groupDetail)
this.invite_code = this.$route.query.invite_code; this.invite_code = this.$route.query.invite_code;
if (this.type && this.type === 0) { if (this.type && this.type === 0) {
this.price = data.single_price / 100; this.price = data.single_price / 100;
......
...@@ -92,10 +92,11 @@ export default { ...@@ -92,10 +92,11 @@ export default {
onShare: function(type) { onShare: function(type) {
this.handleInviteCode(); this.handleInviteCode();
let URL = `${process.env.BUY_URL}shopId=${this.shopId}&invite_code=${this.this_code}`; let URL = `${process.env.BUY_URL}shopId=${this.shopId}&invite_code=${this.this_code}`;
console.log(this.groupDetail.share_desc)
this.enableShare({ this.enableShare({
product_title: this.groupDetail.share_desc.title, product_title: this.groupDetail.share_desc.title,
desc: this.groupDetail.share_desc.content, desc: this.groupDetail.share_desc.content,
shareIcon: this.groupDetail.share_desc.img[0].url, shareIcon: this.groupDetail.share_desc.img.length !== 0 ? this.groupDetail.share_desc.img[0].url : '',
shareUrl: URL shareUrl: URL
}); });
}, },
......
...@@ -445,7 +445,7 @@ export default { ...@@ -445,7 +445,7 @@ export default {
this.enableShare({ this.enableShare({
product_title: this.groupDetail.share_desc.title, product_title: this.groupDetail.share_desc.title,
desc: this.groupDetail.share_desc.content, desc: this.groupDetail.share_desc.content,
shareIcon: this.groupDetail.share_desc.img[0].url, shareIcon: this.groupDetail.share_desc.img.length !== 0 ? this.groupDetail.share_desc.img[0].url : '',
shareUrl: URL shareUrl: URL
}); });
}, },
......
...@@ -49,6 +49,7 @@ ...@@ -49,6 +49,7 @@
<!-- :src="showObj.video[videoIndex].url" --> <!-- :src="showObj.video[videoIndex].url" -->
<video v-show="!star" <video v-show="!star"
ref="videoDom" ref="videoDom"
x5-video-player-type="h5" x5-video-player-fullscreen="true" x-webkit-airplay="true" playsinline
:src="showObj.video[videoIndex].url" :src="showObj.video[videoIndex].url"
@ended="videoEnd" @ended="videoEnd"
@error="errorLog" @error="errorLog"
......
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