From 6960827a55fbb7edd6bd9fc3b3c95795ffac6250 Mon Sep 17 00:00:00 2001 From: handongxun Date: Fri, 27 Dec 2019 17:58:01 +0800 Subject: [PATCH] add --- .../app-plus/view/components/ad/index.vue | 182 ++++++++++++++++++ .../app-plus/view/framework/plugins/data.js | 5 +- 2 files changed, 185 insertions(+), 2 deletions(-) create mode 100644 src/platforms/app-plus/view/components/ad/index.vue diff --git a/src/platforms/app-plus/view/components/ad/index.vue b/src/platforms/app-plus/view/components/ad/index.vue new file mode 100644 index 000000000..9cde5f14a --- /dev/null +++ b/src/platforms/app-plus/view/components/ad/index.vue @@ -0,0 +1,182 @@ + + + + diff --git a/src/platforms/app-plus/view/framework/plugins/data.js b/src/platforms/app-plus/view/framework/plugins/data.js index c2acdeb00..eb1ee2d83 100644 --- a/src/platforms/app-plus/view/framework/plugins/data.js +++ b/src/platforms/app-plus/view/framework/plugins/data.js @@ -69,7 +69,7 @@ function broadcast (vm, componentName, eventName, ...params) { }) } -const NATIVE_COMPONENTS = ['Camera', 'LivePlayer', 'LivePusher', 'Map', 'Video', 'CoverView', 'CoverImage'] +const NATIVE_COMPONENTS = ['Camera', 'LivePlayer', 'LivePusher', 'Map', 'Video', 'CoverView', 'CoverImage', 'Ad'] function updateView () { const pages = getCurrentPages() @@ -81,7 +81,8 @@ function updateView () { ) } -window.addEventListener('resize', updateView) +window.addEventListener('resize', updateView) +window.addEventListener('updateview', updateView) function vdSync ({ data, -- GitLab