Commit 1b3102ec by 李伟康

修改样式

1 parent 1ea83d15
...@@ -235,7 +235,6 @@ ...@@ -235,7 +235,6 @@
.activity { .activity {
padding: 0 16px; padding: 0 16px;
margin-top: 10px;
.address-box { .address-box {
font-size: 12px; font-size: 12px;
...@@ -279,7 +278,6 @@ ...@@ -279,7 +278,6 @@
font-weight: 600; font-weight: 600;
color: #3C3939; color: #3C3939;
position: relative; position: relative;
margin-bottom: 14px;
justify-content: space-between; justify-content: space-between;
span { span {
...@@ -299,6 +297,7 @@ ...@@ -299,6 +297,7 @@
.group-swipe { .group-swipe {
height: 216px; height: 216px;
width: 100%; width: 100%;
margin-top: 14px;
} }
.group-box { .group-box {
...@@ -325,52 +324,167 @@ ...@@ -325,52 +324,167 @@
} }
} }
.progress-bar { .progress-box {
margin: 24px 16px 8px; background: #FFFFFF linear-gradient(360deg, #FFFFFF 0%, #FFF7F7 100%);
position: relative; border-radius: 4px;
border: 1px solid #FFFFFF;
box-sizing: border-box;
.progress-title {
color: #3C3939;
font-weight: 500;
font-size: 16px;
}
.progress-bar {
margin: 32px 0 9px;
position: relative;
.progress {
width: 100%;
height: 18px;
border-radius: 9px;
overflow: hidden;
background: linear-gradient(360deg, #FF4444 0%, #FD6C6C 100%);
box-shadow: inset 0px 2px 3px 0px rgba(255, 255, 255, 0.5);
position: relative;
.line {
height: 100%;
background: linear-gradient(360deg, #FFAA48 0%, #FFF454 100%);
box-shadow: 0px 1px 4px 0px #A90303, inset 0px 2px 3px 0px rgba(255, 255, 255, 0.5), inset 0px -1px 3px 0px #FE9D24;
border-radius: 9px;
transition: all 3s;
position: relative;
overflow: hidden;
.stripe {
position: absolute;
width: 1000%;
height: 100%;
left: 0;
top: 0;
animation: rolling 10s linear infinite;
&::after,
&::before {
display: block;
content: '';
width: 100%;
height: 100%;
border-radius: 9px;
transition: all 3s;
background: url('https://img02.glsx.com.cn/weapp/resource/scrm-mobile/crowdfunding/line.png') repeat;
background-size: 28px 18px;
}
&::after {
transform: translateX(-18px);
width: calc(100% + 18px);
}
}
.progress {
width: 100%;
height: 18px;
border-radius: 9px;
background: #FFE9E4;
overflow: hidden;
.line { }
min-width: 40px;
height: 100%; @keyframes rolling {
background: linear-gradient(270deg, #FF8802 0%, #FC5B32 100%); 0% {
transition: all .25s; transform: translateY(0);
}
25% {
transform: translateY(-9px);
}
50% {
transform: translateY(-18px);
}
75% {
transform: translateY(-9px);
}
100% {
transform: translateY(0);
}
}
}
.bar {
position: absolute;
width: auto;
height: 22px;
top: -30px;
font-size: 14px; font-size: 14px;
padding: 0 4px;
font-weight: 600; font-weight: 600;
color: #FFFFFF; border-radius: 2px;
justify-content: flex-end; background: linear-gradient(360deg, #FFAA48 0%, #FFF454 100%);
box-shadow: inset 0px -1px 3px 0px #FE9D24, inset 0px 2px 3px 0px rgba(255, 255, 255, 0.5), inset 0px 1px 3px 0px rgba(255, 255, 255, 0.5);
color: #F13C3D;
transform: translateX(-50%);
transition: all 3s;
box-sizing: border-box; box-sizing: border-box;
border-radius: 7px;
}
.line-padding { .number {
padding-right: 14px; margin-left: 4px;
}
.arrow {
position: absolute;
border-top: 5px solid #FFAA48;
border-left: 5.5px solid transparent;
border-right: 5.5px solid transparent;
border-bottom: 5px solid transparent;
bottom: -10px;
left: 50%;
transform: translateX(-50%);
}
.right{
left: 80%;
}
} }
} }
}
.bar { .group-info {
justify-content: space-between;
font-size: 14px;
font-weight: 500;
color: #FC5B32;
position: relative;
&::before,
&::after {
position: absolute; position: absolute;
width: 1px;
height: 34px;
background: #E3E3E6;
content: '';
top: 50%; top: 50%;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
} }
}
.group-info { &::before {
padding: 0 16px; left: 92px;
justify-content: space-between; }
font-size: 12px;
font-weight: 500; &::after {
color: #3C3939; left: 234px;
}
.item { .item {
color: #FC5B32; .label {
font-size: 12px;
font-weight: 400;
color: #999999;
}
div {
margin-bottom: 3px;
}
} }
} }
} }
...@@ -382,7 +496,12 @@ ...@@ -382,7 +496,12 @@
} }
.tips { .tips {
padding-top: 30px; padding-top: 47px;
font-size: 12px; font-size: 12px;
img {
width: 143px;
height: 21px;
}
} }
} }
\ No newline at end of file \ No newline at end of file
.sprite-icon { background-image: url(../images/sprite.png);background-size: 453px 385px;} .sprite-icon { background-image: url(../images/sprite.png);background-size: 453px 364px;}
.icon-address { width: 34px; height: 34px; background-position: -310px -232px;} .icon-address { width: 34px; height: 34px; background-position: -310px -232px;}
.icon-big-play { width: 40px; height: 40px; background-position: -376px -152px;} .icon-big-play { width: 40px; height: 40px; background-position: -376px -152px;}
.icon-close { width: 24px; height: 24px; background-position: -426px -152px;} .icon-close { width: 24px; height: 24px; background-position: -426px -152px;}
.icon-download { width: 30px; height: 30px; background-position: -310px -276px;} .icon-download { width: 30px; height: 30px; background-position: -310px -276px;}
.icon-flash { width: 24px; height: 24px; background-position: -390px -316px;} .icon-flash { width: 10px; height: 14px; background-position: -420px -316px;}
.icon-hot { width: 15px; height: 18px; background-position: -436px -202px;} .icon-hot { width: 15px; height: 18px; background-position: -436px -202px;}
.icon-kf-box { width: 300px; height: 350px; background-position: 0px 0px;} .icon-kf-box { width: 300px; height: 350px; background-position: 0px 0px;}
.icon-kf-logo { width: 56px; height: 70px; background-position: -310px -152px;} .icon-kf-logo { width: 56px; height: 70px; background-position: -310px -152px;}
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
.icon-poster { width: 20px; height: 20px; background-position: -430px -276px;} .icon-poster { width: 20px; height: 20px; background-position: -430px -276px;}
.icon-qr { width: 143px; height: 142px; background-position: -310px 0px;} .icon-qr { width: 143px; height: 142px; background-position: -310px 0px;}
.icon-scan { width: 30px; height: 30px; background-position: -310px -316px;} .icon-scan { width: 30px; height: 30px; background-position: -310px -316px;}
.icon-success { width: 20px; height: 20px; background-position: -424px -316px;} .icon-success { width: 20px; height: 20px; background-position: -390px -316px;}
.icon-time { width: 12px; height: 11px; background-position: 0px -374px;} .icon-time { width: 12px; height: 11px; background-position: -440px -316px;}
.icon-title { width: 170px; height: 4px; background-position: 0px -360px;} .icon-title { width: 170px; height: 4px; background-position: 0px -360px;}
.icon-top { width: 30px; height: 30px; background-position: -350px -316px;} .icon-top { width: 30px; height: 30px; background-position: -350px -316px;}
\ No newline at end of file \ No newline at end of file

