Commit 7157d48e authored by IvyXia123's avatar IvyXia123

video 全屏不能展示提交

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