hookehuyr

活动报名页面API联调

/*
* @Date: 2022-10-20 13:15:00
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-10-20 21:42:18
* @LastEditTime: 2022-10-21 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));
......
<!--
* @Date: 2022-09-26 16:10:35
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-10-20 18:27:46
* @LastEditTime: 2022-10-21 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';
......
This diff is collapsed. Click to expand it.