修复eslint

pull/25/head
guqing 2019-06-26 22:44:25 +08:00
parent a8f2d7030e
commit 6bf343286c
2 changed files with 36 additions and 22 deletions

View File

@ -20,7 +20,9 @@
<div class="attach-detail-img">
<div v-show="nonsupportPreviewVisible"></div>
<img :src="attachment.path" v-show="photoPreviewVisible">
<video-player class="video-player-box" v-show="videoPreviewVisible"
<video-player
class="video-player-box"
v-show="videoPreviewVisible"
ref="videoPlayer"
:options="playerOptions"
:playsinline="true">
@ -179,13 +181,12 @@ export default {
fluid: true,
controls: true,
loop: false,
muted: false,
playbackRates: [0.7, 1.0, 1.5, 2.0],
sources: [{
type: "video/mp4",
src: "https://cdn.theguardian.tv/webM/2015/07/20/150716YesMen_synd_768k_vp8.webm"
type: 'video/mp4',
src: 'https://cdn.theguardian.tv/webM/2015/07/20/150716YesMen_synd_768k_vp8.webm'
}],
poster: "/static/images/author.jpg",
poster: '/static/images/author.jpg',
width: document.documentElement.clientWidth,
notSupportedMessage: '此视频暂无法播放,请稍后再试'
}
@ -321,6 +322,19 @@ export default {
}
}
}
// handleDownLoadPhoto(attachment) {
// var path = attachment.path
// var index = path.lastIndexOf('/')
// var filename = path.substr(index+1, path.length)
// // chrome/firefox
// var aTag = document.createElement('a')
// aTag.download = filename
// aTag.href = path//URL.createObjectURL(blob)
// aTag.target = '_blank'
// aTag.click()
// URL.revokeObjectURL(aTag.href)
// }
}
}
</script>