Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-mall
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit e3b7c13e
authored
Aug 29, 2025
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat(平台商品): 添加商品置顶功能
新增商品置顶API接口及前端确认弹窗逻辑,支持将指定商品置顶显示
1 parent
100a66f0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
1 deletions
src/api/modules/platformGoods.js
src/views/pointProducts/index.vue
src/api/modules/platformGoods.js
View file @
e3b7c13
...
@@ -85,6 +85,16 @@ const modifyPriceApi = params => {
...
@@ -85,6 +85,16 @@ const modifyPriceApi = params => {
sign
:
true
sign
:
true
})
})
}
}
// 平台商品置顶
const
goodsUpdatePoinnt
=
params
=>
{
params
.
method
=
'scrm.api.shopmall.scrm.glgoods.updatePoinnted'
return
http
({
url
,
data
:
params
,
sign
:
true
,
returnAll
:
true
})
}
// 订单列表
// 订单列表
const
getOrderList
=
params
=>
{
const
getOrderList
=
params
=>
{
...
@@ -303,6 +313,7 @@ export default {
...
@@ -303,6 +313,7 @@ export default {
batchOffApi
,
batchOffApi
,
goodsDetailApi
,
goodsDetailApi
,
modifyPriceApi
,
modifyPriceApi
,
goodsUpdatePoinnt
,
getOrderList
,
getOrderList
,
getOrderDetail
,
getOrderDetail
,
subOrderExpress
,
subOrderExpress
,
...
...
src/views/pointProducts/index.vue
View file @
e3b7c13
...
@@ -509,7 +509,31 @@ export default {
...
@@ -509,7 +509,31 @@ export default {
resolve
()
resolve
()
})
})
},
},
handleUp
(
row
)
{
},
secondConfirm
(
title
,
txt
,
apiModule
,
apiName
,
apiParams
,
fn
)
{
this
.
$confirm
(
txt
,
title
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
callback
:
action
=>
{
if
(
action
==
'confirm'
)
{
this
.
$apis
[
apiModule
][
apiName
](
apiParams
).
then
(
res
=>
{
this
.
$message
({
message
:
res
.
code
==
'0'
?
'操作成功'
:
res
.
message
,
type
:
res
.
code
==
'0'
?
'success'
:
'error'
})
if
(
res
.
code
==
'0'
)
{
fn
&&
fn
()
this
.
handleSearch
()
}
})
}
}
})
},
handleUp
(
row
)
{
this
.
secondConfirm
(
'提示'
,
'是否将此商品置顶?'
,
'platformGoods'
,
'goodsUpdatePoinnt'
,
{
id
:
row
.
id
,
pinnedFlag
:
'1'
})
},
handleJumpView
(
row
)
{
handleJumpView
(
row
)
{
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'/pointProducts/browseRecordList'
,
path
:
'/pointProducts/browseRecordList'
,
...
...
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