Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
op-web-service
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
bp
op-web-service
Commits
265a2162
Commit
265a2162
authored
Aug 24, 2021
by
v-yuchenglong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add:增加商品已售卖数量
parent
cc19e96f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
8 deletions
+23
-8
index.vue
src/pages/Activity/ActivityDetail/index.vue
+23
-8
No files found.
src/pages/Activity/ActivityDetail/index.vue
View file @
265a2162
...
@@ -43,7 +43,11 @@
...
@@ -43,7 +43,11 @@
<div
class=
"my-header"
>
<div
class=
"my-header"
>
<h3>
{{
marketingInfo
.
marketing_name
}}
</h3>
<h3>
{{
marketingInfo
.
marketing_name
}}
</h3>
<!-- 查看参与字段待确认 -->
<!-- 查看参与字段待确认 -->
<p><span>
{{
detailInfo
.
lookUserCount
}}
人查看
</span>
|
<span>
{{
detailInfo
.
haveBuyGoodsUserCount
}}
人参与
</span></p>
<p>
<span>
{{
detailInfo
.
lookUserCount
}}
人查看
</span>
|
<span
>
{{
detailInfo
.
haveBuyGoodsUserCount
}}
人参与
</span
>
</p>
<p
class=
"endTime"
>
{{
showTimer
}}
</p>
<p
class=
"endTime"
>
{{
showTimer
}}
</p>
</div>
</div>
<p
class=
"title"
>
拼单商品
</p>
<p
class=
"title"
>
拼单商品
</p>
...
@@ -96,6 +100,9 @@
...
@@ -96,6 +100,9 @@
<
span
class
=
"originPrice"
>
{{
<
span
class
=
"originPrice"
>
{{
`¥${goodsItem.original_price
}
`
`¥${goodsItem.original_price
}
`
}}
<
/span
>
}}
<
/span
>
<
span
class
=
"sold"
>
已售
{{
goodsItem
.
all_have_buy_goods_count
}}
<
/spa
n
>
<
/p
>
<
/p
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
...
@@ -128,7 +135,7 @@ export default {
...
@@ -128,7 +135,7 @@ export default {
marketingInfo
:
{
}
,
marketingInfo
:
{
}
,
endTime
:
""
,
endTime
:
""
,
showTimer
:
""
,
showTimer
:
""
,
detailInfo
:
{
}
detailInfo
:
{
}
,
}
;
}
;
}
,
}
,
watch
:
{
}
,
watch
:
{
}
,
...
@@ -140,11 +147,11 @@ export default {
...
@@ -140,11 +147,11 @@ export default {
let
dataArr
=
await
Promise
.
all
([
let
dataArr
=
await
Promise
.
all
([
ActivityService
.
checkActivityDetail
({
ActivityService
.
checkActivityDetail
({
marketing_id
:
this
.
$route
.
query
.
marketing_id
,
marketing_id
:
this
.
$route
.
query
.
marketing_id
,
marketing_type
:
this
.
$route
.
query
.
marketing_type
marketing_type
:
this
.
$route
.
query
.
marketing_type
,
}
),
}
),
ActivityService
.
checkActivityDetailInfo
({
ActivityService
.
checkActivityDetailInfo
({
marketing_id
:
this
.
$route
.
query
.
marketing_id
marketing_id
:
this
.
$route
.
query
.
marketing_id
,
}
)
}
)
,
]);
]);
this
.
pageLoading
=
false
;
this
.
pageLoading
=
false
;
this
.
goodsList
=
dataArr
[
0
].
result
.
goods_list
;
this
.
goodsList
=
dataArr
[
0
].
result
.
goods_list
;
...
@@ -196,7 +203,7 @@ export default {
...
@@ -196,7 +203,7 @@ export default {
closePage
()
{
closePage
()
{
this
.
$router
.
go
(
-
1
);
this
.
$router
.
go
(
-
1
);
}
}
,
}
,
}
,
async
created
()
{
async
created
()
{
await
this
.
checkActivityDetail
();
await
this
.
checkActivityDetail
();
...
@@ -204,7 +211,7 @@ export default {
...
@@ -204,7 +211,7 @@ export default {
}
,
}
,
beforeUnmount
()
{
beforeUnmount
()
{
clearInterval
(
this
.
timer
);
clearInterval
(
this
.
timer
);
}
}
,
}
;
}
;
<
/script
>
<
/script
>
<
style
lang
=
"less"
scoped
>
<
style
lang
=
"less"
scoped
>
...
@@ -279,7 +286,9 @@ export default {
...
@@ -279,7 +286,9 @@ export default {
display
:
flex
;
display
:
flex
;
margin
:
15
px
0
;
margin
:
15
px
0
;
.
itemIntroduce
{
.
itemIntroduce
{
position
:
relative
;
display
:
flex
;
display
:
flex
;
width
:
100
%
;
flex
-
direction
:
column
;
flex
-
direction
:
column
;
justify
-
content
:
space
-
around
;
justify
-
content
:
space
-
around
;
margin
-
left
:
10
px
;
margin
-
left
:
10
px
;
...
@@ -296,6 +305,12 @@ export default {
...
@@ -296,6 +305,12 @@ export default {
}
}
}
}
}
}
.
sold
{
position
:
absolute
;
right
:
20
px
;;
color
:
#
d44549
;
font
-
weight
:
500
;
}
}
}
}
}
}
}
...
...
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