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
Commit
4f941df5
authored
Sep 05, 2024
by
卢越
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【代码优化】代码格式化
parent
4870231b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
+2
-1
src/api/mall/promotion/combination/combinationActivity.ts
+1
-1
src/components/DiyEditor/components/mobile/PromotionCombination/index.vue
+1
-0
No files found.
src/api/mall/promotion/combination/combinationActivity.ts
View file @
4f941df5
...
...
@@ -50,7 +50,7 @@ export const getCombinationActivity = async (id: number) => {
// 查询拼团活动详情列表
export
const
getCombinationActivityDetailList
=
(
ids
:
number
[])
=>
{
return
request
.
get
({
url
:
`/promotion/combination-activity/
detail-list
?ids=
${
ids
}
`
})
return
request
.
get
({
url
:
`/promotion/combination-activity/
list-by-ids
?ids=
${
ids
}
`
})
}
// 新增拼团活动
...
...
src/components/DiyEditor/components/mobile/PromotionCombination/index.vue
View file @
4f941df5
...
...
@@ -165,6 +165,7 @@ watch(
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
)
}
})
...
...
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