Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
swx_weapp
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2022-10-24 15:57:06 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
9bb4a7cf027387965226bf192b5bdf4793251434
9bb4a7cf
1 parent
83bf6e9b
✨ feat: 修改资料页面API联调
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
1 deletions
src/api/Member/index.js
src/pages/editInfo/index.vue
src/api/Member/index.js
View file @
9bb4a7c
/*
* @Date: 2022-10-20 13:15:00
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-10-2
1 17:29
:36
* @LastEditTime: 2022-10-2
4 14:34
:36
* @FilePath: /swx/src/api/Member/index.js
* @Description: 主办方用户
*/
...
...
@@ -9,6 +9,9 @@ import { fn, fetch } from '../fn';
const
Api
=
{
MEMBER_INFO
:
'/srv/?a=member_info'
,
MEMBER_LIST
:
'/srv/?a=member_list'
,
MEMBER_TRACE_LIST
:
'/srv/?a=member_my_trace_list'
,
MEMBER_EDIT
:
'/srv/?a=member_edit'
,
}
/**
...
...
@@ -16,3 +19,21 @@ const Api = {
* @returns
*/
export
const
infoMemberAPI
=
(
params
)
=>
fn
(
fetch
.
get
(
Api
.
MEMBER_INFO
,
params
));
/**
* @description: 主办方用户列表
* @returns
*/
export
const
listMemberAPI
=
(
params
)
=>
fn
(
fetch
.
get
(
Api
.
MEMBER_LIST
,
params
));
/**
* @description: 我陪伴的用户列表
* @returns
*/
export
const
traceMemberAPI
=
(
params
)
=>
fn
(
fetch
.
get
(
Api
.
MEMBER_TRACE_LIST
,
params
));
/**
* @description: 修改用户资料
* @returns
*/
export
const
editMemberAPI
=
(
params
)
=>
fn
(
fetch
.
post
(
Api
.
MEMBER_EDIT
,
params
));
...
...
src/pages/editInfo/index.vue
View file @
9bb4a7c
This diff is collapsed. Click to expand it.
Please
register
or
login
to post a comment