Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xinrenli-app
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
郑云飞
xinrenli-app
Commits
9b6ffc81
Commit
9b6ffc81
authored
Mar 15, 2023
by
wsm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
3/15
parent
b992107c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
14 deletions
+38
-14
api/my/index.js
+12
-1
my/invite/index.vue
+26
-13
No files found.
api/my/index.js
View file @
9b6ffc81
...
...
@@ -11,7 +11,17 @@ const addUserFeedback = (params) => {
const
couponListGet
=
(
params
)
=>
{
return
ApiHttp
(
'/xinrenli/coupon/list'
,
params
,
'GET'
)
}
// 查询邀请列表
const
queryInviteListGet
=
(
params
)
=>
{
return
ApiHttp
(
'/xinrenli/Inviter/list'
,
params
,
'GET'
)
}
// 查询邀请列表
const
addInviterGet
=
(
params
)
=>
{
return
ApiHttp
(
'/xinrenli/Inviter'
,
params
,
'POST'
)
}
export
{
addUserFeedback
,
couponListGet
couponListGet
,
queryInviteListGet
,
addInviterGet
}
\ No newline at end of file
my/invite/index.vue
View file @
9b6ffc81
...
...
@@ -22,7 +22,7 @@
</view>
</view>
</view>
<u-button
text=
"继续邀请新用户"
color=
"#2C66FF"
:customStyle=
"
{
<
!--
<
u-button
text=
"继续邀请新用户"
color=
"#2C66FF"
:customStyle=
"
{
width: '710rpx',
height: '80rpx',
borderRadius: '10rpx',
...
...
@@ -31,16 +31,17 @@
left: '20rpx',
bottom: '142rpx'
}">
</u-button>
-->
</view>
<
!--
<
view>
<view>
<button
class=
"invite-btn"
data-name=
"shareBtn"
open-type=
"share"
>
继续邀请新用户
</button>
</view>
-->
</view>
</view>
</
template
>
<
script
>
import
apiBaseConfig
from
'@/config/index.js'
;
import
{
queryInviteListGet
,
addInviterGet
}
from
'@/api/my/index.js'
export
default
{
data
()
{
return
{
...
...
@@ -52,11 +53,25 @@
//分享
onShareAppMessage
()
{
return
{
title
:
'分享的标题'
title
:
'分享的标题'
,
success
()
{
addInviterGet
().
then
(
res
=>
{
})
}
}
},
onLoad
()
{},
methods
:
{}
onLoad
()
{
this
.
getList
()
},
methods
:
{
// 获取邀请列表
getList
(){
queryInviteListGet
().
then
(
res
=>
{
})
}
}
};
</
script
>
...
...
@@ -114,20 +129,18 @@
}
.invite-btn
{
position
:
fixed
;
bottom
:
142
rpx
;
left
:
0
;
right
:
0
;
width
:
710
rpx
;
height
:
80
rpx
;
border-radius
:
10
rpx
;
//
padding
:
0
rpx
;
//
position
:
absolute
;
//
left
:
20
rpx
;
bottom
:
142
rpx
;
color
:
#FFFFFF
;
font-size
:
18px
;
text-align
:
center
;
line-height
:
80
rpx
;
background
:
#3476ff
;
//
transform
:
translate
(
50%
,
0
);
//
left
:
50%
;
//
margin-left
:
-350
rpx
;
}
</
style
>
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