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
8bd68191
Commit
8bd68191
authored
Oct 14, 2021
by
徐光星
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feat/group-buy' into 'master'
fix: 接口增加延迟 See merge request
!8
parents
6e039e25
0de878e9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
44 deletions
+52
-44
index.vue
src/views/goodsDetail/index.vue
+5
-1
smallPic.vue
src/views/goodsDetail/smallPic.vue
+47
-43
No files found.
src/views/goodsDetail/index.vue
View file @
8bd68191
...
...
@@ -409,7 +409,11 @@ export default {
if
(
res
.
groupBuyInfo
?.
joinGroup
)
{
// 如果当前用户参了团到拼团详情
const
query
=
{
...
this
.
$route
.
query
};
return
this
.
$router
.
replace
({
name
:
'
groupBuySkuInfoSmallPic
'
,
query
});
setTimeout
(()
=>
{
// 延时用于解决短时间内刷detail接口的问题
this
.
$router
.
replace
({
name
:
'
groupBuySkuInfoSmallPic
'
,
query
});
},
500
);
return
;
}
firstGroupShare
(
{
...
...
src/views/goodsDetail/smallPic.vue
View file @
8bd68191
...
...
@@ -213,6 +213,7 @@ export default {
},
async
init
(
detailParam
)
{
const
[
res
]
=
await
goods
.
detailInfo
(
detailParam
);
try
{
firstGroupShare
(
{
...
this
.
$route
.
query
,
...
...
@@ -260,6 +261,9 @@ export default {
}
catch
(
error
)
{
console
.
error
(
error
);
}
}
catch
(
e
)
{
console
.
log
(
e
);
}
},
setStartStatus
(
data
)
{
const
currentTime
=
new
Date
(
data
.
currentTime
.
replace
(
/
\-
/g
,
'
/
'
)).
getTime
();
...
...
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