Commit 1b3102ec by 李伟康

修改样式

1 parent 1ea83d15
......@@ -235,7 +235,6 @@
.activity {
padding: 0 16px;
margin-top: 10px;
.address-box {
font-size: 12px;
......@@ -279,7 +278,6 @@
font-weight: 600;
color: #3C3939;
position: relative;
margin-bottom: 14px;
justify-content: space-between;
span {
......@@ -299,6 +297,7 @@
.group-swipe {
height: 216px;
width: 100%;
margin-top: 14px;
}
.group-box {
......@@ -325,52 +324,167 @@
}
}
.progress-bar {
margin: 24px 16px 8px;
position: relative;
.progress-box {
background: #FFFFFF linear-gradient(360deg, #FFFFFF 0%, #FFF7F7 100%);
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%;
background: linear-gradient(270deg, #FF8802 0%, #FC5B32 100%);
transition: all .25s;
}
@keyframes rolling {
0% {
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;
padding: 0 4px;
font-weight: 600;
color: #FFFFFF;
justify-content: flex-end;
border-radius: 2px;
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;
border-radius: 7px;
}
.line-padding {
padding-right: 14px;
.number {
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;
width: 1px;
height: 34px;
background: #E3E3E6;
content: '';
top: 50%;
transform: translate(-50%, -50%);
}
}
.group-info {
padding: 0 16px;
justify-content: space-between;
font-size: 12px;
font-weight: 500;
color: #3C3939;
&::before {
left: 92px;
}
&::after {
left: 234px;
}
.item {
color: #FC5B32;
.label {
font-size: 12px;
font-weight: 400;
color: #999999;
}
div {
margin-bottom: 3px;
}
}
}
}
......@@ -382,7 +496,12 @@
}
.tips {
padding-top: 30px;
padding-top: 47px;
font-size: 12px;
img {
width: 143px;
height: 21px;
}
}
}
\ 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-big-play { width: 40px; height: 40px; background-position: -376px -152px;}
.icon-close { width: 24px; height: 24px; background-position: -426px -152px;}
.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-kf-box { width: 300px; height: 350px; background-position: 0px 0px;}
.icon-kf-logo { width: 56px; height: 70px; background-position: -310px -152px;}
......@@ -17,7 +17,7 @@
.icon-poster { width: 20px; height: 20px; background-position: -430px -276px;}
.icon-qr { width: 143px; height: 142px; background-position: -310px 0px;}
.icon-scan { width: 30px; height: 30px; background-position: -310px -316px;}
.icon-success { width: 20px; height: 20px; background-position: -424px -316px;}
.icon-time { width: 12px; height: 11px; background-position: 0px -374px;}
.icon-success { width: 20px; height: 20px; background-position: -390px -316px;}
.icon-time { width: 12px; height: 11px; background-position: -440px -316px;}
.icon-title { width: 170px; height: 4px; background-position: 0px -360px;}
.icon-top { width: 30px; height: 30px; background-position: -350px -316px;}
\ 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>
<div>
<template v-if="timeFlag">
<div class="title">
{{detail.activityStatus == 1 ?'距离活动开始':'活动倒计时'}}
<div class="sprite-icon icon-title xy-center"></div>
</div>
<div :class="['time-box flex',{'not-started':detail.activityStatus == 1},{'finished':finished}]">
<div class="count-down">
<div class="bg">
<img src="https://img02.glsx.com.cn/weapp/resource/scrm-mobile/crowdfunding/timer-bg.png">
</div>
<div :class="['timer-title',{'timer-not-started':detail.activityStatus == 1}]">
<img :src="`https://img02.glsx.com.cn/weapp/resource/scrm-mobile/crowdfunding/timer-${detail.activityStatus == 1?1:2}.png`">
</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-else>
<template v-if="detail.activityStatus == 1">
......@@ -27,8 +29,8 @@
</div>
</template>
</template>
</div>
</template>
</template>
</div>
</div>
</template>
......@@ -123,54 +125,83 @@ export default {
<style scoped lang='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 {
height: 66px;
background: #fff5f3;
height: 56px;
border-radius: 4px;
margin: 14px 0;
margin: 11.5px 0;
justify-content: center;
.time {
span {
width: 30px;
width: 34px;
height: 32px;
background: #fa2c18;
border-radius: 3px;
font-size: 18px;
background: #fff;
border-radius: 4px;
font-size: 20px;
color: #fa2c18;
font-weight: 600;
color: #ffffff;
}
.unit {
font-weight: 500;
font-size: 18px;
color: #fa2c18;
font-size: 20px;
color: #fff;
margin: 0 5px 0 3px;
}
}
}
.not-started {
font-size: 12px;
font-size: 14px;
font-weight: 600;
color: #333333;
border: 1px dashed #e3e3e3;
background: #fff;
color: #fff;
border: 1px dashed #fff;
box-sizing: border-box;
.time {
color: #333333;
margin-left: 2px;
span {
background: #fff5f3;
color: #f13c3d;
font-size: 14px;
width: 26px;
height: 26px;
background: #ae0404;
box-shadow: inset 1px 1px 2px 0px rgba(111, 0, 0, 0.5);
border-radius: 3px;
color: #fff;
font-size: 18px;
}
.unit {
font-size: 12px;
color: #333333;
font-size: 14px;
}
}
}
.finished {
background: #f0f0f0;
font-size: 18px;
font-size: 20px;
font-weight: 600;
color: #999999;
color: #fff;
border: 1px dashed #ffffff;
box-sizing: border-box;
}
</style>
\ No newline at end of file
......@@ -2,7 +2,7 @@
<div :class="['live-box',{'videoFullscreen':videoFullscreen}]">
<div
class="mask"
@click="videoFullscreen = true"
@click="openFullscreen"
>
<div class="status flex"></div>
</div>
......@@ -63,15 +63,19 @@ export default {
fullscreenToggle: false,
}
})
_this.player.volume(0)
_this.player.src('http://play.glsx.com.cn/live/live.m3u8')
// _this.player.play()
_this.player.play()
}
})
})
},
methods: {
openFullscreen () {
this.player.volume(1)
this.videoFullscreen = true
}
}
}
</script>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!