From 7b9d560788bd81e1e94ced98a389ab594459c804 Mon Sep 17 00:00:00 2001 From: "DESKTOP-8UQ1PPR\\09158" Date: Wed, 24 Jan 2024 18:56:04 +0800 Subject: [PATCH] 0000930 --- src/utils/card/card0.js | 29 +++++++++++++++-- src/utils/card/card2.js | 14 +++++++- src/utils/card/card3.js | 72 +++++++++++++++++++++++++++++------------ 3 files changed, 91 insertions(+), 24 deletions(-) diff --git a/src/utils/card/card0.js b/src/utils/card/card0.js index f6773bc..20508fa 100644 --- a/src/utils/card/card0.js +++ b/src/utils/card/card0.js @@ -269,7 +269,7 @@ function genCard(vcard) { } ], "position": "absolute", - "offsetTop": "10%", + "offsetTop": "8%", "offsetStart": "3%", "width": "26%", "alignItems": "center" @@ -318,7 +318,7 @@ function genCard(vcard) { "backgroundColor": "#222222", "width": "100%", "cornerRadius": "5px", - "margin": "md", + "margin": "sm", "paddingTop": "5px", "paddingBottom": "5px", "action": { @@ -326,6 +326,31 @@ function genCard(vcard) { "label": "action", "uri": "${import.meta.env.VITE_APP_SEND_URL}/?userid=${vcard.user_id}&cardid=1&tpl=0" } + }, + { + "type": "box", + "layout": "vertical", + "contents": [ + { + "type": "text", + "text": "其他連結", + "margin": "xs", + "color": "#ffffff", + "weight": "bold", + "align": "center" + } + ], + "margin": "sm", + "width": "100%", + "backgroundColor": "#222222", + "cornerRadius": "5px", + "paddingTop": "5px", + "paddingBottom": "5px", + "action": { + "type": "uri", + "label": "action", + "uri": "http://linecorp.com/" + } } ], "position": "absolute", diff --git a/src/utils/card/card2.js b/src/utils/card/card2.js index 2847817..2e3062b 100644 --- a/src/utils/card/card2.js +++ b/src/utils/card/card2.js @@ -299,6 +299,18 @@ function genCard(vcard) { "height": "sm", "margin": "sm", "style": "primary" + }, + { + "type": "button", + "action": { + "type": "uri", + "label": "其他連結", + "uri": "http://linecorp.com/" + }, + "color": "#464757", + "height": "sm", + "margin": "sm", + "style": "primary" } ], "width": "100px" @@ -314,7 +326,7 @@ function genCard(vcard) { "height": "92%", "borderWidth": "light", "borderColor": "#bbbbbb", - "paddingAll": "10px", + "paddingAll": "5px", "justifyContent": "space-between", "cornerRadius": "lg" }, diff --git a/src/utils/card/card3.js b/src/utils/card/card3.js index ce0bd24..a720414 100644 --- a/src/utils/card/card3.js +++ b/src/utils/card/card3.js @@ -160,34 +160,64 @@ function genCard(vcard) { "layout": "vertical", "width": "35%", "height": "100%", - "paddingAll": "15px", + "paddingAll": "18px", + "justifyContent": "space-between", "alignItems": "center", "contents": [ { "type": "box", "layout": "vertical", - "width": "80%", - "margin": "none", - "borderWidth": "bold", - "borderColor": "#f5c520", - "cornerRadius": "150px", - "contents": [${vcardAvatar}] - }, - { - "type": "text", - "text": "${vcard.name}", - "size": "xl", - "weight": "bold", - "margin": "md" + "contents": [ + { + "type": "box", + "layout": "vertical", + "width": "80%", + "margin": "none", + "borderWidth": "bold", + "borderColor": "#f5c520", + "cornerRadius": "150px", + "contents": [${vcardAvatar}] + }, + { + "type": "text", + "text": "${vcard.name}", + "size": "xl", + "weight": "bold", + "margin": "md" + }, + { + "type": "text", + "text": "${vcard.title}", + "size": "md", + "weight": "regular", + "color": "#666666" + }, + ${vcardPhone} + ] }, { - "type": "text", - "text": "${vcard.title}", - "size": "md", - "weight": "regular", - "color": "#666666" - }, - ${vcardPhone} + "type": "box", + "layout": "vertical", + "contents": [ + { + "type": "text", + "text": "其他連結" + } + ], + "position": "relative", + "height": "40px", + "borderWidth": "light", + "borderColor": "#333333", + "cornerRadius": "lg", + "justifyContent": "center", + "alignItems": "center", + "width": "100%", + "action": { + "type": "uri", + "label": "action", + "uri": "http://linecorp.com/" + } + } ] }, {