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
edbc05ff
Commit
edbc05ff
authored
Sep 25, 2021
by
Xuguangxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: fix
parent
68ead63e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
26 deletions
+16
-26
index.vue
src/views/goodsDetail/index.vue
+1
-1
smallPic.vue
src/views/goodsDetail/smallPic.vue
+15
-25
No files found.
src/views/goodsDetail/index.vue
View file @
edbc05ff
...
@@ -73,7 +73,7 @@
...
@@ -73,7 +73,7 @@
}"
}"
/>
/>
</
template
>
</
template
>
<rules
/>
<rules
:group-info=
"detailInfo.groupBuyInfo || {}"
/>
</div>
</div>
<span
v-if=
"detailImgList.length"
id=
"goodDetail"
class=
"goods-divider"
>
宝贝详情
</span>
<span
v-if=
"detailImgList.length"
id=
"goodDetail"
class=
"goods-divider"
>
宝贝详情
</span>
<!-- <div v-if="skuDetailList.length" class="goods-detail">
<!-- <div v-if="skuDetailList.length" class="goods-detail">
...
...
src/views/goodsDetail/smallPic.vue
View file @
edbc05ff
...
@@ -58,23 +58,21 @@
...
@@ -58,23 +58,21 @@
src=
"../../assets/images/defeat.png"
src=
"../../assets/images/defeat.png"
/>
/>
</div>
</div>
<template
v-if=
"inProgress == 1"
>
<avatorGroup
:group-info=
"detailInfo.groupBuyInfo ||
{}" />
<avatorGroup
:group-info=
"detailInfo.groupBuyInfo ||
{}" />
<group-desc-info
<group-desc-info
:group-info=
"detailInfo.groupBuyInfo ||
{}"
:group-info=
"detailInfo.groupBuyInfo ||
{}"
:timestemp="groupTimestemp"
:timestemp="groupTimestemp"
:show-button-group="true"
:show-button-group="true"
@changeButtonVisible="changeButtonVisible"
@changeButtonVisible="changeButtonVisible"
@share="setShareData"
@share="setShareData"
/>
/>
<successInfo
:group-info=
"detailInfo.groupBuyInfo ||
{}" />
<successInfo
:group-info=
"detailInfo.groupBuyInfo ||
{}" />
<cr-divider
<cr-divider
hairline
hairline
:style=
"
{
:style=
"
{
borderColor: '#ECECEC'
borderColor: '#ECECEC'
}"
}"
/>
/>
</
template
>
<rules
:group-info=
"detailInfo.groupBuyInfo ||
{}" />
<rules
:group-info=
"detailInfo.groupBuyInfo ||
{}" />
</div>
</div>
<span
v-if=
"detailImgList.length"
id=
"goodDetail"
class=
"goods-divider"
>
宝贝详情
</span>
<span
v-if=
"detailImgList.length"
id=
"goodDetail"
class=
"goods-divider"
>
宝贝详情
</span>
...
@@ -119,10 +117,8 @@ export default {
...
@@ -119,10 +117,8 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
timestemp
:
''
,
// 大活动结束时间
groupTimestemp
:
''
,
// 小团结束时间
groupTimestemp
:
''
,
// 小团结束时间
showInfo
:
false
,
showInfo
:
false
,
inProgress
:
false
,
// 活动是否已经开始
countDownText
:
''
,
countDownText
:
''
,
stockPercentage
:
0
,
stockPercentage
:
0
,
sharePicData
:
{},
// 生成海报图所需要的链接
sharePicData
:
{},
// 生成海报图所需要的链接
...
@@ -281,21 +277,15 @@ export default {
...
@@ -281,21 +277,15 @@ export default {
:
-
1
;
:
-
1
;
if
(
currentTime
<=
activityStartTime
)
{
if
(
currentTime
<=
activityStartTime
)
{
// 当前时间小于活动开始时间
// 当前时间小于活动开始时间
this
.
timestemp
=
activityStartTime
;
this
.
countDownText
=
'
距活动开始时间
'
;
this
.
countDownText
=
'
距活动开始时间
'
;
this
.
inProgress
=
-
1
;
return
;
return
;
}
}
if
(
currentTime
>=
activityEndTime
)
{
if
(
currentTime
>=
activityEndTime
)
{
this
.
timestemp
=
0
;
this
.
countDownText
=
'
活动已结束
'
;
this
.
countDownText
=
'
活动已结束
'
;
this
.
inProgress
=
0
;
return
;
return
;
}
}
if
(
currentTime
>
activityStartTime
&&
currentTime
<
activityEndTime
)
{
if
(
currentTime
>
activityStartTime
&&
currentTime
<
activityEndTime
)
{
this
.
timestemp
=
activityEndTime
;
this
.
countDownText
=
'
距成团结束
'
;
this
.
countDownText
=
'
距成团结束
'
;
this
.
inProgress
=
1
;
return
;
return
;
}
}
}
}
...
...
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