Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
h5-base
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
new-sing
h5-base
Commits
2a8a4568
Commit
2a8a4568
authored
Jan 09, 2019
by
chenfenglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化+数据显示
parent
54ec955a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
activity.vue
src/components/buy/activity.vue
+4
-3
api.js
src/service/api.js
+4
-4
No files found.
src/components/buy/activity.vue
View file @
2a8a4568
...
...
@@ -362,10 +362,10 @@
}
})
}
},
getInviteResult
(){
getInviteResultApi
().
then
(
res
=>
{
let
id
=
this
.
$route
.
query
.
shopId
;
getInviteResultApi
({},
id
).
then
(
res
=>
{
this
.
earnings
=
res
.
earnings
;
this
.
userNum
=
res
.
user_num
;
});
...
...
@@ -375,7 +375,8 @@
page
:
1
,
limit
:
4
}
getInviteListApi
(
json
).
then
(
res
=>
{
let
id
=
this
.
$route
.
query
.
shopId
;
getInviteListApi
(
json
,
id
).
then
(
res
=>
{
this
.
inviteList
=
res
.
list
});
}
...
...
src/service/api.js
View file @
2a8a4568
...
...
@@ -124,13 +124,13 @@ export const getGoodsListApi = function (json) {
};
//获取邀请战绩收益
const
getInviteResultUrl
=
`
${
_baseUrl
}
api/client/user/invite/earnings`
;
export
const
getInviteResultApi
=
function
(
json
)
{
return
Vue
.
prototype
.
$fetch
(
getInviteResultUrl
,
json
)
export
const
getInviteResultApi
=
function
(
json
,
id
)
{
return
Vue
.
prototype
.
$fetch
(
`
${
getInviteResultUrl
}
/
${
id
}
`
,
json
)
};
//获取邀请战绩用户列表
const
getInviteListUrl
=
`
${
_baseUrl
}
api/client/user/invite/list`
;
export
const
getInviteListApi
=
function
(
json
)
{
return
Vue
.
prototype
.
$fetch
(
getInviteListUrl
,
json
)
export
const
getInviteListApi
=
function
(
json
,
id
)
{
return
Vue
.
prototype
.
$fetch
(
`
${
getInviteListUrl
}
/
${
id
}
`
,
json
)
};
// 发送验证码
const
sendMobileCodeUrl
=
`
${
_baseUrl
}
api/client/mobile/code`
;
...
...
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