Commit 662c1fae authored by beisir's avatar beisir

feat:按钮

parent e6c75515
...@@ -22,10 +22,15 @@ ...@@ -22,10 +22,15 @@
<!-- 已抢光 --> <!-- 已抢光 -->
<!-- 未开始 --> <!-- 未开始 -->
<!-- 已结束 --> <!-- 已结束 -->
<div class="group-item-button"> <div class="group-item-btnbox">
<cr-button size="small" shape="circle" type="primary" :class="btnByStatus.cls">{{ <cr-button
btnByStatus.t size="small"
}}</cr-button> shape="circle"
type="primary"
class="group-item-button"
:class="btnByStatus.cls"
>{{ btnByStatus.t }}</cr-button
>
</div> </div>
</dd> </dd>
</dl> </dl>
...@@ -60,7 +65,7 @@ export default { ...@@ -60,7 +65,7 @@ export default {
const { hasStop, hasStart } = this.topicCfg; const { hasStop, hasStart } = this.topicCfg;
const { goodsCount } = this.goodsItem; const { goodsCount } = this.goodsItem;
if (!hasStart) { if (!hasStart) {
return { t: '未开始', d: true, s: 0, cls: 'not-start' }; return { t: '未开始', d: true, s: 0, cls: 'group-item-notbtn' };
} }
if (hasStop) { if (hasStop) {
return { t: '已结束', d: true, s: 1, cls: 'btnabled' }; return { t: '已结束', d: true, s: 1, cls: 'btnabled' };
...@@ -217,12 +222,12 @@ export default { ...@@ -217,12 +222,12 @@ export default {
color: #999999; color: #999999;
font-size: @font-size-12; font-size: @font-size-12;
} }
&-button { &-btnbox {
position: absolute; position: absolute;
bottom: 12px; bottom: 12px;
right: 0; right: 0;
} }
.cr-button { &-button {
position: relative; position: relative;
width: 90px; width: 90px;
height: 28px; height: 28px;
...@@ -231,19 +236,18 @@ export default { ...@@ -231,19 +236,18 @@ export default {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
&::after { }
content: ''; &-notbtn::after {
position: absolute; content: '';
width: 110%; position: absolute;
height: 110%; width: 110%;
left: 0; height: 110%;
top: 0; left: 0;
margin-left: -2%; top: 0;
margin-top: -2%; margin-left: -2%;
margin-top: -2%;
z-index: 1; z-index: 1;
background-color: rgba(255, 255, 255, 0.6); background-color: rgba(255, 255, 255, 0.6);
}
} }
.btnabled { .btnabled {
cursor: not-allowed; cursor: not-allowed;
......
...@@ -301,8 +301,8 @@ async function getActivityList(urlQuery, next) { ...@@ -301,8 +301,8 @@ async function getActivityList(urlQuery, next) {
// t.startTime = '2021-10-01 20:00:00'; // t.startTime = '2021-10-01 20:00:00';
// t.endTime = '2021-10-02 20:02:00'; // t.endTime = '2021-10-02 20:02:00';
// 正在活动中 // 正在活动中
// t.startTime = '2021-09-23 00:00:00'; // t.startTime = '2021-09-30 00:00:00';
// t.endTime = '2021-09-25 00:00:00'; // t.endTime = '2021-10-02 00:00:00';
// // 活动已结束 // // 活动已结束
// t.startTime = '2021-09-23 10:45:00'; // t.startTime = '2021-09-23 10:45:00';
// t.endTime = '2021-09-23 19:17:20'; // t.endTime = '2021-09-23 19:17:20';
......
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