|
|
@@ -14,13 +14,17 @@
|
|
|
: require('@/assets/icon/Cross-16-normal-red.png')
|
|
|
"
|
|
|
@click="changePraShow()"
|
|
|
+ :style="{ right: pageFrom === 'fullscreen' ? '100px' : '' }"
|
|
|
/>
|
|
|
<el-tabs type="border-card" @tab-click="handleClick">
|
|
|
<el-tab-pane label="简体" />
|
|
|
<el-tab-pane label="繁体" />
|
|
|
</el-tabs>
|
|
|
- <div class="tab-box" :class="[isPhone ? 'tab-box-phone' : '']">
|
|
|
- <div class="tab-box_0" :class="[isShow == '0' ? 'z-top' : '']">
|
|
|
+ <div
|
|
|
+ class="tab-box"
|
|
|
+ :class="[isMobile ? 'tab-box-phone' : '', pageFrom && pageFrom === 'fullscreen' ? 'tab-box-full' : '']"
|
|
|
+ >
|
|
|
+ <div class="tab-box_0" :class="[isShow == '0' ? 'z-top' : 'z-none']" v-show="isShow == '0'">
|
|
|
<div class="left-content">
|
|
|
<div
|
|
|
class="strockplay"
|
|
|
@@ -85,7 +89,13 @@
|
|
|
</div>
|
|
|
<template>
|
|
|
<div class="right-content">
|
|
|
- <div class="right-strockred">
|
|
|
+ <div
|
|
|
+ class="right-strockred"
|
|
|
+ :style="{
|
|
|
+ width: pageFrom && pageFrom === 'fullscreen' ? fullWidth + 'px' : '',
|
|
|
+ height: pageFrom && pageFrom === 'fullscreen' ? fullWidth + 'px' : '',
|
|
|
+ }"
|
|
|
+ >
|
|
|
<template v-if="navIndex == 0">
|
|
|
<Strockred
|
|
|
:Book_text="cur.stem[0].con"
|
|
|
@@ -139,7 +149,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
</div>
|
|
|
- <div class="tab-box_1" :class="[isShow == '1' ? 'z-top' : '']">
|
|
|
+ <div class="tab-box_1" :class="[isShow == '1' ? 'z-top' : 'z-none']">
|
|
|
<div class="left-content">
|
|
|
<div
|
|
|
class="strockplay"
|
|
|
@@ -192,7 +202,13 @@
|
|
|
</div>
|
|
|
<template>
|
|
|
<div class="right-content">
|
|
|
- <div class="right-strockred">
|
|
|
+ <div
|
|
|
+ class="right-strockred"
|
|
|
+ :style="{
|
|
|
+ width: pageFrom && pageFrom === 'fullscreen' ? fullWidth + 'px' : '',
|
|
|
+ height: pageFrom && pageFrom === 'fullscreen' ? fullWidth + 'px' : '',
|
|
|
+ }"
|
|
|
+ >
|
|
|
<template v-if="navIndex == 0">
|
|
|
<Strockred
|
|
|
:Book_text="cur.stem[0].TChinese"
|
|
|
@@ -277,6 +293,8 @@ export default {
|
|
|
'bg',
|
|
|
'ed',
|
|
|
'attrib',
|
|
|
+ 'isMobile',
|
|
|
+ 'pageFrom',
|
|
|
],
|
|
|
data() {
|
|
|
return {
|
|
|
@@ -291,21 +309,29 @@ export default {
|
|
|
hanziweight: '',
|
|
|
isShow: 0,
|
|
|
collFlag: false,
|
|
|
- isPhone: false,
|
|
|
+ fullWidth: 0, // 手机全屏模式下临摹宽度
|
|
|
+ isRealFull: false,
|
|
|
};
|
|
|
},
|
|
|
computed: {},
|
|
|
watch: {},
|
|
|
// 生命周期 - 创建完成(可以访问当前this实例)
|
|
|
created() {
|
|
|
- // console.log(this.cur);
|
|
|
let _this = this;
|
|
|
let color = _this.colorsList[_this.colorIndex];
|
|
|
_this.hanzicolor = color;
|
|
|
_this.hanziweight = 6;
|
|
|
// _this.checkCollStatus();
|
|
|
- const regExp = /Android|webOS|iPhone|BlackBerry|IEMobile|Opera Mini/i;
|
|
|
- this.isPhone = regExp.test(navigator.userAgent);
|
|
|
+ if (this.pageFrom && this.pageFrom === 'fullscreen') {
|
|
|
+ this.fullWidth = window.innerWidth - 160;
|
|
|
+ this.isRealFull = true;
|
|
|
+ this.$forceUpdate();
|
|
|
+ } else if (window.innerWidth > window.innerHeight) {
|
|
|
+ this.pageFrom = 'fullscreen';
|
|
|
+ this.fullWidth = window.innerHeight - 160;
|
|
|
+ this.isRealFull = false;
|
|
|
+ this.$forceUpdate();
|
|
|
+ }
|
|
|
},
|
|
|
// 生命周期 - 挂载完成(可以访问DOM元素)
|
|
|
mounted() {
|
|
|
@@ -773,7 +799,8 @@ export default {
|
|
|
}
|
|
|
|
|
|
&-phone {
|
|
|
- height: 460px;
|
|
|
+ height: 480px;
|
|
|
+ background: none;
|
|
|
|
|
|
> div {
|
|
|
display: block;
|
|
|
@@ -797,25 +824,61 @@ export default {
|
|
|
|
|
|
.right-content {
|
|
|
width: 290px;
|
|
|
- height: 290px;
|
|
|
+ height: 360px;
|
|
|
padding: 4px 16px;
|
|
|
margin: 10px auto 0;
|
|
|
|
|
|
.right-strockred {
|
|
|
- width: 200px;
|
|
|
- height: 200px;
|
|
|
+ width: 256px;
|
|
|
+ height: 256px;
|
|
|
|
|
|
:deep .character-target-div {
|
|
|
- height: 180px;
|
|
|
+ height: 100%;
|
|
|
}
|
|
|
|
|
|
:deep .strockred {
|
|
|
- height: 180px;
|
|
|
+ height: 100%;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ &-full {
|
|
|
+ .left-content {
|
|
|
+ display: block;
|
|
|
+ width: 100px !important;
|
|
|
+
|
|
|
+ .left-content-pra {
|
|
|
+ width: 84px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .footer {
|
|
|
+ width: 84px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .z-top {
|
|
|
+ display: flex;
|
|
|
+ }
|
|
|
+
|
|
|
+ .z-none {
|
|
|
+ z-index: -1;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+::deep .tab-box-full.tab-box-phone .freewrite .strockred .character-target-div {
|
|
|
+ height: 100% !important;
|
|
|
+}
|
|
|
+
|
|
|
+::deep .tab-box-full.tab-box-phone .freewrite .strockred {
|
|
|
+ height: 100% !important;
|
|
|
+}
|
|
|
+
|
|
|
+::deep .tab-box-full.tab-box-phone .freewrite .strockred .character-target-div .vueEsign {
|
|
|
+ width: 100% !important;
|
|
|
+ height: 100% !important;
|
|
|
}
|
|
|
|
|
|
.NPC-Big-Book-preview-green {
|
|
|
@@ -853,10 +916,11 @@ export default {
|
|
|
<style lang="scss">
|
|
|
.tab-box-phone {
|
|
|
.freewrite .strockred {
|
|
|
- height: 200px;
|
|
|
+ width: 256px;
|
|
|
+ height: 256px;
|
|
|
|
|
|
.character-target-div {
|
|
|
- height: 200px;
|
|
|
+ height: 256px !important;
|
|
|
}
|
|
|
}
|
|
|
}
|