Commit 7bb7f92b authored by ziyu's avatar ziyu

Merge branch 'master' of git.quantgroup.cn:ui/mini-program-wepy into feature/raffle

parents e019393e 373350bd
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
position: absolute; position: absolute;
width: 100%; width: 100%;
height: 100%; height: 100%;
background: #000; background:rgba(0,0,0,0.7);
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
......
<style lang="less"> <style lang="less">
.container{ .container,.video-swiper{
width:100%; width:100%;
height:100% height:100%;
}
.video-swiper{
width:100%;
height:100%
} }
.video_item{ .video_item{
height:100%; height:100%;
...@@ -13,21 +9,13 @@ ...@@ -13,21 +9,13 @@
position: absolute; position: absolute;
z-index: 1; z-index: 1;
} }
.content{
position: absolute;
z-index: 9;
bottom: 405rpx;
width: 100%;
min-height:120rpx;
color: white;
clear: both;
}
.rightcont { .rightcont {
font-size: 24rpx; font-size: 24rpx;
display:inline-block; position: absolute;
float: right; z-index: 9;
bottom: 415rpx;
width:30%; width:30%;
margin-right: 30rpx; right: 30rpx;
color: #fff; color: #fff;
.info { .info {
line-height: 40rpx; line-height: 40rpx;
...@@ -73,16 +61,6 @@ ...@@ -73,16 +61,6 @@
<!-- curQueue 循环会导致video重新插入,objectFit 不可变更 --> <!-- curQueue 循环会导致video重新插入,objectFit 不可变更 -->
<swiper-item wx:for="{{curQueue}}" wx:key="index"> <swiper-item wx:for="{{curQueue}}" wx:key="index">
<view class="video-wrapper"> <view class="video-wrapper">
<cover-view class="content">
<cover-view class="rightcont">
<cover-view class="info">奖品库存: 1/8</cover-view>
<cover-view class="info">中奖概率: {{item.id}}/3000</cover-view>
<cover-view class="progress">
<cover-view class="text">{{progress}}%</cover-view>
<cover-view class="orange" style="{{progressStyle}}"></cover-view>
</cover-view>
</cover-view>
</cover-view>
<video <video
id="video_{{index}}" id="video_{{index}}"
class="video_item" class="video_item"
...@@ -101,6 +79,14 @@ ...@@ -101,6 +79,14 @@
> >
<video-pause :pause="pause"></video-pause> <video-pause :pause="pause"></video-pause>
</video> </video>
<view class="rightcont">
<view class="info">奖品库存: 1/8</view>
<view class="info">中奖概率: {{item.id}}/3000</view>
<view class="progress">
<view class="text">{{progress}}%</view>
<view class="orange" style="{{progressStyle}}"></view>
</view>
</view>
<video-loading v-if="item.time === 0"/> <video-loading v-if="item.time === 0"/>
</view> </view>
</swiper-item> </swiper-item>
...@@ -246,6 +232,11 @@ ...@@ -246,6 +232,11 @@
playCurrent(current) { playCurrent(current) {
this._videoContexts.forEach((ctx, index) => { this._videoContexts.forEach((ctx, index) => {
// console.log('playCurrent', current, index); // console.log('playCurrent', current, index);
if (index !== current) {
ctx.pause();
} else {
ctx.play();
}
}); });
}, },
trigger(e, type) { trigger(e, type) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment