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-21 17:03:19 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7bf0ecf69427800ababc3707c3649241af336ca2
7bf0ecf6
1 parent
cc22cb43
活动报名页面API联调
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
3 deletions
src/api/Reg/index.js
src/components/activity-bar.vue
src/pages/joinList/index.vue
src/api/Reg/index.js
View file @
7bf0ecf
/*
* @Date: 2022-10-20 13:15:00
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-10-2
0 21:42:18
* @LastEditTime: 2022-10-2
1 16:54:03
* @FilePath: /swx/src/api/Reg/index.js
* @Description: 报名信息
*/
...
...
@@ -12,6 +12,8 @@ const Api = {
REG_ADD
:
'/srv/?a=reg_add'
,
REG_EDIT
:
'/srv/?a=reg_edit'
,
REG_CANCEL
:
'/srv/?a=reg_cancel'
,
REG_LIST
:
'/srv/?a=reg_list'
,
REG_STATUS
:
'/srv/?a=reg_set_status'
,
}
/**
...
...
@@ -37,3 +39,15 @@ export const editRegAPI = (params) => fn(fetch.post(Api.REG_EDIT, params));
* @returns
*/
export
const
cancelRegAPI
=
(
params
)
=>
fn
(
fetch
.
post
(
Api
.
REG_CANCEL
,
params
));
/**
* @description: 活动报名列表
* @returns
*/
export
const
listRegAPI
=
(
params
)
=>
fn
(
fetch
.
post
(
Api
.
REG_LIST
,
params
));
/**
* @description: 修改活动状态
* @returns
*/
export
const
statusRegAPI
=
(
params
)
=>
fn
(
fetch
.
post
(
Api
.
REG_STATUS
,
params
));
...
...
src/components/activity-bar.vue
View file @
7bf0ecf
<!--
* @Date: 2022-09-26 16:10:35
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-10-2
0 18:27:46
* @LastEditTime: 2022-10-2
1 13:37:32
* @FilePath: /swx/src/components/activity-bar.vue
* @Description: 活动详情页底部导航栏
-->
...
...
@@ -81,7 +81,7 @@ const goTo = (type) => {
}
} else if (type === 'list') { // 报名列表
Taro.navigateTo({
url: '../joinList/index?id='
url: '../joinList/index?id='
+ getCurrentPageParam().id
})
} else if (type === 'edit') { // 修改活动
const id = getCurrentPageParam().id;
...
...
@@ -93,6 +93,7 @@ const goTo = (type) => {
</script>
<style lang="less">
@import '@/assets/styles/base.less';
...
...
src/pages/joinList/index.vue
View file @
7bf0ecf
This diff is collapsed. Click to expand it.
Please
register
or
login
to post a comment