Commit 621c4e0a by 杨明

fixed

1 parent e069a742
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn * @Author: yangming yangming@didihu.com.cn
* @Date: 2023-06-29 21:24:27 * @Date: 2023-06-29 21:24:27
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-07-16 10:22:37 * @LastEditTime: 2023-07-16 15:45:26
* @FilePath: \scrm-micro-link\src\views\activityLink\components\MarketingContent.vue * @FilePath: \scrm-micro-link\src\views\activityLink\components\MarketingContent.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
--> -->
...@@ -304,6 +304,9 @@ export default { ...@@ -304,6 +304,9 @@ export default {
if (info.activityName) { if (info.activityName) {
this.$set(this.editForm, 'marketingTitle', info.activityName) this.$set(this.editForm, 'marketingTitle', info.activityName)
} }
if (info.subTitle) {
this.$set(this.editForm, 'marketingSubtitle', info.activityName)
}
if (info.starttime) { if (info.starttime) {
this.$set(this.editForm, 'activityTime', [info.starttime.replace(/-/g, '/'), info.endtime.replace(/-/g, '/')]) this.$set(this.editForm, 'activityTime', [info.starttime.replace(/-/g, '/'), info.endtime.replace(/-/g, '/')])
} }
......
...@@ -127,7 +127,7 @@ export default { ...@@ -127,7 +127,7 @@ export default {
}, },
watch: { watch: {
subscribe(val) { subscribe(val) {
this.getGiftList(val) if (val) this.getGiftList(val)
}, },
// 'editForm.activityPrice'(newValue, oldValue) { // 'editForm.activityPrice'(newValue, oldValue) {
// this.editForm.activityPrice = ('' + newValue).match(/\d+\.?\d{0,2}/, '') // this.editForm.activityPrice = ('' + newValue).match(/\d+\.?\d{0,2}/, '')
......
...@@ -122,6 +122,9 @@ export default { ...@@ -122,6 +122,9 @@ export default {
deep: true deep: true
} }
}, },
beforeDestroy() {
this.handleAdd()
},
methods: { methods: {
...mapActions('marketing', ['setSubscribe', 'getActivityInfo', 'getTemplateInfo']), ...mapActions('marketing', ['setSubscribe', 'getActivityInfo', 'getTemplateInfo']),
...mapMutations('marketing', ['SET_INIT', 'SET_STEP', 'SET_ACTIVITY_INFO']), ...mapMutations('marketing', ['SET_INIT', 'SET_STEP', 'SET_ACTIVITY_INFO']),
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!