From 9e639f7e6738c35fcc2a0a6bee9fcdc82cb8e9ea Mon Sep 17 00:00:00 2001 From: TiaStars Date: Fri, 22 Sep 2023 09:38:05 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E6=84=BF=E8=80=85=E7=AB=AF=E6=B4=BB?= =?UTF-8?q?=E5=8A=A8=E6=8E=A8=E8=8D=90=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/index.js | 14 ++ .../jifenduihuan/huodongtuijian/index.js | 34 ++++ .../jifenduihuan/jifenhuoqu/index.js | 13 ++ src/main.js | 3 + src/views/components/dialog/index.vue | 45 ++++- src/views/components/myInput/index.vue | 4 +- src/views/components/myPagination/index.vue | 3 +- .../volunteer/activityRecommend/index.vue | 4 +- src/views/volunteer/components/invite.vue | 7 +- src/views/volunteer/components/recommend.vue | 174 +++++++++++------- .../volunteer/conversionRecord/index.vue | 23 +-- .../volunteer/integralConversion/index.vue | 69 ++++--- src/views/volunteer/integralGain/index.vue | 13 +- 13 files changed, 281 insertions(+), 125 deletions(-) create mode 100644 src/api/index.js create mode 100644 src/api/volunteer/jifenduihuan/huodongtuijian/index.js create mode 100644 src/api/volunteer/jifenduihuan/jifenhuoqu/index.js diff --git a/src/api/index.js b/src/api/index.js new file mode 100644 index 0000000..356f010 --- /dev/null +++ b/src/api/index.js @@ -0,0 +1,14 @@ +/* + * @Descripttion: + * @version: + * @Author: JC9527 + * @Date: 2023-09-21 10:39:35 + * @LastEditors: JC9527 + * @LastEditTime: 2023-09-21 10:41:22 + */ +import huodongtuijian from "./volunteer/jifenduihuan/huodongtuijian"; + + +export default { + huodongtuijian +} \ No newline at end of file diff --git a/src/api/volunteer/jifenduihuan/huodongtuijian/index.js b/src/api/volunteer/jifenduihuan/huodongtuijian/index.js new file mode 100644 index 0000000..571c257 --- /dev/null +++ b/src/api/volunteer/jifenduihuan/huodongtuijian/index.js @@ -0,0 +1,34 @@ +/* + * @Descripttion: + * @version: + * @Author: JC9527 + * @Date: 2023-09-21 10:36:32 + * @LastEditors: JC9527 + * @LastEditTime: 2023-09-21 10:57:12 + */ +import request from "@/utils/request"; + +export default { + list(params){ + return request({ + url:'/zhiyuanzhe/activity/list', + method:"get", + params, + }) + }, + // 查看详情 + activity(id){ + return request({ + url:'/zhiyuanzhe/activity' + id, + method:"get", + }) + }, + // 参与活动 + zyzreport(data) { + return request({ + url:'/zhiyuanzhe/zyzreport', + method:"post", + data + }) + } +} \ No newline at end of file diff --git a/src/api/volunteer/jifenduihuan/jifenhuoqu/index.js b/src/api/volunteer/jifenduihuan/jifenhuoqu/index.js new file mode 100644 index 0000000..90ac56a --- /dev/null +++ b/src/api/volunteer/jifenduihuan/jifenhuoqu/index.js @@ -0,0 +1,13 @@ +/* + * @Descripttion: + * @version: + * @Author: JC9527 + * @Date: 2023-09-21 09:46:16 + * @LastEditors: JC9527 + * @LastEditTime: 2023-09-21 11:02:10 + */ +import request from "@/utils/request"; + +export default { + +} \ No newline at end of file diff --git a/src/main.js b/src/main.js index 71d44cf..3c50273 100644 --- a/src/main.js +++ b/src/main.js @@ -7,6 +7,8 @@ import './assets/styles/element-variables.scss' import "@/utils/rem.js"; //计算rem基准 +import API from "@/api/index.js"; + import '@/assets/styles/index.scss' // global css import '@/assets/styles/ruoyi.scss' // ruoyi css import App from './App' @@ -50,6 +52,7 @@ Vue.prototype.selectDictLabel = selectDictLabel Vue.prototype.selectDictLabels = selectDictLabels Vue.prototype.download = download Vue.prototype.handleTree = handleTree +Vue.prototype.$api = API // 全局组件挂载 Vue.component('DictTag', DictTag) diff --git a/src/views/components/dialog/index.vue b/src/views/components/dialog/index.vue index f0fd575..2f31987 100644 --- a/src/views/components/dialog/index.vue +++ b/src/views/components/dialog/index.vue @@ -4,7 +4,7 @@ * @Author: JC9527 * @Date: 2023-09-20 14:14:24 * @LastEditors: JC9527 - * @LastEditTime: 2023-09-20 14:40:07 + * @LastEditTime: 2023-09-21 10:13:28 --> + + + 查看 -
- - 参与 +
+ + 报名
@@ -67,67 +75,34 @@ + + + + diff --git a/src/views/volunteer/conversionRecord/index.vue b/src/views/volunteer/conversionRecord/index.vue index 26c5d15..72860dd 100644 --- a/src/views/volunteer/conversionRecord/index.vue +++ b/src/views/volunteer/conversionRecord/index.vue @@ -4,7 +4,7 @@ * @Author: JC9527 * @Date: 2023-09-18 10:08:30 * @LastEditors: JC9527 - * @LastEditTime: 2023-09-20 14:53:05 + * @LastEditTime: 2023-09-21 09:39:41 -->