Commit 0a8575f6 by 李伟康

commit

1 parent 209c47cd
......@@ -22,6 +22,12 @@
<template v-if="tabIndex == 0">
<div class="top flex">
<div class="icon">
<div
class="status flex"
v-if="i.activityStatus == 2"
>
进行中
</div>
<img :src="i.activityImg">
</div>
<div class="info">
......@@ -92,7 +98,7 @@ export default {
mixins: [shareMixin, pageMixin],
data() {
return {
tabList:['秒杀活动']
tabList: ['秒杀活动']
}
},
mounted() {},
......@@ -174,6 +180,42 @@ export default {
height: 84px;
flex-shrink: 0;
margin-right: 16px;
position: relative;
.status {
position: absolute;
width: 42px;
height: 12px;
background: #ff653d;
border-radius: 6px;
color: #fff;
font-size: 8px;
top: 4px;
left: 4px;
box-sizing: border-box;
padding-left: 14px;
&::before {
content: '';
position: absolute;
top: 50%;
left: 4px;
width: 6px;
height: 6px;
border: 1px solid #fff;
transform: translateY(-50%);
border-radius: 100%;
}
&::after {
content: '';
position: absolute;
top: 50%;
left: 6px;
width: 4px;
height: 4px;
transform: translateY(-50%);
border-radius: 100%;
background-color: #fff;
}
}
}
.info {
height: 87px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!