@@ -174,6 +181,7 @@
round2ActiveLimit: '',
round3ActiveLimit: '',
round4ActiveLimit: '',
+ wxQrcode: [],
prizes: []
},
id: ''
@@ -197,6 +205,9 @@
if (res.code === 0) {
this.form = res.data
+ this.form.wxQrcode = [{
+ url: res.data.wxQrcode
+ }]
if (res.data.prizes.length) {
this.form.prizes = res.data.prizes.map(v => {
return {
@@ -233,6 +244,7 @@
this.instance.post(`/app/appmarketingactivityinfo/addOrUpdate`, {
...this.form,
id: this.params.id || '',
+ wxQrcode: this.form.wxQrcode[0].url,
prizes: this.form.prizes.map(v => {
return {
...v,
diff --git a/project/activeAnalysis/app/AppMarketingActivity/components/Detail.vue b/project/activeAnalysis/app/AppMarketingActivity/components/Detail.vue
index 6ed4b6f7..10342f10 100644
--- a/project/activeAnalysis/app/AppMarketingActivity/components/Detail.vue
+++ b/project/activeAnalysis/app/AppMarketingActivity/components/Detail.vue
@@ -1,44 +1,95 @@
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -55,11 +106,23 @@
data () {
return {
+ currIndex: 0,
+ tabList: ['基本信息', '报名记录', '抽奖记录'],
colConfigs: [
{ prop: 'userName', label: '姓名', align: 'left', width: '200px' },
{ prop: 'userPhone', label: '手机号', align: 'center' },
{ prop: 'createTime', label: '报名时间', align: 'center' }
],
+ prizeColConfigs: [
+ { prop: 'userName', label: '姓名', align: 'left', width: '200px' },
+ { prop: 'userPhone', label: '手机号', align: 'center' },
+ { prop: 'createTime', label: '报名时间', align: 'center' }
+ ],
+ prizeList: [],
+ prizeSearch: {
+ size: 10,
+ current: 1
+ },
search: {
size: 10,
current: 1
@@ -73,11 +136,12 @@
created () {
this.getInfo()
this.getList()
+ this.getPrizeList()
},
methods: {
getList() {
- this.instance.post(`/app/appactivityinfo/signUpList?activityId=${this.params.id}`, null, {
+ this.instance.post(`/app/appmarketingactivityinfo/signUpList?activityId=${this.params.id}`, null, {
params: {
...this.search
}
@@ -89,8 +153,21 @@
})
},
+ getPrizeList() {
+ this.instance.post(`/app/appmarketingactivityinfo/raffleList?activityId=${this.params.id}`, null, {
+ params: {
+ ...this.search
+ }
+ }).then(res => {
+ if (res.code == 0) {
+ this.prizeList = res.data.records
+ this.prizeSearch.total = res.data.total
+ }
+ })
+ },
+
getInfo () {
- this.instance.post(`/app/appactivityinfo/queryDetailById?id=${this.params.id}`).then(res => {
+ this.instance.post(`/app/appmarketingactivityinfo/queryDetailById?id=${this.params.id}`).then(res => {
if (res.code == 0) {
if (res.data) {
this.info = res.data