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
4130b2fe
authored
Aug 16, 2024
by
卢越
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【功能修复】修复装修页面的拼团价格和秒杀价格
parent
3b445d03
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
10 deletions
+3
-10
src/components/DiyEditor/components/mobile/PromotionCombination/index.vue
+1
-4
src/components/DiyEditor/components/mobile/PromotionSeckill/index.vue
+2
-6
No files found.
src/components/DiyEditor/components/mobile/PromotionCombination/index.vue
View file @
4130b2fe
...
@@ -86,11 +86,8 @@ watch(
...
@@ -86,11 +86,8 @@ watch(
// 循环活动信息,赋值拼团价格
// 循环活动信息,赋值拼团价格
activity
.
products
.
forEach
((
product
:
CombinationProductVO
)
=>
{
activity
.
products
.
forEach
((
product
:
CombinationProductVO
)
=>
{
spuList
.
value
.
forEach
((
spu
:
Spu
)
=>
{
spuList
.
value
.
forEach
((
spu
:
Spu
)
=>
{
// 如果商品 SpuId 匹配
if
(
spu
.
id
===
product
.
spuId
)
{
// 商品原售价和拼团价,哪个便宜就赋值哪个
// 商品原售价和拼团价,哪个便宜就赋值哪个
spu
.
combinationPrice
=
Math
.
min
(
spu
.
price
||
0
,
product
.
combinationPrice
);
// 设置 SPU 的最低价格
spu
.
combinationPrice
=
Math
.
min
(
spu
.
combinationPrice
||
Infinity
,
product
.
combinationPrice
);
// 设置 SPU 的最低价格
}
})
})
});
});
},
},
...
...
src/components/DiyEditor/components/mobile/PromotionSeckill/index.vue
View file @
4130b2fe
...
@@ -84,14 +84,10 @@ watch(
...
@@ -84,14 +84,10 @@ watch(
if
(
!
activity
?.
spuId
)
return
if
(
!
activity
?.
spuId
)
return
spuList
.
value
=
[
await
ProductSpuApi
.
getSpu
(
activity
.
spuId
)]
spuList
.
value
=
[
await
ProductSpuApi
.
getSpu
(
activity
.
spuId
)]
spuList
.
value
=
[
await
ProductSpuApi
.
getSpu
(
activity
.
spuId
)]
spuList
.
value
=
[
await
ProductSpuApi
.
getSpu
(
activity
.
spuId
)]
// 循环活动信息,赋值
拼团
价格
// 循环活动信息,赋值
秒杀最低
价格
activity
.
products
.
forEach
((
product
:
SeckillProductVO
)
=>
{
activity
.
products
.
forEach
((
product
:
SeckillProductVO
)
=>
{
spuList
.
value
.
forEach
((
spu
:
Spu
)
=>
{
spuList
.
value
.
forEach
((
spu
:
Spu
)
=>
{
// 如果商品 SpuId 匹配
spu
.
seckillPrice
=
Math
.
min
(
spu
.
seckillPrice
||
Infinity
,
product
.
seckillPrice
);
// 设置 SPU 的最低价格
if
(
spu
.
id
===
product
.
spuId
)
{
// 商品原售价和拼团价,哪个便宜就赋值哪个
spu
.
seckillPrice
=
Math
.
min
(
spu
.
price
||
0
,
product
.
seckillPrice
);
// 设置 SPU 的最低价格
}
})
})
});
});
},
},
...
...
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