|
|
|
|
@ -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/"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
|