Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
ufo-app-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
TaoHuang
6 years ago
Commit
547363a6fc38c1cd635e010a107689d31a1c4797
1 parent
a08ac0cb
fix
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
apps/store/invite/invite/actions.js
apps/store/invite/invite/actions.js
View file @
547363a
import
*
as
Types
from
'./types'
;
import
{
get
}
from
'lodash'
;
export
default
{
async
fetchOrderList
({
commit
})
{
const
result
=
await
this
.
$api
.
get
(
'/api/ufo/invite/recordList'
);
if
(
result
.
code
===
200
)
{
commit
(
Types
.
FETCH_INVITE_ORDERLIST
,
{
list
:
result
.
data
.
list
});
commit
(
Types
.
FETCH_INVITE_ORDERLIST
,
{
list
:
get
(
result
,
'data.list'
,
[])
});
}
},
...
...
@@ -13,7 +14,9 @@ export default {
const
result
=
await
this
.
$api
.
get
(
'/api/ufo/invite/friendList'
);
if
(
result
.
code
===
200
)
{
commit
(
Types
.
FETCH_INVITE_CODE
,
result
.
data
);
commit
(
Types
.
FETCH_INVITE_CODE
,
Object
.
assign
({
inviteRecordList
:
[]
},
result
.
data
));
}
},
...
...
Please
register
or
login
to post a comment