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
3f147148
authored
Dec 22, 2021
by
zhousil
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
银行卡转账
parent
0822f25b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
components/message-item/pay-message.vue
model/order.ts
components/message-item/pay-message.vue
View file @
3f147148
...
@@ -27,6 +27,7 @@
...
@@ -27,6 +27,7 @@
payMethodMapping
,
payMethodMapping
,
PayStatus
,
PayStatus
,
payStatusMapping
,
payStatusMapping
,
cardPayStatusMapping
,
}
from
"@/customer-service/model"
;
}
from
"@/customer-service/model"
;
import
{
PayMessageBody
}
from
"@/customer-service/xim/models/chat"
;
import
{
PayMessageBody
}
from
"@/customer-service/xim/models/chat"
;
import
{
Component
}
from
"vue-property-decorator"
;
import
{
Component
}
from
"vue-property-decorator"
;
...
@@ -54,6 +55,10 @@
...
@@ -54,6 +55,10 @@
}
}
private
get
status
()
{
private
get
status
()
{
// 银行卡转账
if
(
+
this
.
payData
.
paymentFunction
===
PayMethod
.
CardTransfer
)
{
return
cardPayStatusMapping
.
get
(
+
this
.
payData
.
status
);
}
return
payStatusMapping
.
get
(
+
this
.
payData
.
status
);
return
payStatusMapping
.
get
(
+
this
.
payData
.
status
);
}
}
...
...
model/order.ts
View file @
3f147148
...
@@ -102,6 +102,11 @@ export const payStatusMapping = new Map<PayStatus, string>([
...
@@ -102,6 +102,11 @@ export const payStatusMapping = new Map<PayStatus, string>([
[
PayStatus
.
Refund
,
"已退费"
],
[
PayStatus
.
Refund
,
"已退费"
],
]);
]);
export
const
cardPayStatusMapping
=
new
Map
<
PayStatus
,
string
>
([
[
PayStatus
.
UnPay
,
"待转账"
],
[
PayStatus
.
Paied
,
"已转账"
],
]);
export
const
enum
PayMethod
{
export
const
enum
PayMethod
{
CardTransfer
=
1
,
CardTransfer
=
1
,
Balance
,
Balance
,
...
...
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