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
e5561735
Commit
e5561735
authored
Sep 19, 2021
by
beisir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:列表页跳转详情页
parent
b44fb2e7
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
59 additions
and
17645 deletions
+59
-17645
package-lock.json
package-lock.json
+30
-17639
groupSwiper.vue
src/components/groupSwiper.vue
+5
-0
goodsCard.vue
src/views/goodsList/components/goodsCard.vue
+22
-4
index.vue
src/views/goodsList/index.vue
+2
-2
No files found.
package-lock.json
View file @
e5561735
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/components/groupSwiper.vue
View file @
e5561735
...
@@ -36,6 +36,7 @@ export default {
...
@@ -36,6 +36,7 @@ export default {
data
()
{
data
()
{
const
vm
=
this
;
const
vm
=
this
;
return
{
return
{
timer
:
null
,
rightImgPath
:
''
,
rightImgPath
:
''
,
avatorItem
:
null
,
avatorItem
:
null
,
swiperOptions
:
{
swiperOptions
:
{
...
@@ -87,6 +88,10 @@ export default {
...
@@ -87,6 +88,10 @@ export default {
mounted
()
{
mounted
()
{
this
.
onSlidePrevChange
();
this
.
onSlidePrevChange
();
},
},
beforeDestroy
()
{
this
.
swiper
.
destroy
(
true
);
clearInterval
(
this
.
timer
);
},
methods
:
{
methods
:
{
onSlidePrevChange
()
{
onSlidePrevChange
()
{
this
.
timer
=
setInterval
(()
=>
{
this
.
timer
=
setInterval
(()
=>
{
...
...
src/views/goodsList/components/goodsCard.vue
View file @
e5561735
...
@@ -92,11 +92,29 @@ export default {
...
@@ -92,11 +92,29 @@ export default {
return
Math
.
round
(
percentage
*
100
)
/
100
;
return
Math
.
round
(
percentage
*
100
)
/
100
;
},
},
onButtonClick
()
{
onButtonClick
()
{
const
{
skuNo
,
goodsSpecialId
,
activityTemplateInfoId
,
activityTemplateDetailId
,
activityInfoId
}
=
this
.
goodsItem
;
const
{
s
}
=
this
.
btnByStatus
;
const
{
s
}
=
this
.
btnByStatus
;
// if (btnByStatus.s === 2) {
if
(
s
===
2
)
{
// // 正常跳转
this
.
$router
.
push
({
// return false;
path
:
'
/groupBuy/skuInfo
'
,
// }
query
:
{
h
:
0
,
skuNo
,
goodsSpecialId
,
activityId
:
activityInfoId
,
templateId
:
activityTemplateInfoId
,
templateDetailId
:
activityTemplateDetailId
}
});
// 正常跳转
return
false
;
}
this
.
$dialog
({
this
.
$dialog
({
message
:
'
请在微信小程序中参与此活动哦~
'
,
message
:
'
请在微信小程序中参与此活动哦~
'
,
confirmButtonText
:
s
===
3
?
'
重新选择
'
:
'
订阅消息
'
,
confirmButtonText
:
s
===
3
?
'
重新选择
'
:
'
订阅消息
'
,
...
...
src/views/goodsList/index.vue
View file @
e5561735
...
@@ -280,8 +280,8 @@ async function getActivityList(urlQuery, next) {
...
@@ -280,8 +280,8 @@ async function getActivityList(urlQuery, next) {
nextFns
=
next
;
nextFns
=
next
;
}
}
const
[
result
]
=
await
groupBuyApi
.
getTemplateList
(
activityId
);
const
[
result
]
=
await
groupBuyApi
.
getTemplateList
(
activityId
);
if
(
result
?.
t
)
{
if
(
result
?.
t
emplateInfo
)
{
let
t
=
result
.
t
;
let
t
=
result
.
t
emplateInfo
;
t
.
startTime
=
'
2021-09-15 00:00:00
'
;
t
.
startTime
=
'
2021-09-15 00:00:00
'
;
t
.
endTime
=
'
2021-09-22 00:00:00
'
;
t
.
endTime
=
'
2021-09-22 00:00:00
'
;
// t.startTime = '2021-09-15 00:00:00';
// t.startTime = '2021-09-15 00:00:00';
...
...
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