Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
merchant-manage-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
merchant-manage-ui
Commits
783cd97c
Commit
783cd97c
authored
Sep 16, 2025
by
靳野
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:消息提醒
parent
fa99f46e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
5 deletions
+28
-5
.eslintrc.js
.eslintrc.js
+1
-0
env.config.js
config/env.config.js
+1
-1
index.jsx
src/components/MessageReminder/Complex/index.jsx
+26
-4
No files found.
.eslintrc.js
View file @
783cd97c
...
@@ -16,5 +16,6 @@ module.exports = {
...
@@ -16,5 +16,6 @@ module.exports = {
'
import/extensions
'
:
0
,
'
import/extensions
'
:
0
,
'
no-unused-expressions
'
:
[
'
off
'
],
'
no-unused-expressions
'
:
[
'
off
'
],
'
template-curly-spacing
'
:
'
off
'
,
'
template-curly-spacing
'
:
'
off
'
,
'
no-shadow
'
:
'
off
'
,
},
},
};
};
config/env.config.js
View file @
783cd97c
import
RoleType
,
{
isPlatForm
}
from
'
./role.config
'
;
import
RoleType
,
{
isPlatForm
}
from
'
./role.config
'
;
const
isProduction
=
process
.
env
.
NODE_ENV
===
'
production
'
;
const
isProduction
=
process
.
env
.
NODE_ENV
===
'
production
'
;
const
isPre
=
process
.
env
.
PRE_ENV
===
'
pre
'
;
const
isPre
=
process
.
env
.
PRE_ENV
===
'
pre
'
;
const
environment
=
'
sc
'
;
const
environment
=
'
yxm2
'
;
const
envAPi
=
{
const
envAPi
=
{
api
:
`https://security-
${
environment
}
.liangkebang.net`
,
//'https://security-xyqb.liangkebang.net',
api
:
`https://security-
${
environment
}
.liangkebang.net`
,
//'https://security-xyqb.liangkebang.net',
...
...
src/components/MessageReminder/Complex/index.jsx
View file @
783cd97c
...
@@ -19,7 +19,7 @@ const INIT_QUERY_PARAMS = {
...
@@ -19,7 +19,7 @@ const INIT_QUERY_PARAMS = {
const
MessageItem
=
props
=>
{
const
MessageItem
=
props
=>
{
const
{
item
,
onMark
,
viewDetail
}
=
props
;
const
{
item
,
onMark
,
viewDetail
}
=
props
;
/**
/**
* type: 0订单消息,1售后消息
* type: 0订单消息,1售后消息
,7提示补货,8竞价成功
* readStatus: 0未读,1已读
* readStatus: 0未读,1已读
*/
*/
const
{
readStatus
,
type
}
=
item
;
const
{
readStatus
,
type
}
=
item
;
...
@@ -30,17 +30,33 @@ const MessageItem = props => {
...
@@ -30,17 +30,33 @@ const MessageItem = props => {
console
.
error
(
'
消息数据格式错误
'
);
console
.
error
(
'
消息数据格式错误
'
);
}
}
const
goodList
=
message
.
items
.
map
((
good
,
index
)
=>
(
const
goodList
=
message
.
items
?
.
map
((
good
,
index
)
=>
(
<
div
className=
{
styles
.
good
}
key=
{
String
(
index
)
}
>
<
div
className=
{
styles
.
good
}
key=
{
String
(
index
)
}
>
<
span
className=
{
styles
.
good__name
}
>
{
good
.
skuName
}
</
span
>
<
span
className=
{
styles
.
good__name
}
>
{
good
.
skuName
}
</
span
>
<
span
className=
{
styles
.
good__count
}
>
x
{
good
.
quantity
}
</
span
>
<
span
className=
{
styles
.
good__count
}
>
x
{
good
.
quantity
}
</
span
>
</
div
>
</
div
>
));
));
const
renderMessageHeader
=
message
=>
{
switch
(
message
.
type
)
{
case
7
:
return
<
span
className=
{
styles
.
time
}
>
库存预警
</
span
>;
case
8
:
return
<
span
className=
{
styles
.
time
}
>
竞价成功
</
span
>;
default
:
return
(
<>
<
span
className=
{
styles
[
'
order-number
'
]
}
>
订单编号:
{
message
.
orderNo
}
</
span
>
<
span
className=
{
styles
.
time
}
>
订单时间:
{
message
.
time
}
</
span
>
</>
);
}
};
return
(
return
(
<
div
className=
{
styles
[
'
complex-list__item
'
]
}
>
<
div
className=
{
styles
[
'
complex-list__item
'
]
}
>
<
div
className=
{
styles
[
'
complex-list__item--header
'
]
}
>
<
div
className=
{
styles
[
'
complex-list__item--header
'
]
}
>
<
span
className=
{
styles
[
'
order-number
'
]
}
>
订单编号:
{
message
.
orderNo
}
</
span
>
{
renderMessageHeader
(
message
)
}
<
span
className=
{
styles
.
time
}
>
订单时间:
{
message
.
time
}
</
span
>
<
span
className=
{
styles
[
'
read-status
'
]
}
>
<
span
className=
{
styles
[
'
read-status
'
]
}
>
{
readStatus
===
0
?
(
{
readStatus
===
0
?
(
<
a
className=
{
styles
[
'
read-status--un-read
'
]
}
onClick=
{
()
=>
onMark
([
item
.
id
])
}
>
<
a
className=
{
styles
[
'
read-status--un-read
'
]
}
onClick=
{
()
=>
onMark
([
item
.
id
])
}
>
...
@@ -189,6 +205,12 @@ const Complex = props => {
...
@@ -189,6 +205,12 @@ const Complex = props => {
query
:
{
orderNo
},
query
:
{
orderNo
},
});
});
}
}
if
([
7
,
8
].
includes
(
type
))
{
history
.
push
({
pathname
:
'
/goodsManage
'
,
query
:
{
orderNo
},
});
}
close
();
close
();
};
};
...
...
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