100 KB | W: | H:

97.9 KB | W: | H:

src/assets/images/sprite.png
src/assets/images/sprite.png
src/assets/images/sprite.png
src/assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin

2.07 KB | W: | H:

641 Bytes | W: | H:

src/assets/spritesmith/flash.png
src/assets/spritesmith/flash.png
src/assets/spritesmith/flash.png
src/assets/spritesmith/flash.png
  • 2-up
  • Swipe
  • Onion skin
<template> <template>
<div> <div class="count-down">
<template v-if="timeFlag"> <div class="bg">
<div class="title"> <img src="https://img02.glsx.com.cn/weapp/resource/scrm-mobile/crowdfunding/timer-bg.png">
{{detail.activityStatus == 1 ?'距离活动开始':'活动倒计时'}} </div>
<div class="sprite-icon icon-title xy-center"></div> <div :class="['timer-title',{'timer-not-started':detail.activityStatus == 1}]">
</div> <img :src="`https://img02.glsx.com.cn/weapp/resource/scrm-mobile/crowdfunding/timer-${detail.activityStatus == 1?1:2}.png`">
<div :class="['time-box flex',{'not-started':detail.activityStatus == 1},{'finished':finished}]"> </div>
<div :class="['time-box flex',{'not-started':detail.activityStatus == 1},{'finished':finished}]">
<template v-if="timeFlag">
<template v-if="finished">{{finished}}</template> <template v-if="finished">{{finished}}</template>
<template v-else> <template v-else>
<template v-if="detail.activityStatus == 1"> <template v-if="detail.activityStatus == 1">
...@@ -27,8 +29,8 @@ ...@@ -27,8 +29,8 @@
</div> </div>
</template> </template>
</template> </template>
</div> </template>
</template> </div>
</div> </div>
</template> </template>
...@@ -123,54 +125,83 @@ export default { ...@@ -123,54 +125,83 @@ export default {
<style scoped lang='scss'> <style scoped lang='scss'>
@import '@/assets/css/crowdfunding.scss'; @import '@/assets/css/crowdfunding.scss';
.count-down {
position: relative;
.bg {
position: absolute;
width: calc(100% + 32px);
left: -16px;
top: 0;
z-index: -1;
img {
width: 375px;
height: 200px;
}
}
}
.timer-title {
padding-top: 14px;
height: 19px;
img {
width: 105px;
}
}
.timer-not-started {
img {
width: 128px;
}
}
.time-box { .time-box {
height: 66px; height: 56px;
background: #fff5f3;
border-radius: 4px; border-radius: 4px;
margin: 14px 0; margin: 11.5px 0;
justify-content: center; justify-content: center;
.time { .time {
span { span {
width: 30px; width: 34px;
height: 32px; height: 32px;
background: #fa2c18; background: #fff;
border-radius: 3px; border-radius: 4px;
font-size: 18px; font-size: 20px;
color: #fa2c18;
font-weight: 600; font-weight: 600;
color: #ffffff;
} }
.unit { .unit {
font-weight: 500; font-weight: 500;
font-size: 18px; font-size: 20px;
color: #fa2c18; color: #fff;
margin: 0 5px 0 3px; margin: 0 5px 0 3px;
} }
} }
} }
.not-started { .not-started {
font-size: 12px; font-size: 14px;
font-weight: 600; font-weight: 600;
color: #333333; color: #fff;
border: 1px dashed #e3e3e3; border: 1px dashed #fff;
background: #fff; box-sizing: border-box;
.time { .time {
color: #333333; margin-left: 2px;
span { span {
background: #fff5f3; width: 26px;
color: #f13c3d; height: 26px;
font-size: 14px; background: #ae0404;
box-shadow: inset 1px 1px 2px 0px rgba(111, 0, 0, 0.5);
border-radius: 3px;
color: #fff;
font-size: 18px;
} }
.unit { .unit {
font-size: 12px; font-size: 14px;
color: #333333;
} }
} }
} }
.finished { .finished {
background: #f0f0f0; font-size: 20px;
font-size: 18px;
font-weight: 600; font-weight: 600;
color: #999999; color: #fff;
border: 1px dashed #ffffff;
box-sizing: border-box;
} }
</style> </style>
\ No newline at end of file \ No newline at end of file
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div :class="['live-box',{'videoFullscreen':videoFullscreen}]"> <div :class="['live-box',{'videoFullscreen':videoFullscreen}]">
<div <div
class="mask" class="mask"
@click="videoFullscreen = true" @click="openFullscreen"
> >
<div class="status flex"></div> <div class="status flex"></div>
</div> </div>
...@@ -63,15 +63,19 @@ export default { ...@@ -63,15 +63,19 @@ export default {
fullscreenToggle: false, fullscreenToggle: false,
} }
}) })
_this.player.volume(0)
_this.player.src('http://play.glsx.com.cn/live/live.m3u8') _this.player.src('http://play.glsx.com.cn/live/live.m3u8')
// _this.player.play() _this.player.play()
} }
}) })
}) })
}, },
methods: { methods: {
openFullscreen () {
this.player.volume(1)
this.videoFullscreen = true
}
} }
} }
</script> </script>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!