Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
b5c4da07
authored
Sep 06, 2024
by
芋道源码
Committed by
Gitee
Sep 06, 2024
Browse files
Options
Browse Files
Download
Plain Diff
!539 【功能修复】修复拼团装修的价格显示
Merge pull request !539 from 卢越/master
parents
7d60b5a6
3dc02f72
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
src/api/mall/promotion/combination/combinationActivity.ts
+1
-0
src/components/DiyEditor/components/mobile/PromotionCombination/index.vue
+6
-7
No files found.
src/api/mall/promotion/combination/combinationActivity.ts
View file @
b5c4da07
...
...
@@ -16,6 +16,7 @@ export interface CombinationActivityVO {
virtualGroup
?:
number
status
?:
number
limitDuration
?:
number
combinationPrice
?:
number
products
:
CombinationProductVO
[]
}
...
...
src/components/DiyEditor/components/mobile/PromotionCombination/index.vue
View file @
b5c4da07
...
...
@@ -152,13 +152,12 @@ watch(
// 更新 SPU 的最低价格
combinationActivityList
.
value
.
forEach
((
activity
)
=>
{
activity
.
products
.
forEach
((
product
)
=>
{
const
spu
=
spuList
.
value
.
find
((
spu
)
=>
spu
.
id
===
product
.
spuId
)
if
(
spu
)
{
// 哪个最便宜就赋值哪个
spu
.
price
=
Math
.
min
(
product
.
combinationPrice
||
Infinity
,
spu
.
price
||
Infinity
)
}
})
// 匹配spuId
const
spu
=
spuList
.
value
.
find
((
spu
)
=>
spu
.
id
===
activity
.
spuId
)
if
(
spu
)
{
// 赋值活动价格,哪个最便宜就赋值哪个
spu
.
price
=
Math
.
min
(
activity
.
combinationPrice
||
Infinity
,
spu
.
price
||
Infinity
)
}
})
}
}
catch
(
error
)
{
...
...
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