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 }) } },