Commit a5fb7d8d authored by verestrasz's avatar verestrasz

新分享

parent 4f9dce92
This diff is collapsed.
...@@ -55,8 +55,11 @@ export default { ...@@ -55,8 +55,11 @@ export default {
}, },
}, },
methods:{ methods:{
async getPoster(){ getPoster(){
this.poster=await this.getVideoBase64(this.item.video,'100%','100%') this.poster=""
this.getVideoBase64(this.item.video,'100vw','100vh').then(res=>{
this.poster=res
})
}, },
play(){ play(){
this.isPlay=true this.isPlay=true
......
...@@ -143,7 +143,7 @@ export default { ...@@ -143,7 +143,7 @@ export default {
}, },
}); });
}, },
async initData(res) { initData(res) {
let goodsVo = {}; let goodsVo = {};
if (this.goodsTypeMap.PRE_SALE) { if (this.goodsTypeMap.PRE_SALE) {
goodsVo = res.goodsVo; goodsVo = res.goodsVo;
...@@ -188,12 +188,10 @@ export default { ...@@ -188,12 +188,10 @@ export default {
}; };
}); });
if (video && video.length !== 0) { if (video && video.length !== 0) {
let Poster="" let Poster=""
try { this.getVideoBase64(video,158,211).then(res=>{
Poster=await this.getVideoBase64(video,158,211) Poster=res
} catch (err) { })
console.log(11)
}
swiperList.splice(0, 0, { swiperList.splice(0, 0, {
type: "video", type: "video",
url: Poster, url: Poster,
......
...@@ -268,7 +268,7 @@ export default { ...@@ -268,7 +268,7 @@ export default {
}, },
}); });
}, },
async initData(res) { initData(res) {
let goodsVo = {}; let goodsVo = {};
if (this.goodsTypeMap.PRE_SALE) { if (this.goodsTypeMap.PRE_SALE) {
goodsVo = res.goodsVo; goodsVo = res.goodsVo;
...@@ -322,11 +322,9 @@ export default { ...@@ -322,11 +322,9 @@ export default {
if (video && video.length !== 0) { if (video && video.length !== 0) {
let Poster="" let Poster=""
try { this.getVideoBase64(video,158,211).then(res=>{
Poster=await this.getVideoBase64(video,158,211) Poster=res
} catch (err) { })
console.log(11)
}
swiperList.splice(0, 0, { swiperList.splice(0, 0, {
type: "video", type: "video",
url: Poster, url: Poster,
......
...@@ -65,8 +65,8 @@ module.exports = { ...@@ -65,8 +65,8 @@ module.exports = {
// target: 'http://172.22.20.64:8100/root' // target: 'http://172.22.20.64:8100/root'
// target: 'http://172.22.17.176:12008' // target: 'http://172.22.17.176:12008'
// target: 'http://172.22.17.108:9089' // target: 'http://172.22.17.108:9089'
// target: 'https://mall.inmvo.com/root' target: 'https://mall.inmvo.com/root'
target: 'https://testym.8n.cn/root' // target: 'https://testym.8n.cn/root'
}, },
'/chat': { '/chat': {
pathRewrite: { pathRewrite: {
......
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