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
0822f25b
authored
Dec 21, 2021
by
Sixong.Zhu
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
update style
parent
d249e5f0
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
5 deletions
components/message.vue
model/order.ts
service/order.ts
components/message.vue
View file @
0822f25b
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
'justify-content-center': isWithdrawMessage,
'justify-content-center': isWithdrawMessage,
'offset-bottom': matchKeywords,
'offset-bottom': matchKeywords,
}"
}"
@mouseenter="hoverWithdraw"
>
>
<div
class=
"msg-content"
:class=
"
{ 'algin-left': !isMyMessage }">
<div
class=
"msg-content"
:class=
"
{ 'algin-left': !isMyMessage }">
<div
<div
...
@@ -101,7 +102,6 @@
...
@@ -101,7 +102,6 @@
!isQuestionAnswerMessage &&
!isQuestionAnswerMessage &&
isChatMember
isChatMember
"
"
@
mouseenter=
"hoverWithdraw"
@
click=
"withdraw"
@
click=
"withdraw"
>
撤回此消息
</span
>
撤回此消息
</span
>
>
...
@@ -171,6 +171,7 @@
...
@@ -171,6 +171,7 @@
import
Xim
from
"@/customer-service/xim"
;
import
Xim
from
"@/customer-service/xim"
;
const
twoMinutes
=
2
*
60
*
1000
;
const
twoMinutes
=
2
*
60
*
1000
;
const
twoHours
=
2
*
60
*
60
*
1000
;
const
messageMapping
=
new
Map
<
dto
.
MessageType
,
string
>
([
const
messageMapping
=
new
Map
<
dto
.
MessageType
,
string
>
([
[
dto
.
MessageType
.
Image
,
"image-message"
],
[
dto
.
MessageType
.
Image
,
"image-message"
],
...
@@ -266,8 +267,11 @@
...
@@ -266,8 +267,11 @@
private
get
canWithdraw
()
{
private
get
canWithdraw
()
{
if
(
this
.
backend
&&
this
.
data
)
{
if
(
this
.
backend
&&
this
.
data
)
{
if
(
this
.
needReadTip
)
{
return
new
Date
().
valueOf
()
-
this
.
data
.
ts
*
1000
<
twoMinutes
;
return
new
Date
().
valueOf
()
-
this
.
data
.
ts
*
1000
<
twoMinutes
;
}
}
return
new
Date
().
valueOf
()
-
this
.
data
.
ts
*
1000
<
twoHours
;
}
return
false
;
return
false
;
}
}
...
@@ -276,7 +280,8 @@
...
@@ -276,7 +280,8 @@
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
.
PayV1
&&
this
.
data
.
type
!==
dto
.
MessageType
.
RefundV1
this
.
data
.
type
!==
dto
.
MessageType
.
RefundV1
&&
this
.
data
.
type
!==
dto
.
MessageType
.
PayResult
);
);
}
}
...
@@ -496,8 +501,12 @@
...
@@ -496,8 +501,12 @@
}
}
private
hoverWithdraw
()
{
private
hoverWithdraw
()
{
this
.
isWithdraw
=
if
(
!
this
.
isWithdraw
||
!
this
.
isMyMessage
)
{
new
Date
().
valueOf
()
-
this
.
data
.
ts
*
1000
<
twoMinutes
;
return
;
}
this
.
isWithdraw
=
this
.
needReadTip
?
new
Date
().
valueOf
()
-
this
.
data
.
ts
*
1000
<
twoMinutes
:
new
Date
().
valueOf
()
-
this
.
data
.
ts
*
1000
<
twoHours
;
}
}
private
openReaderList
(
e
:
MouseEvent
)
{
private
openReaderList
(
e
:
MouseEvent
)
{
...
...
model/order.ts
View file @
0822f25b
...
@@ -135,6 +135,7 @@ export interface OrderPayItem {
...
@@ -135,6 +135,7 @@ export interface OrderPayItem {
OpenningBankName
?:
string
;
OpenningBankName
?:
string
;
bankAccountNo
?:
string
;
bankAccountNo
?:
string
;
paymentItemId
?:
number
;
paymentItemId
?:
number
;
paymentDate
:
string
;
}
}
export
interface
OrderComment
{
export
interface
OrderComment
{
...
@@ -163,6 +164,7 @@ export const orderPayItemPredict = {
...
@@ -163,6 +164,7 @@ export const orderPayItemPredict = {
OpenningBankName
:
"ProviderHandleId#ServiceProviderBank.OpenningBankName"
,
OpenningBankName
:
"ProviderHandleId#ServiceProviderBank.OpenningBankName"
,
bankAccountNo
:
"ProviderHandleId#ServiceProviderBank.AccountNo"
,
bankAccountNo
:
"ProviderHandleId#ServiceProviderBank.AccountNo"
,
paymentItemId
:
"PaymentItemId"
,
paymentItemId
:
"PaymentItemId"
,
paymentDate
:
"PaymentDate"
,
};
};
export
const
enum
ChatOpenDirection
{
export
const
enum
ChatOpenDirection
{
...
@@ -190,6 +192,8 @@ export const enum OperationType {
...
@@ -190,6 +192,8 @@ export const enum OperationType {
}
}
export
interface
UploadImageItem
{
export
interface
UploadImageItem
{
id
:
number
;
v
:
number
;
url
:
string
;
url
:
string
;
fileName
:
string
;
fileName
:
string
;
time
:
string
;
time
:
string
;
...
...
service/order.ts
View file @
0822f25b
...
@@ -17,6 +17,7 @@ class OrderService {
...
@@ -17,6 +17,7 @@ class OrderService {
public
readonly
generalOrder
=
"general_order_info"
;
public
readonly
generalOrder
=
"general_order_info"
;
public
readonly
generalOrderPaymentModel
=
"general_order_payment_info"
;
public
readonly
generalOrderPaymentModel
=
"general_order_payment_info"
;
private
readonly
commentModel
=
"uniplat_model_remark@general_order"
;
private
readonly
commentModel
=
"uniplat_model_remark@general_order"
;
private
readonly
fileModel
=
"general_order_payment_file_info"
;
private
readonly
handler
=
new
UniplatSdkExtender
();
private
readonly
handler
=
new
UniplatSdkExtender
();
private
innerSdk
:
UniplatSdk
|
null
=
null
;
private
innerSdk
:
UniplatSdk
|
null
=
null
;
...
@@ -171,7 +172,7 @@ class OrderService {
...
@@ -171,7 +172,7 @@ class OrderService {
public
getImages4Payment
(
payment
:
number
)
{
public
getImages4Payment
(
payment
:
number
)
{
return
this
.
getSdk
()
return
this
.
getSdk
()
.
model
(
"general_order_payment_file_info"
)
.
model
(
this
.
fileModel
)
.
list
()
.
list
()
.
addPrefilter
({
PaymentId
:
payment
})
.
addPrefilter
({
PaymentId
:
payment
})
.
query
({
item_size
:
10
,
pageIndex
:
1
})
.
query
({
item_size
:
10
,
pageIndex
:
1
})
...
@@ -181,10 +182,23 @@ class OrderService {
...
@@ -181,10 +182,23 @@ class OrderService {
fileSize
:
"FileSize"
,
fileSize
:
"FileSize"
,
fileName
:
"FileName"
,
fileName
:
"FileName"
,
url
:
"Url"
,
url
:
"Url"
,
id
:
"ID"
,
v
:
"uniplat_version"
,
})
})
);
);
}
}
public
deleteImage
(
payment
:
number
,
image
:
number
,
v
:
number
)
{
return
this
.
getSdk
()
.
model
(
this
.
fileModel
)
.
action
(
"delete"
)
.
updateInitialParams
({
selected_list
:
[{
v
,
id
:
image
}],
prefilters
:
[{
property
:
"PaymentId"
,
value
:
payment
}],
})
.
execute
();
}
public
buildOrder
(
o
:
metaRow
)
{
public
buildOrder
(
o
:
metaRow
)
{
return
this
.
handler
.
buildRow
<
OrderTableListItem
>
(
o
,
orderPredict
);
return
this
.
handler
.
buildRow
<
OrderTableListItem
>
(
o
,
orderPredict
);
}
}
...
...
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