|
|
@@ -55,7 +55,7 @@
|
|
|
:modal-append-to-body="true"
|
|
|
:append-to-body="true"
|
|
|
:lock-scroll="true"
|
|
|
- width="1040px"
|
|
|
+ :width="isMobile ? '100%' : '1040px'"
|
|
|
>
|
|
|
<ExercisePreview
|
|
|
:exercise_id="exercise_id"
|
|
|
@@ -171,8 +171,8 @@ export default {
|
|
|
let _this = this;
|
|
|
let options = {
|
|
|
autoplay: false, // 自动播放
|
|
|
- height: 500,
|
|
|
- width: 1000,
|
|
|
+ height: this.isMobile ? 300 : 500,
|
|
|
+ width: this.isMobile ? `${window.innerWidth - 50}px` : 1000,
|
|
|
controls: true, // 用户可以与之交互的控件
|
|
|
loop: true, // 视频一结束就重新开始
|
|
|
muted: false, // 默认情况下将使所有音频静音
|