From 2a958df547f99cfe0dab3b1f3aa3ec81a49b32af Mon Sep 17 00:00:00 2001 From: bruce68410 Date: Wed, 22 Nov 2023 01:01:45 +0800 Subject: [PATCH] =?UTF-8?q?=E9=99=84=E5=8A=A0=E5=BB=A3=E5=91=8A=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E6=B8=AC=E8=A9=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/js/flex2html.min.js | 2 + src/utils/adcard.js | 19 +++++++ src/utils/card.js | 1 + src/views/Send/index.vue | 101 +++++++++++++++++++------------------ 4 files changed, 75 insertions(+), 48 deletions(-) create mode 100644 src/utils/adcard.js diff --git a/public/js/flex2html.min.js b/public/js/flex2html.min.js index 2b9a051..4f10f79 100644 --- a/public/js/flex2html.min.js +++ b/public/js/flex2html.min.js @@ -829,6 +829,8 @@ function bubble_struc(json) { direction = !direction || direction == "" ? "ltr" : direction; size = upper2digit(size); + console.log(json); + return `
`; } function hero_struc(json) { diff --git a/src/utils/adcard.js b/src/utils/adcard.js new file mode 100644 index 0000000..9ee2d59 --- /dev/null +++ b/src/utils/adcard.js @@ -0,0 +1,19 @@ +import { genCard } from "./card/index"; + +function genAdCard (option) { + // const { json5: vcard } = ctx; + + // return { + // type: "flex", + // altText: vcard.altText, + // contents: { + // type: "carousel", + // contents: ctx + // }, + // }; + + console.log(option,"test"); + return option; +} + +export { genAdCard} \ No newline at end of file diff --git a/src/utils/card.js b/src/utils/card.js index f5a7aa6..c49f19e 100644 --- a/src/utils/card.js +++ b/src/utils/card.js @@ -1,6 +1,7 @@ import { genCard } from "./card/index"; function cardFactory(option) { + console.log(genCard(option)); return genCard(option); } diff --git a/src/views/Send/index.vue b/src/views/Send/index.vue index f31bd12..853aaf6 100644 --- a/src/views/Send/index.vue +++ b/src/views/Send/index.vue @@ -1,7 +1,7 @@