diff --git a/src/pages/activity/ActivityManager.vue b/src/pages/activity/ActivityManager.vue index 6f979d4..39e41a6 100644 --- a/src/pages/activity/ActivityManager.vue +++ b/src/pages/activity/ActivityManager.vue @@ -1,165 +1,173 @@ - - - - - - - - - {{item.name}} - {{item.description}} - - - - 使用 - 配置 - - - - + + + + + + + + + {{item.name}} + {{item.description}} + + + + 使用 + 配置 + + + + - - - - + - 添加活动 - - - - - - + + + + + + 添加活动 + + + + + + - diff --git a/src/pages/activity/addActivity.vue b/src/pages/activity/addActivity.vue index fa5d093..3424827 100644 --- a/src/pages/activity/addActivity.vue +++ b/src/pages/activity/addActivity.vue @@ -59,8 +59,8 @@ 类型{{index+1}} - - + + 删除 @@ -125,8 +125,8 @@ export default { methods: { addActivityInput() { this.inputActivityList.push({ - value1: '', - value2: '' + name: '', + defaultVal: '' }) }, delActivityInput(index) { @@ -152,10 +152,12 @@ export default { that.formValidate.activityDsc = data.data.results.description that.formValidate.activityName = data.data.results.name that.formValidate.uri = data.data.results.uri + that.formValidate.logo = data.data.results.logo || ''; data.data.results.params.forEach(item => { that.inputActivityList.push({ - value1: item.name, - value2: item.description + id: item.id, + name: item.name, + defaultVal: item.defaultVal }) }) }) @@ -188,14 +190,14 @@ export default { let param = [] that.inputActivityList.forEach(element => { param.push({ - defaultVal: element.value1, - description: that.formValidate.activityDsc, - key: element.value2, - name: 1, + defaultVal: element.defaultVal, + description: element.name, + key: element.name, + name: element.name, type: 2, - id: that.id + id: element.id, }) - }) + }); // param = JSON.stringify(param) let data = { appId: that.formValidate.appId, diff --git a/src/pages/activity/useActivityStepFoure.vue b/src/pages/activity/useActivityStepFoure.vue index a031793..6af05a7 100644 --- a/src/pages/activity/useActivityStepFoure.vue +++ b/src/pages/activity/useActivityStepFoure.vue @@ -12,7 +12,7 @@ - + diff --git a/src/pages/activity/useActivityStepOne.vue b/src/pages/activity/useActivityStepOne.vue index 8c10ffd..7d0bafc 100644 --- a/src/pages/activity/useActivityStepOne.vue +++ b/src/pages/activity/useActivityStepOne.vue @@ -18,7 +18,7 @@ - + diff --git a/src/pages/activity/useTable.vue b/src/pages/activity/useTable.vue index cae9d92..5026017 100644 --- a/src/pages/activity/useTable.vue +++ b/src/pages/activity/useTable.vue @@ -74,8 +74,8 @@ export default { organizations: store.getters.useData.selectCompanyValue, params: store.getters.useData.inputActivityList, stores: store.getters.useData.selectShopValue, - id: store.getters.id, - scheduleId: '123', + id: store.getters.useData.id, + scheduleId: store.getters.useData.scheduleId, isGetActivityInfo: true } ActivityManager.saveActivityData(data, function (data) {