Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
foreign
/
customer-service
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
65197bad
authored
Dec 06, 2021
by
Sixong.Zhu
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
u
parent
18a805f0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
1 deletions
components/controller/index.ts
components/message.vue
model/index.ts
components/controller/index.ts
View file @
65197bad
...
@@ -10,6 +10,9 @@ const mapping = new Map<MessageType, string>([
...
@@ -10,6 +10,9 @@ const mapping = new Map<MessageType, string>([
[
MessageType
.
MyWelfare
,
'我的福利'
],
[
MessageType
.
MyWelfare
,
'我的福利'
],
[
MessageType
.
QuestionAnswer
,
'问答'
],
[
MessageType
.
QuestionAnswer
,
'问答'
],
[
MessageType
.
Pay
,
'付款通知'
],
[
MessageType
.
Pay
,
'付款通知'
],
[
MessageType
.
PayV1
,
'付款通知'
],
[
MessageType
.
Refund
,
'退款通知'
],
[
MessageType
.
RefundV1
,
'退款通知'
],
])
])
export
function
parserMessage
(
type
:
MessageType
,
rawMsg
:
string
)
{
export
function
parserMessage
(
type
:
MessageType
,
rawMsg
:
string
)
{
...
...
components/message.vue
View file @
65197bad
...
@@ -184,7 +184,9 @@
...
@@ -184,7 +184,9 @@
[
dto
.
MessageType
.
QuestionAnswer
,
"question-answer-message"
],
[
dto
.
MessageType
.
QuestionAnswer
,
"question-answer-message"
],
[
dto
.
MessageType
.
Action
,
"action-message"
],
[
dto
.
MessageType
.
Action
,
"action-message"
],
[
dto
.
MessageType
.
Pay
,
"pay-message"
],
[
dto
.
MessageType
.
Pay
,
"pay-message"
],
[
dto
.
MessageType
.
PayV1
,
"pay-message"
],
[
dto
.
MessageType
.
Refund
,
"pay-message"
],
[
dto
.
MessageType
.
Refund
,
"pay-message"
],
[
dto
.
MessageType
.
RefundV1
,
"pay-message"
],
]);
]);
@
Component
({
@
Component
({
...
@@ -268,7 +270,9 @@
...
@@ -268,7 +270,9 @@
private
get
needReadTip
()
{
private
get
needReadTip
()
{
return
(
return
(
this
.
data
.
type
!==
dto
.
MessageType
.
Pay
&&
this
.
data
.
type
!==
dto
.
MessageType
.
Pay
&&
this
.
data
.
type
!==
dto
.
MessageType
.
Refund
this
.
data
.
type
!==
dto
.
MessageType
.
Refund
&&
this
.
data
.
type
!==
dto
.
MessageType
.
PayV1
&&
this
.
data
.
type
!==
dto
.
MessageType
.
RefundV1
);
);
}
}
...
...
model/index.ts
View file @
65197bad
...
@@ -114,7 +114,9 @@ export const enum MessageType {
...
@@ -114,7 +114,9 @@ export const enum MessageType {
Action
=
"action"
,
Action
=
"action"
,
Notify
=
"notify"
,
Notify
=
"notify"
,
MpNavigate
=
"mp-navigate"
,
MpNavigate
=
"mp-navigate"
,
PayV1
=
'gpay'
,
Pay
=
"gpay2"
,
Pay
=
"gpay2"
,
RefundV1
=
'grefund'
,
Refund
=
"grefund2"
,
Refund
=
"grefund2"
,
}
}
...
...
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