|
|
@@ -233,7 +233,14 @@ export default {
|
|
|
Practice,
|
|
|
WordPhraseDetail,
|
|
|
},
|
|
|
- inject: ['convertText'],
|
|
|
+ inject: {
|
|
|
+ bookStatus: {
|
|
|
+ default: 'online',
|
|
|
+ },
|
|
|
+ convertText: {
|
|
|
+ default: '',
|
|
|
+ },
|
|
|
+ },
|
|
|
props: [
|
|
|
'word',
|
|
|
'changeWordCard',
|
|
|
@@ -280,6 +287,9 @@ export default {
|
|
|
},
|
|
|
// 生命周期 - 创建完成(可以访问当前this实例)
|
|
|
created() {
|
|
|
+ if (this.bookStatus() === 'offline') {
|
|
|
+ this.$message.warning('播放笔画动画功能只有在线教材可以支持,请使用在线教材');
|
|
|
+ }
|
|
|
let new_word_str = '';
|
|
|
for (let i = 0; i < this.word.detail.new_word.length; i++) {
|
|
|
if (/[\u4E00-\u9FA5\uF900-\uFA2D]/.test(this.word.detail.new_word[i])) {
|
|
|
@@ -585,6 +595,7 @@ export default {
|
|
|
position: absolute;
|
|
|
right: 4px;
|
|
|
bottom: 4px;
|
|
|
+ z-index: 1;
|
|
|
width: 16px;
|
|
|
cursor: pointer;
|
|
|
}
|