提交 be47781e 编写于 作者: guofeng.chen's avatar guofeng.chen

修复两层遮罩

上级 1b2be7ea
...@@ -56,11 +56,11 @@ ...@@ -56,11 +56,11 @@
</div> </div>
<!-- 播放遮罩 --> <!-- 播放遮罩 -->
<transition name="fade"> <transition name="fade">
<div v-show="isPaused" class="cover cover-play" @click="togglePlay"></div> <div v-show="logged && isPaused" class="cover cover-play" @click="togglePlay"></div>
</transition> </transition>
<!-- 播放错误 --> <!-- 播放错误 -->
<transition name="fade"> <transition name="fade">
<div v-show="showError" class="cover cover-error"> <div v-show="logged && showError" class="cover cover-error">
<p>播放失败,请确认网络正常或重新进入页面</p> <p>播放失败,请确认网络正常或重新进入页面</p>
</div> </div>
</transition> </transition>
...@@ -144,7 +144,7 @@ export default { ...@@ -144,7 +144,7 @@ export default {
created() { created() {
this.vid = `video_${this._uid}`; this.vid = `video_${this._uid}`;
const ua = navigator.userAgent; const ua = navigator.userAgent;
this.isWechat = ua.match(/(MicroMessenger)\/([\d.]+)/); // this.isWechat = ua.match(/(MicroMessenger)\/([\d.]+)/);
this.isAndroid = ua.match(/(Android);?[\s\/]+([\d.]+)?/); this.isAndroid = ua.match(/(Android);?[\s\/]+([\d.]+)?/);
}, },
mounted() { mounted() {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册