diff --git a/src/views/sylive/activity/components/activity-edit.vue b/src/views/sylive/activity/components/activity-edit.vue
index 39d819e..8b65988 100644
--- a/src/views/sylive/activity/components/activity-edit.vue
+++ b/src/views/sylive/activity/components/activity-edit.vue
@@ -185,6 +185,60 @@
新增分享文案
+
+
+ 否
+ 是
+
+
+
+
+ 黑
+ 白
+
+
+
+
+
+ 否
+ 是
+
+
+
+
+
+
+
+
+
@@ -264,24 +318,6 @@
新增活动底部菜单
-
-
- 否
- 是
-
-
-
-
- 否
- 是
-
-
-
-
- 黑
- 白
-
-
@@ -324,6 +360,7 @@
import EleImageUpload from 'ele-admin/es/ele-image-upload';
import request from '@/utils/request';
import { addActivity, updateActivity } from '@/api/sylive/activity';
+ import { listGoods } from '@/api/sylive/goods';
export default {
components: {
TinymceEditor,
@@ -359,11 +396,12 @@
serviceLink: '',
bottoms: [],
blacklist: 0,
- signBespeak: 0,
- barrageColor: 0,
+ signBespeak: { status: 0, title: '', content: '', itemId: '' },
+ barrage: { color: 0, title: '' },
pay: { way: 1, price: '', img: [] }
};
return {
+ goodsList: [],
editVersion: false,
editoption: {
height: 300,
@@ -433,6 +471,19 @@
}
},
methods: {
+ /* 查询商品 */
+ goodsQuery() {
+ if (!this.form.activityId) {
+ return false;
+ }
+ listGoods({ activityId: this.form.activityId, price: 0 })
+ .then((list) => {
+ this.goodsList = list;
+ })
+ .catch((e) => {
+ this.$message.error(e.message);
+ });
+ },
/* 添加海报描述 */
addShareTitle() {
this.form.shareTitle.push('');
@@ -697,6 +748,7 @@
if (this.form.shareTitle.length == 0) {
this.form.shareTitle.push('');
}
+ this.goodsQuery();
} else {
this.form.bottoms = [];
this.form.bgImg = [];