Browse Source

演练成功动画样式优化

h5_css
蟑螂恶霸 3 years ago
parent
commit
09d25e0a1f
  1. 65
      components/s-video/res-s-video.vue
  2. 39
      components/s-video/s-video.vue
  3. 11
      subpkg/complete/complete.vue

65
components/s-video/res-s-video.vue

@ -1,7 +1,9 @@
<template>
<view class="video-wrapper" id="video-container">
<view style="position:relative;width:100%;" :style="{'height':videoHeight+'px'}">
<video id="video_play" :controls="false" :src="videoObj.videoUrl" @ended="videoEnded()" @loadedmetadata="onMetadataLoaded" :autoplay="auto" :show-fullscreen-btn="false" :loop="isLoop" style="width: 100%;height: 100%;" object-fit="cover"></video>
<video id="video_play" :controls="false" :src="videoObj.videoUrl" @ended="videoEnded()"
@loadedmetadata="onMetadataLoaded" :autoplay="auto" :show-fullscreen-btn="false" :loop="isLoop"
style="width: 100%;height: 100%;" object-fit="cover"></video>
<view class="question"></view>
<view class="popup-layer-back" v-if="!start" v-show="question">
<!-- <view class="popup-layer-close" @click="question=false">关闭</view> -->
@ -11,12 +13,17 @@
<image class="animg1" src="/static/videos/skin_bg_v1.png"></image>
<view class="antxt1">{{ask}}</view>
</view>
<view class="anitem" @click="nextQuestion(item.outs[0], item)" v-for="(item, index) in answerList" :key="index">
<view class="anitem" @click="nextQuestion(item.outs[0], item)" v-for="(item, index) in answerList"
:key="index">
<image class="animg" src="/static/videos/skin_bg_1a.png"></image>
<!-- <view class="antxt">{{item.channel}}</view> -->
<view :class="autoChannel===item.channel?'antxtCheck':'antxt'">{{item.channel}}</view>
<view class="judd jdok" v-show="isOk && item.choose === 'true'"><image class="judimg" src="/static/images/icon-ok.png"></image></view>
<view class="judd jderr" v-show="isError && item.choose === 'false'"><image class="judimg" src="/static/images/icon-err.png"></image></view>
<view class="judd jdok" v-show="isOk && item.choose === 'true'">
<image class="judimg" src="/static/images/icon-ok.png"></image>
</view>
<view class="judd jderr" v-show="isError && item.choose === 'false'">
<image class="judimg" src="/static/images/icon-err.png"></image>
</view>
</view>
</view>
</view>
@ -47,7 +54,10 @@
</template>
<script>
import { mapMutations, mapState } from 'vuex'
import {
mapMutations,
mapState
} from 'vuex'
export default {
name: "s-video",
data() {
@ -321,9 +331,13 @@
height: 100%;
background-color: rgba(0, 0, 0, .35);
}
.animg {
position: absolute;
top:0;left:0;right:0;bottom:0;
top: 0;
left: 0;
right: 0;
bottom: 0;
margin: auto;
width: 100px;
height: 100px;
@ -351,9 +365,12 @@
}
.popup-layer .anitem1 {
display: flex;
align-items: center;
justify-content: center;
position: relative;
width: 650rpx;
height: 200rpx;
width: 100vw;
height: 240rpx;
}
.popup-layer .anitem1 .animg1 {
@ -362,37 +379,45 @@
}
.popup-layer .anitem1 .antxt1 {
display: flex;
align-items: center;
justify-content: center;
position: absolute;
top: 45%;
left: 10%;
width: 100%;
font-size: 1.2rem;
left: 6%;
width: 90%;
font-size: 1.1rem;
}
.popup-layer .anitem {
display: flex;
align-items: center;
justify-content: center;
position: relative;
margin: 80rpx;
width: 600rpx;
height: 100rpx;
text-align: center;
margin: 20rpx auto;
width: 100vw;
height: 180rpx;
}
.popup-layer .anitem .animg {
width: 100%;
height: 160rpx;
width: 98%;
height: 100%;
}
.popup-layer .anitem .antxt {
display: flex;
align-items: center;
justify-content: center;
position: absolute;
top: 30%;
width: 100%;
margin: 10%;
width: 82%;
font-size: 1.1rem;
}
.judd {
position: absolute;
top: -20rpx;
right: -50rpx;
right: 0;
width: 100rpx;
height: 100rpx;
border-radius: 50%;

39
components/s-video/s-video.vue

@ -365,9 +365,12 @@
}
.popup-layer .anitem1 {
display: flex;
align-items: center;
justify-content: center;
position: relative;
width: 650rpx;
height: 200rpx;
width: 100vw;
height: 240rpx;
}
.popup-layer .anitem1 .animg1 {
@ -376,37 +379,45 @@
}
.popup-layer .anitem1 .antxt1 {
display: flex;
align-items: center;
justify-content: center;
position: absolute;
top: 45%;
left: 10%;
width: 100%;
left: 6%;
width: 90%;
font-size: 1.1rem;
}
.popup-layer .anitem {
display: flex;
align-items: center;
justify-content: center;
position: relative;
margin: 80rpx;
width: 600rpx;
height: 100rpx;
text-align: center;
margin: 20rpx auto;
width: 100vw;
height: 180rpx;
}
.popup-layer .anitem .animg {
width: 100%;
height: 160rpx;
width: 98%;
height: 100%;
}
.popup-layer .anitem .antxt {
display: flex;
align-items: center;
justify-content: center;
position: absolute;
top: 30%;
width: 100%;
font-size: 1.2rem;
margin: 10%;
width: 82%;
font-size: 1.1rem;
}
.judd {
position: absolute;
top: -20rpx;
right: -50rpx;
right: 0;
width: 100rpx;
height: 100rpx;
border-radius: 50%;

11
subpkg/complete/complete.vue

@ -135,7 +135,7 @@
picStyle:"z-index:-99999",
timer:null,
resCheck: true,
successUrl: uni.$http.baseUrl + "/profile//images/success-2.gif",
successUrl: uni.$http.baseUrl + "/profile/images/success-2.gif",
};
},
//分享到好友
@ -407,10 +407,10 @@
position: absolute;
top: 0;
left: 0;
z-index: 9998;
width: 100%;
height: 100%;
// background-color: rgba(0, 0, 0, 0.8);
z-index: 9998;
background-color: rgba(0, 0, 0, 0.8);
}
.failed-tip {
@ -420,6 +420,11 @@
transform: translate(-50%, -50%);
width: 560rpx;
height: 560rpx;
image {
width: 100%;
height: 100%;
}
}
.popup-layer .animg:first-child {

Loading…
Cancel
Save