From b9dde9d85d646c4f96280157a7696b1b67ee1afc Mon Sep 17 00:00:00 2001 From: mk <2403457699@qq.com> Date: Fri, 5 Jul 2024 11:14:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B4=BB=E5=8A=A8=E6=8A=A5=E5=90=8D,=E9=A6=96?= =?UTF-8?q?=E9=A1=B5=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/activity/detail.vue | 18 +++++++++++++++--- src/views/home/index.vue | 7 +++---- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/src/views/activity/detail.vue b/src/views/activity/detail.vue index ad02830..05b082b 100644 --- a/src/views/activity/detail.vue +++ b/src/views/activity/detail.vue @@ -65,13 +65,25 @@ export default { }, methods: { handelAddResi() { - this.signUp.push({ name: "", mobile: "", remark: "" }) + this.signUp.push({ name: "", mobile: "", remark: "",}) }, handelDelResi() { this.signUp.pop() }, - save(){ - signUp + async save(){ + this.signUp.forEach((item)=>{ + item.activityId = this.info.id; + item.applicationId = this.$store.state.app.userInfo.id; + item.customerId = this.$store.state.app.userInfo.customerId; + }) + let parm = { + formDTOList:this.signUp + } + let res = await addActivityRecord(parm) + if(res){ + this.$toast.success(res) + this.signUp= [{ name: "", mobile: "", remark: "" }] + } }, }, components: {}, diff --git a/src/views/home/index.vue b/src/views/home/index.vue index 8d8ec8b..63b740d 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -68,7 +68,7 @@ 报名人数: {{ item.participants }}/{{ item.participants }}人 - 报名 @@ -282,7 +282,7 @@ export default { filterTagId(tagId){ return this.tagList.filter(item=>item.id === tagId)[0].tagName || '--'; }, - handelClickJump(path) { + handelClickJump(path,item) { if (path === 'event' || path === 'service' || path === 'activity') { if (this.$store.state.app.userInfo.mobile) { this.$router.push({ path: `/${path}` }); @@ -290,8 +290,7 @@ export default { this.showRegister = true; } } else { - this.$router.push({ path: `/${path}` }) - console.log("1111" + path); + this.$router.push({ path: `/${path}`,query:item }) } },