Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
xianyu-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
Tao
5 years ago
Commit
1cf39966952de2522cc991e94e865e70faf4c8f8
1 parent
3535af07
delete uid
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
8 deletions
apps/store/home/news.js
config/home-api-map.js
apps/store/home/news.js
View file @
1cf3996
...
...
@@ -51,7 +51,7 @@ export default function() {
console
.
log
(
obj
);
let
{
isResetPage
,
limit
,
page
,
totalPage
,
type
}
=
obj
;
const
result
=
await
this
.
$api
.
post
(
'/api/ufo/home/newsList'
,
{
page
,
type
:
type
||
''
,
limit
,
uid
:
500031928
,
page
,
type
:
type
||
''
,
limit
,
});
if
(
result
.
code
===
200
)
{
...
...
@@ -67,7 +67,7 @@ export default function() {
}
},
async
fetchNewsTabList
({
commit
})
{
const
result
=
await
this
.
$api
.
post
(
'/api/ufo/home/newsListTab'
,
{
uid
:
500031928
});
const
result
=
await
this
.
$api
.
post
(
'/api/ufo/home/newsListTab'
,
{});
if
(
result
.
code
===
200
)
{
commit
(
Types
.
FETCH_NEWS_TAB_LIST
,
{
list
:
result
.
data
});
return
result
;
...
...
config/home-api-map.js
View file @
1cf3996
...
...
@@ -100,17 +100,15 @@ module.exports = {
ufo
:
true
,
api
:
'ufo.users.listInboxs'
,
params
:
{
uid
:
{
type
:
Number
}
//
uid: {type: Number}
},
//
auth: true,
auth
:
true
,
},
'/api/ufo/home/newsListTab'
:
{
ufo
:
true
,
api
:
'ufo.users.listInboxTypeInfo'
,
params
:
{
uid
:
{
type
:
Number
}
},
// auth: true,
params
:
{},
auth
:
true
,
},
'/api/ufo/coupon/list'
:
{
ufo
:
true
,
...
...
Please
register
or
login
to post a comment