diff --git a/components/diy/float-window.vue b/components/diy/float-window.vue index e957231b..6099a38d 100644 --- a/components/diy/float-window.vue +++ b/components/diy/float-window.vue @@ -1,6 +1,6 @@ @@ -22,10 +23,12 @@ import { isEmpty } from '@/common/js/common/common.js'; import imageEmpty from '@/components/diy/modules/image-empty.vue'; import componentOnlineService from '@/components/online-service/online-service'; + import componentQuickNav from '@/components/quick-nav/quick-nav'; export default { components: { imageEmpty, - componentOnlineService + componentOnlineService, + componentQuickNav }, props: { propValue: { @@ -83,11 +86,22 @@ y: y }); }, - url_open() { + // 按钮事件 + btn_event() { const { button_jump, button_link } = this.form; - // 如果是指定链接,并且链接不为空的情况下跳转 - if (button_jump == 'link' && !isEmpty(button_link)) { - app.globalData.url_open(button_link.page); + switch(button_jump) { + // 链接 + case 'link' : + if (!isEmpty(button_link)) { + app.globalData.url_open(button_link.page); + } + break; + // 快捷导航 + case 'quick_nav' : + if ((this.$refs.quick_nav || null) != null) { + this.$refs.quick_nav.quick_open_event(); + } + break; } }, }, diff --git a/components/quick-nav/quick-nav.vue b/components/quick-nav/quick-nav.vue index bd215851..c2db9b74 100644 --- a/components/quick-nav/quick-nav.vue +++ b/components/quick-nav/quick-nav.vue @@ -1,7 +1,7 @@