diff --git a/src/views/course/Courseware.vue b/src/views/course/Courseware.vue index 3b6dae88..c8bf155e 100644 --- a/src/views/course/Courseware.vue +++ b/src/views/course/Courseware.vue @@ -483,8 +483,11 @@ export default { } else if (this.form.device2 === true) { this.form.device = 2; } - //时长,秒与分钟的转化 - //if(this.form.) + // 时长,秒与分钟的转化 + if (this.form.minute) { + this.form.duration = this.form.minute * 60; + } + try { const { status,message} = await coueseFile.batchUpdate([this.form]); if (status === 200) { diff --git a/src/views/study/coursenew.vue b/src/views/study/coursenew.vue index dbfd70ea..00e99477 100644 --- a/src/views/study/coursenew.vue +++ b/src/views/study/coursenew.vue @@ -1970,16 +1970,19 @@ } .player-box { - position: relative; + position: absolute; width: 100%; max-width: 300px; margin: 20px auto; height: 187px; - background: rgba(74, 74, 74, .5); + background: rgba(74, 74, 74, .8); border-radius: 33px; text-align: center; padding: 20px; + top: 50%; box-sizing: border-box; + left: 50%; + transform: translate(-50%, -50%); .player-praise { margin-top: 25px;