diff --git a/src/api/sylive/activity/index.js b/src/api/sylive/activity/index.js index 624d30d..0810f30 100644 --- a/src/api/sylive/activity/index.js +++ b/src/api/sylive/activity/index.js @@ -333,3 +333,15 @@ export async function getStatisticsStackedWatchOrder(params) { } return Promise.reject(new Error(res.data.message)); } + +/** + * 修改抽奖配置 + * @param data 活动信息 + */ +export async function updateActivityDraw(data) { + const res = await request.put('/sylive/activity/draw', data); + if (res.data.code === 0) { + return res.data.message; + } + return Promise.reject(new Error(res.data.message)); +} diff --git a/src/views/sylive/activity/components/activity-draw.vue b/src/views/sylive/activity/components/activity-draw.vue new file mode 100644 index 0000000..c9fea2c --- /dev/null +++ b/src/views/sylive/activity/components/activity-draw.vue @@ -0,0 +1,359 @@ + + + + + + + + 建议尺寸1125X2000,主题内容建议做在顶部0~1700像素区域 + + + + + + 当内容有 中奖标题 发短信时就会自动替换为抽奖类型的标题 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 删除 + + + + + + + + + 新增抽奖类型 + + + + + + + + + + + + + + + + 删除 + + + + + + + + + 新增中奖人数 + + + + + 取消 + + 保存 + + + + + + + diff --git a/src/views/sylive/activity/index.vue b/src/views/sylive/activity/index.vue index 54c6e0d..dc7afbb 100644 --- a/src/views/sylive/activity/index.vue +++ b/src/views/sylive/activity/index.vue @@ -89,6 +89,7 @@ 修改商品 修改分组 复制活动 + 抽奖配置 + + @@ -140,6 +147,7 @@ import ActivityEdit from './components/activity-edit.vue'; import ActivityItem from './components/activity-item.vue'; import ActivityCoupon from './components/activity-coupon.vue'; + import ActivityDraw from './components/activity-draw.vue'; import { pageActivity, removeActivity, @@ -156,7 +164,8 @@ ActivitySearch, ActivityEdit, ActivityItem, - ActivityCoupon + ActivityCoupon, + ActivityDraw }, data() { return { @@ -240,6 +249,8 @@ showEditItem: false, // 是否显示编辑券弹窗 showEditCoupon: false, + // 是否显示编辑券弹窗 + showEditDraw: false, // 是否显示二维码弹窗 showCode: false }; @@ -255,10 +266,16 @@ this.showEdit = true; } else if (command === 'item') { this.current = row.item; + this.current.activityId = row.activityId; this.showEditItem = true; } else if (command === 'coupon') { this.current = row.coupon; + this.current.activityId = row.activityId; this.showEditCoupon = true; + } else if (command === 'draw') { + this.current = row.draw; + this.current.activityId = row.activityId; + this.showEditDraw = true; } else if (command === 'goods') { this.$router.replace('/sylive/goods?id=' + row.activityId); } else if (command === 'groups') {