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
0456b118
authored
Dec 31, 2021
by
Sixong.Zhu
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'master' of
http://gitlab.corp.qinqinxiaobao.com:9880/uniplat/customer-service
parents
e5f4a21d
3182af42
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
7 deletions
components/message-list.vue
service/order.ts
components/message-list.vue
View file @
0456b118
...
...
@@ -156,7 +156,6 @@
o
&&
n
&&
this
.
messages
.
length
?
this
.
fetchNewMsg
()
:
setTimeout
(()
=>
this
.
fetchNewMsg
(),
300
);
this
.
scroll2End
(
this
.
messages
.
length
?
0
:
100
);
}
private
raiseFileOpen
(
value
:
boolean
)
{
...
...
@@ -341,6 +340,9 @@
if
(
data
.
length
===
0
)
{
// eslint-disable-next-line no-console
console
.
log
(
"没有更多新消息了"
);
this
.
scroll2End
();
}
else
{
setTimeout
(()
=>
this
.
fetchNewMsg
(),
200
);
}
const
removingIds
:
number
[]
=
[];
...
...
service/order.ts
View file @
0456b118
...
...
@@ -10,14 +10,14 @@ import {
UploadImageItem
,
orderPayItemPredict
,
OrderComment
,
PayStatus
PayStatus
,
}
from
"../model"
;
import
{
GeneralOrderDirection
}
from
"../model/order-product"
;
class
OrderService
{
public
readonly
generalOrder
=
"general_order_info"
;
public
readonly
generalOrderPaymentModel
=
"general_order_payment_info"
;
public
readonly
generalOrderDefaultDetailName
=
'userOrderDetail'
;
public
readonly
generalOrderDefaultDetailName
=
"userOrderDetail"
;
private
readonly
commentModel
=
"uniplat_model_remark@general_order"
;
private
readonly
fileModel
=
"general_order_payment_file_info"
;
...
...
@@ -138,11 +138,17 @@ class OrderService {
r
.
pageData
.
rows
,
orderPayItemPredict
);
items
=
items
.
filter
(
i
=>
i
.
status
!==
PayStatus
.
Deleted
&&
i
.
status
!==
PayStatus
.
Cancel
)
items
=
items
.
filter
(
(
i
)
=>
i
.
status
!==
PayStatus
.
Deleted
&&
i
.
status
!==
PayStatus
.
Cancel
);
if
(
withActions
)
{
for
(
let
i
=
0
;
i
<
r
.
pageData
.
rows
.
length
;
i
++
)
{
items
[
i
].
actions
=
r
.
pageData
.
rows
[
i
].
actions
;
r
.
pageData
&&
r
.
pageData
.
rows
&&
r
.
pageData
.
rows
[
i
]
&&
(
items
[
i
].
actions
=
r
.
pageData
.
rows
[
i
].
actions
);
}
}
...
...
@@ -227,7 +233,7 @@ class OrderService {
.
query
();
}
public
sendPayAccountInfo
(
params
:
{
send
:
string
,
type
?:
number
})
{
public
sendPayAccountInfo
(
params
:
{
send
:
string
;
type
?:
number
})
{
return
this
.
getSdk
()
.
domainService
(
"hro_spview"
,
"OrderSetting"
,
"sendPayAccountInfo"
)
.
request
(
"get"
,
{
params
});
...
...
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