From 93b364f04940276a8d4dc1d7e9c6d04c99d85fba Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Wed, 8 Feb 2023 13:56:58 +0800 Subject: [PATCH] bug --- .../components/Detail.vue | 51 ++++++++++++++++++- 1 file changed, 50 insertions(+), 1 deletion(-) diff --git a/project/activeAnalysis/app/AppMarketingActivity/components/Detail.vue b/project/activeAnalysis/app/AppMarketingActivity/components/Detail.vue index fd43e438..44497674 100644 --- a/project/activeAnalysis/app/AppMarketingActivity/components/Detail.vue +++ b/project/activeAnalysis/app/AppMarketingActivity/components/Detail.vue @@ -97,6 +97,13 @@ :current.sync="search.current" :size.sync="search.size" @getList="getList"> + + + @@ -149,6 +156,17 @@ + + + + + + + @@ -166,6 +184,10 @@ data () { return { currIndex: 0, + form: { + phone: '' + }, + id: '', tabList: ['基本信息', '报名记录', '抽奖记录'], colConfigs: [ { prop: 'name', label: '姓名', align: 'left', width: '200px' }, @@ -193,7 +215,8 @@ prizes: [], tableData: [], total: 0, - info: {} + info: {}, + isShowPhone: false } }, @@ -217,6 +240,32 @@ }) }, + changePhone (id, phone) { + this.id = id + this.form.phone = phone + + this.isShowPhone = true + }, + + onConfirm () { + this.$refs.form.validate((valid) => { + if (valid) { + this.instance.post(`/app/appmarketingactivityinfo/updateBindPhone`, null, { + params: { + ...this.form, + signupId: this.params.id || '' + } + }).then(res => { + if (res.code == 0) { + this.$message.success('更换成功') + this.isShowPhone = false + this.getList() + } + }) + } + }) + }, + getPrizeList() { this.instance.post(`/app/appmarketingactivityinfo/raffleList?activityId=${this.params.id}`, null, { params: {