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
656579f8
Commit
656579f8
authored
Oct 06, 2021
by
Xuguangxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
014e66f2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
5 deletions
+21
-5
countDown.vue
src/components/countDown.vue
+17
-1
groupDescInfo.vue
src/views/goodsDetail/components/groupDescInfo.vue
+3
-3
index.vue
src/views/goodsDetail/index.vue
+1
-1
No files found.
src/components/countDown.vue
View file @
656579f8
<
template
>
<cr-count-down
:time=
"time"
:auto-start=
"true"
@
finish=
"finishEndChange"
>
<cr-count-down
:time=
"time"
:auto-start=
"true"
:class=
"
{
bigFont: from === 'desc'
}"
@finish="finishEndChange"
>
<template
#default
="
timeData
"
>
<template
v-if=
"timeData.d != 0"
>
<span
:class=
"blockNoBg ? 'block-no-bg' : 'block'"
>
{{
fillZero
(
timeData
.
d
)
}}
</span>
...
...
@@ -23,6 +30,10 @@ export default {
blockNoBg
:
{
type
:
Boolean
,
default
:
false
},
from
:
{
type
:
String
,
default
:
''
}
},
computed
:
{
...
...
@@ -48,6 +59,11 @@ export default {
};
</
script
>
<
style
lang=
"less"
scoped
>
.bigFont {
.block-no-bg {
font-size: 18px !important;
}
}
.cr-count-down {
display: flex;
align-items: center;
...
...
src/views/goodsDetail/components/groupDescInfo.vue
View file @
656579f8
<
template
>
<div
class=
"group-info-desc"
>
<div
class=
"desc-item"
>
<template
v-if=
"groupInfo.groupBuyStatus
=
= 1"
>
<template
v-if=
"groupInfo.groupBuyStatus
!
= 1"
>
<template
v-if=
"!groupInfo.joinGroup && !groupInfo.canJoinGroupBuyAgain"
>
<!-- 您不符合参与此团的条件 -->
</
template
>
<
template
v-else
>
<p
class=
"desc"
>
还差
<span>
{{
groupInfo
.
groupBuyNeedUserCount
}}
人
</span>
成团,距结束
还
剩
还差
<span>
{{
groupInfo
.
groupBuyNeedUserCount
}}
人
</span>
成团,距结束
仅
剩
</p>
<countDown
v-if=
"!!timestemp"
:block-no-bg=
"true"
:end-time=
"timestemp"
/>
<countDown
v-if=
"!!timestemp"
:block-no-bg=
"true"
:end-time=
"timestemp"
from=
"desc"
/>
</
template
>
</template>
<
template
v-else
>
...
...
src/views/goodsDetail/index.vue
View file @
656579f8
...
...
@@ -185,7 +185,7 @@
</div>
</cr-popup>
<bottom-nav
v-if=
"
!isPrimordialBrowser && !isWeixinBrowser &&
inProgress == 1"
v-if=
"inProgress == 1"
type=
"shoppingCar"
:disabled=
"false"
:group-id=
"groupId"
...
...
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