Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 7dbeb4b9
authored
Jun 30, 2026
by
岑成威
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 更新版本
1 parent
20f1a2f6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
7 deletions
pages/boutique/tool/components/MinPriceApprovalDrawer.vue
utils/minSellPrice.js
pages/boutique/tool/components/MinPriceApprovalDrawer.vue
View file @
7dbeb4b
...
...
@@ -27,9 +27,9 @@
></view>
</view>
<view
v-if=
"item.type === 'single' && has
MinSellPrice(item.minSell
Price)"
v-if=
"item.type === 'single' && has
ActivityPrice(item.activity
Price)"
class=
"min-price"
>
活动价 ¥
{{
item
.
minSell
Price
}}
</view>
>
活动价 ¥
{{
item
.
activity
Price
}}
</view>
</view>
</view>
</view>
...
...
@@ -50,9 +50,9 @@
<view
class=
"child-name"
>
{{
child
.
name
}}
</view>
</view>
<view
v-if=
"has
MinSellPrice(child.minSell
Price)"
v-if=
"has
ActivityPrice(child.activity
Price)"
class=
"min-price"
>
活动价 ¥
{{
child
.
minSell
Price
}}
</view>
>
活动价 ¥
{{
child
.
activity
Price
}}
</view>
</view>
<view
class=
"card-right"
>
<view
class=
"current-price"
>
¥
{{
child
.
sellPrice
}}
</view>
...
...
@@ -84,7 +84,7 @@ export default {
}
},
methods
:
{
has
MinSell
Price
(
value
)
{
has
Activity
Price
(
value
)
{
return
value
!=
null
&&
value
!==
''
},
shouldShowMarketingIcon
(
item
)
{
...
...
utils/minSellPrice.js
View file @
7dbeb4b
...
...
@@ -10,6 +10,14 @@ export function getGoodsDisplayName(goods) {
return
goods
.
goodsAlias
||
goods
.
upgradeGoodsName
||
goods
.
goodsInfo
?.
goodsName
||
goods
.
baseGoodsName
||
''
}
// 活动价:商品列表返回的原始售价,加入订单时快照,不随用户改价变化
export
function
getGoodsActivityPrice
(
goods
)
{
if
(
!
goods
)
return
undefined
const
price
=
goods
.
oldPrice
??
goods
.
upgradePrice
??
goods
.
price
if
(
price
==
null
||
price
===
''
)
return
undefined
return
price
}
function
buildSingleApprovalItem
(
item
,
goods
,
number
)
{
const
sellPrice
=
normalizeGoodsPrice
(
goods
.
sellPrice
)
if
(
!
isBelowMinSellPrice
(
goods
,
sellPrice
))
return
null
...
...
@@ -17,7 +25,7 @@ function buildSingleApprovalItem(item, goods, number) {
type
:
'single'
,
name
:
getGoodsDisplayName
(
goods
),
sellPrice
,
minSellPrice
:
goods
.
minSellPrice
,
activityPrice
:
getGoodsActivityPrice
(
goods
)
,
number
:
number
||
'1'
,
sourceItem
:
item
}
...
...
@@ -47,7 +55,7 @@ function buildPackageApprovalItem(item, orderTypeCode) {
return
{
name
:
getGoodsDisplayName
(
goods
),
sellPrice
,
minSellPrice
:
goods
.
minSellPrice
,
activityPrice
:
getGoodsActivityPrice
(
goods
)
,
number
:
item
.
packageGoods
.
number
||
'1'
,
sourceGoods
:
goods
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment