|
@@ -3,15 +3,18 @@
|
|
|
<AdCampaign @send-campaign="getCampaign" @send-targetType="getTargetType"></AdCampaign>
|
|
|
<AdGroup @send-groupId="getGroupId"></AdGroup>
|
|
|
<component :is="currentComponent"></component>
|
|
|
+ <Creativity v-if="product"></Creativity>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
-import { computed, provide, ref } from 'vue'
|
|
|
+import { computed, provide, ref, onUnmounted } from 'vue'
|
|
|
import AdCampaign from './component/AdCampaign.vue'
|
|
|
import AdGroup from './component/AdGroup.vue'
|
|
|
import ContentTarget from './component/ContentTarget.vue'
|
|
|
import CustomTarget from './component/CustomTarget.vue'
|
|
|
+import Creativity from './component/Creativity.vue'
|
|
|
+import emitter from '/@/utils/emitter'
|
|
|
|
|
|
const respCampaignId = ref('')
|
|
|
const respCampaignName = ref('')
|
|
@@ -47,6 +50,16 @@ function getGroupId(data) {
|
|
|
respAdGroupId.value = data.adGroupId
|
|
|
}
|
|
|
|
|
|
+// 若有商品被添加显示创意
|
|
|
+const product = ref('')
|
|
|
+emitter.on('send-firstAsin', (value: any) => {
|
|
|
+ product.value = value
|
|
|
+})
|
|
|
+
|
|
|
+onUnmounted(() => {
|
|
|
+ emitter.all.clear()
|
|
|
+})
|
|
|
+
|
|
|
</script>
|
|
|
|
|
|
<style scoped>
|