Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
group-buy-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
group-buy-ui
Commits
662c1fae
Commit
662c1fae
authored
Sep 30, 2021
by
beisir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:按钮
parent
e6c75515
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
22 deletions
+26
-22
goodsCard.vue
src/views/goodsList/components/goodsCard.vue
+24
-20
index.vue
src/views/goodsList/index.vue
+2
-2
No files found.
src/views/goodsList/components/goodsCard.vue
View file @
662c1fae
...
@@ -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;
}
}
&-b
utton
{
&-b
tnbox
{
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;
...
...
src/views/goodsList/index.vue
View file @
662c1fae
...
@@ -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';
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment