|
@@ -120,11 +120,11 @@ const curPercentage = computed(() => {
|
|
|
<div class="title">
|
|
|
<span
|
|
|
:style="{ color: curIndex == 1 ? 'rgba(71, 71, 71, 0.15)' : '' }"
|
|
|
- @click="curIndex == 0? openVideoBox():''"
|
|
|
+ @click="curIndex == 0 ? openVideoBox() : ''"
|
|
|
>双钩</span>
|
|
|
<span
|
|
|
:style="{ color: curIndex == 0 ? 'rgba(71, 71, 71, 0.15)' : '' }"
|
|
|
- @click="curIndex == 1? openVideoBox():''"
|
|
|
+ @click="curIndex == 1 ? openVideoBox() : ''"
|
|
|
>设色</span>
|
|
|
<!-- <img
|
|
|
src="@/assets/images/icon_video.png"
|
|
@@ -135,11 +135,9 @@ const curPercentage = computed(() => {
|
|
|
<div
|
|
|
v-show="curIndex == 0"
|
|
|
class="operation-video-tip"
|
|
|
- style="top:-55%;right: -50%"
|
|
|
+ style="top: -55%; right: -50%"
|
|
|
>
|
|
|
- <div>
|
|
|
- 点击查看
|
|
|
- </div>
|
|
|
+ <div>点击查看</div>
|
|
|
<img
|
|
|
class=""
|
|
|
:src="require(`@/assets/images/icon-click-tip-green.png`)"
|
|
@@ -150,7 +148,7 @@ const curPercentage = computed(() => {
|
|
|
<div
|
|
|
v-show="curIndex == 1"
|
|
|
class="operation-video-tip"
|
|
|
- style="bottom:-55%;right: -50%;"
|
|
|
+ style="bottom: -55%; right: -50%"
|
|
|
>
|
|
|
<img
|
|
|
class=""
|
|
@@ -158,9 +156,7 @@ const curPercentage = computed(() => {
|
|
|
alt=""
|
|
|
draggable="false"
|
|
|
>
|
|
|
- <div>
|
|
|
- 点击查看
|
|
|
- </div>
|
|
|
+ <div>点击查看</div>
|
|
|
</div>
|
|
|
<!-- <img
|
|
|
class=""
|
|
@@ -182,48 +178,6 @@ const curPercentage = computed(() => {
|
|
|
/>
|
|
|
</div>
|
|
|
|
|
|
- <!-- 视频box -->
|
|
|
- <div
|
|
|
- v-if="isShowVideoBox"
|
|
|
- class="video-box"
|
|
|
- >
|
|
|
- <img
|
|
|
- v-show="curIndex == 1"
|
|
|
- class="bg-img"
|
|
|
- src="@/assets/images/img_shese.jpg"
|
|
|
- alt=""
|
|
|
- >
|
|
|
- <img
|
|
|
- v-show="curIndex == 0"
|
|
|
- class="bg-img"
|
|
|
- src="@/assets/images/img_shuanggou.jpg"
|
|
|
- alt=""
|
|
|
- >
|
|
|
- <OperationTip
|
|
|
- class="operation-h-video"
|
|
|
- text="向左划动"
|
|
|
- direction="h"
|
|
|
- :is-show="isShowOperationTip2"
|
|
|
- />
|
|
|
- <video
|
|
|
- playsinline
|
|
|
- webkit-playsinline="true"
|
|
|
- x5-video-player-type="h5"
|
|
|
- :poster="`${$env.BASE_URL}configMultiMedia/video/${
|
|
|
- curIndex == 0 ? 'shuanggou' : 'shese'
|
|
|
- }.png`"
|
|
|
- :src="`${$env.BASE_URL}configMultiMedia/video/${
|
|
|
- curIndex == 0 ? 'shuanggou' : 'shese'
|
|
|
- }.mp4`"
|
|
|
- controls
|
|
|
- />
|
|
|
- <div>{{ curIndex == 0 ? "双钩" : "设色" }}</div>
|
|
|
- <BtnBack
|
|
|
- class="video-box-close"
|
|
|
- @click="closeVieoBox"
|
|
|
- />
|
|
|
- </div>
|
|
|
-
|
|
|
<!-- <img
|
|
|
class="text"
|
|
|
src="@/assets/images/shuanggou-text.png"
|
|
@@ -285,6 +239,48 @@ const curPercentage = computed(() => {
|
|
|
/> -->
|
|
|
</div>
|
|
|
</div>
|
|
|
+
|
|
|
+ <!-- 视频box -->
|
|
|
+ <div
|
|
|
+ v-if="isShowVideoBox"
|
|
|
+ class="video-box"
|
|
|
+ >
|
|
|
+ <img
|
|
|
+ v-show="curIndex == 1"
|
|
|
+ class="bg-img"
|
|
|
+ src="@/assets/images/img_shese.jpg"
|
|
|
+ alt=""
|
|
|
+ >
|
|
|
+ <img
|
|
|
+ v-show="curIndex == 0"
|
|
|
+ class="bg-img"
|
|
|
+ src="@/assets/images/img_shuanggou.jpg"
|
|
|
+ alt=""
|
|
|
+ >
|
|
|
+ <!-- <OperationTip
|
|
|
+ class="operation-h-video"
|
|
|
+ text="向左划动"
|
|
|
+ direction="h"
|
|
|
+ :is-show="isShowOperationTip2"
|
|
|
+ /> -->
|
|
|
+ <video
|
|
|
+ playsinline
|
|
|
+ webkit-playsinline="true"
|
|
|
+ x5-video-player-type="h5"
|
|
|
+ :poster="`${$env.BASE_URL}configMultiMedia/video/${
|
|
|
+ curIndex == 0 ? 'shuanggou' : 'shese'
|
|
|
+ }.png`"
|
|
|
+ :src="`${$env.BASE_URL}configMultiMedia/video/${
|
|
|
+ curIndex == 0 ? 'shuanggou' : 'shese'
|
|
|
+ }.mp4`"
|
|
|
+ controls
|
|
|
+ />
|
|
|
+ <div>{{ curIndex == 0 ? "双钩" : "设色" }}</div>
|
|
|
+ <BtnBack
|
|
|
+ class="video-box-close"
|
|
|
+ @click="closeVieoBox"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
</template>
|
|
|
|
|
|
<style lang="less" scoped>
|
|
@@ -339,10 +335,10 @@ const curPercentage = computed(() => {
|
|
|
// left: 9px;
|
|
|
font-weight: 400;
|
|
|
font-family: KaiTi;
|
|
|
- color: #7B916B;
|
|
|
+ color: #7b916b;
|
|
|
text-align: center;
|
|
|
font-size: 18px;
|
|
|
- writing-mode:vertical-rl;
|
|
|
+ writing-mode: vertical-rl;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -377,59 +373,6 @@ const curPercentage = computed(() => {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- .video-box {
|
|
|
- width: 100%;
|
|
|
- height: 100%;
|
|
|
- position: absolute;
|
|
|
- top: 0;
|
|
|
- left: 0;
|
|
|
- z-index: 10;
|
|
|
- .operation-h-video {
|
|
|
- position: fixed;
|
|
|
- left: 50%;
|
|
|
- transform: translateX(-50%);
|
|
|
- top: -34vh;
|
|
|
- z-index: 21;
|
|
|
- }
|
|
|
- .video-box-close {
|
|
|
- position: absolute;
|
|
|
- bottom: calc(
|
|
|
- 15 / v-bind(windowSizeWhenDesignForRef) * v-bind(windowSizeInCssForRef)
|
|
|
- );
|
|
|
- left: 25px;
|
|
|
- }
|
|
|
- > .bg-img {
|
|
|
- width: 100%;
|
|
|
- height: 100%;
|
|
|
- object-fit: cover;
|
|
|
- position: absolute;
|
|
|
- top: 0;
|
|
|
- left: 0;
|
|
|
- }
|
|
|
- > video {
|
|
|
- width: 100%;
|
|
|
- position: absolute;
|
|
|
- top: 50%;
|
|
|
- transform: translateY(-50%);
|
|
|
- }
|
|
|
- > div {
|
|
|
- color: #ffffff;
|
|
|
- position: absolute;
|
|
|
- bottom: 10%;
|
|
|
- font-size: calc(
|
|
|
- 24 / v-bind("windowSizeWhenDesignForRef") *
|
|
|
- v-bind("windowSizeInCssForRef")
|
|
|
- );
|
|
|
- line-height: calc(
|
|
|
- 29 / v-bind("windowSizeWhenDesignForRef") *
|
|
|
- v-bind("windowSizeInCssForRef")
|
|
|
- );
|
|
|
- font-family: "KingHwa_OldSong";
|
|
|
- left: 50%;
|
|
|
- transform: translateX(-50%);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
.text {
|
|
|
display: flex;
|
|
|
position: absolute;
|
|
@@ -499,6 +442,60 @@ const curPercentage = computed(() => {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+.video-box {
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ position: absolute;
|
|
|
+ top: 0;
|
|
|
+ left: 0;
|
|
|
+ z-index: 10;
|
|
|
+ .operation-h-video {
|
|
|
+ position: fixed;
|
|
|
+ left: 50%;
|
|
|
+ transform: translateX(-50%);
|
|
|
+ top: -34vh;
|
|
|
+ z-index: 21;
|
|
|
+ }
|
|
|
+ .video-box-close {
|
|
|
+ position: absolute;
|
|
|
+ left: calc(
|
|
|
+ 30 / v-bind("windowSizeWhenDesignForRef") *
|
|
|
+ v-bind("windowSizeInCssForRef")
|
|
|
+ );
|
|
|
+ bottom: calc(
|
|
|
+ 20 / v-bind("windowSizeWhenDesignForRef") *
|
|
|
+ v-bind("windowSizeInCssForRef")
|
|
|
+ );
|
|
|
+ }
|
|
|
+ > .bg-img {
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ object-fit: cover;
|
|
|
+ position: absolute;
|
|
|
+ top: 0;
|
|
|
+ left: 0;
|
|
|
+ }
|
|
|
+ > video {
|
|
|
+ width: 100%;
|
|
|
+ position: absolute;
|
|
|
+ top: 50%;
|
|
|
+ transform: translateY(-50%);
|
|
|
+ }
|
|
|
+ > div {
|
|
|
+ color: #ffffff;
|
|
|
+ position: absolute;
|
|
|
+ bottom: 10%;
|
|
|
+ font-size: calc(
|
|
|
+ 24 / v-bind("windowSizeWhenDesignForRef") *
|
|
|
+ v-bind("windowSizeInCssForRef")
|
|
|
+ );
|
|
|
+ line-height: calc(
|
|
|
+ 29 / v-bind("windowSizeWhenDesignForRef") *
|
|
|
+ v-bind("windowSizeInCssForRef")
|
|
|
+ );
|
|
|
+ font-family: "KingHwa_OldSong";
|
|
|
+ left: 50%;
|
|
|
+ transform: translateX(-50%);
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|
|
|
-import { transform } from 'lodash';import { transform } from 'lodash';import {
|
|
|
-translate } from "element-plus";
|