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
6a4978f8
Commit
6a4978f8
authored
Sep 25, 2021
by
beisir
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feat/group-buy' of git.quantgroup.cn:ui/group-buy-ui into feat/group-buy
parents
b589ecad
74f95e01
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
29 deletions
+19
-29
index.vue
src/views/goodsDetail/index.vue
+2
-2
smallPic.vue
src/views/goodsDetail/smallPic.vue
+16
-26
createOrder.vue
src/views/order/createOrder.vue
+1
-1
No files found.
src/views/goodsDetail/index.vue
View file @
6a4978f8
...
...
@@ -73,7 +73,7 @@
}"
/>
</
template
>
<rules
/>
<rules
:group-info=
"detailInfo.groupBuyInfo || {}"
/>
</div>
<span
v-if=
"detailImgList.length"
id=
"goodDetail"
class=
"goods-divider"
>
宝贝详情
</span>
<!-- <div v-if="skuDetailList.length" class="goods-detail">
...
...
@@ -348,7 +348,7 @@ export default {
const
activityStartTime
=
new
Date
(
data
.
startTime
.
replace
(
/
\-
/g
,
'
/
'
)).
getTime
();
const
activityEndTime
=
new
Date
(
data
.
endTime
.
replace
(
/
\-
/g
,
'
/
'
)).
getTime
();
this
.
groupTimestemp
=
data
.
groupBuyInfo
.
currentGroupEndTime
?
new
Date
(
data
.
groupBuyInfo
.
currentGroupEndTime
).
getTime
()
?
new
Date
(
data
.
groupBuyInfo
.
currentGroupEndTime
.
replace
(
/
\-
/g
,
'
/
'
)
).
getTime
()
:
-
1
;
if
(
currentTime
<=
activityStartTime
)
{
// 当前时间小于活动开始时间
...
...
src/views/goodsDetail/smallPic.vue
View file @
6a4978f8
...
...
@@ -58,23 +58,21 @@
src=
"../../assets/images/defeat.png"
/>
</div>
<template
v-if=
"inProgress == 1"
>
<avatorGroup
:group-info=
"detailInfo.groupBuyInfo ||
{}" />
<group-desc-info
:group-info=
"detailInfo.groupBuyInfo ||
{}"
:timestemp="groupTimestemp"
:show-button-group="true"
@changeButtonVisible="changeButtonVisible"
@share="setShareData"
/>
<successInfo
:group-info=
"detailInfo.groupBuyInfo ||
{}" />
<cr-divider
hairline
:style=
"
{
borderColor: '#ECECEC'
}"
/>
</
template
>
<avatorGroup
:group-info=
"detailInfo.groupBuyInfo ||
{}" />
<group-desc-info
:group-info=
"detailInfo.groupBuyInfo ||
{}"
:timestemp="groupTimestemp"
:show-button-group="true"
@changeButtonVisible="changeButtonVisible"
@share="setShareData"
/>
<successInfo
:group-info=
"detailInfo.groupBuyInfo ||
{}" />
<cr-divider
hairline
:style=
"
{
borderColor: '#ECECEC'
}"
/>
<rules
:group-info=
"detailInfo.groupBuyInfo ||
{}" />
</div>
<span
v-if=
"detailImgList.length"
id=
"goodDetail"
class=
"goods-divider"
>
宝贝详情
</span>
...
...
@@ -119,10 +117,8 @@ export default {
},
data
()
{
return
{
timestemp
:
''
,
// 大活动结束时间
groupTimestemp
:
''
,
// 小团结束时间
showInfo
:
false
,
inProgress
:
false
,
// 活动是否已经开始
countDownText
:
''
,
stockPercentage
:
0
,
sharePicData
:
{},
// 生成海报图所需要的链接
...
...
@@ -277,25 +273,19 @@ export default {
const
activityStartTime
=
new
Date
(
data
.
startTime
.
replace
(
/
\-
/g
,
'
/
'
)).
getTime
();
const
activityEndTime
=
new
Date
(
data
.
endTime
.
replace
(
/
\-
/g
,
'
/
'
)).
getTime
();
this
.
groupTimestemp
=
data
.
groupBuyInfo
.
currentGroupEndTime
?
new
Date
(
data
.
groupBuyInfo
.
currentGroupEndTime
).
getTime
()
?
new
Date
(
data
.
groupBuyInfo
.
currentGroupEndTime
.
replace
(
/
\-
/g
,
'
/
'
)
).
getTime
()
:
-
1
;
if
(
currentTime
<=
activityStartTime
)
{
// 当前时间小于活动开始时间
this
.
timestemp
=
activityStartTime
;
this
.
countDownText
=
'
距活动开始时间
'
;
this
.
inProgress
=
-
1
;
return
;
}
if
(
currentTime
>=
activityEndTime
)
{
this
.
timestemp
=
0
;
this
.
countDownText
=
'
活动已结束
'
;
this
.
inProgress
=
0
;
return
;
}
if
(
currentTime
>
activityStartTime
&&
currentTime
<
activityEndTime
)
{
this
.
timestemp
=
activityEndTime
;
this
.
countDownText
=
'
距成团结束
'
;
this
.
inProgress
=
1
;
return
;
}
}
...
...
src/views/order/createOrder.vue
View file @
6a4978f8
...
...
@@ -207,7 +207,7 @@ export default {
newUrl
:
`/pages/pay/index?orderNo=
${
data
.
orderNo
}
&from=groupbuy`
});
}
else
if
(
isApp
)
{
this
.
$router
.
push
({
path
:
`/pay?orderNo=
${
data
.
orderNo
}
`
});
this
.
$router
.
replace
({
path
:
`/pay?orderNo=
${
data
.
orderNo
}
`
});
}
else
{
return
;
// todo 处理纯h5情况
// this.$dialog({
...
...
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