|
|
|
@ -21,7 +21,7 @@ function genCard(vcard) {
|
|
|
|
"type": "text",
|
|
|
|
"type": "text",
|
|
|
|
"text": "${vcard.url}",
|
|
|
|
"text": "${vcard.url}",
|
|
|
|
"color": "#6c6664",
|
|
|
|
"color": "#6c6664",
|
|
|
|
"size": "md"
|
|
|
|
"size": "sm"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
},
|
|
|
|
@ -45,7 +45,7 @@ function genCard(vcard) {
|
|
|
|
"type": "text",
|
|
|
|
"type": "text",
|
|
|
|
"text": "${vcard.url}",
|
|
|
|
"text": "${vcard.url}",
|
|
|
|
"color": "#6c6664",
|
|
|
|
"color": "#6c6664",
|
|
|
|
"size": "md",
|
|
|
|
"size": "sm",
|
|
|
|
"action": {
|
|
|
|
"action": {
|
|
|
|
"type": "uri",
|
|
|
|
"type": "uri",
|
|
|
|
"label": "yahoo",
|
|
|
|
"label": "yahoo",
|
|
|
|
@ -80,7 +80,7 @@ function genCard(vcard) {
|
|
|
|
"type": "text",
|
|
|
|
"type": "text",
|
|
|
|
"text": "${vcard.address}",
|
|
|
|
"text": "${vcard.address}",
|
|
|
|
"color": "#6c6664",
|
|
|
|
"color": "#6c6664",
|
|
|
|
"size": "md",
|
|
|
|
"size": "sm",
|
|
|
|
"wrap": true,
|
|
|
|
"wrap": true,
|
|
|
|
"action": {
|
|
|
|
"action": {
|
|
|
|
"type": "uri",
|
|
|
|
"type": "uri",
|
|
|
|
@ -118,7 +118,7 @@ function genCard(vcard) {
|
|
|
|
"type": "text",
|
|
|
|
"type": "text",
|
|
|
|
"text": "${vcard.tel}",
|
|
|
|
"text": "${vcard.tel}",
|
|
|
|
"color": "#6c6664",
|
|
|
|
"color": "#6c6664",
|
|
|
|
"size": "md",
|
|
|
|
"size": "sm",
|
|
|
|
"action": {
|
|
|
|
"action": {
|
|
|
|
"type": "uri",
|
|
|
|
"type": "uri",
|
|
|
|
"label": "action",
|
|
|
|
"label": "action",
|
|
|
|
@ -138,13 +138,22 @@ function genCard(vcard) {
|
|
|
|
vcardPhone = `
|
|
|
|
vcardPhone = `
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"type": "box",
|
|
|
|
"type": "box",
|
|
|
|
"layout": "vertical",
|
|
|
|
"layout": "baseline",
|
|
|
|
|
|
|
|
"margin": "md",
|
|
|
|
|
|
|
|
"paddingStart": "lg",
|
|
|
|
"contents": [
|
|
|
|
"contents": [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
"type": "icon",
|
|
|
|
|
|
|
|
"url": "https://369cycle.zltest.com.tw/tggo/template/icon/phone.png",
|
|
|
|
|
|
|
|
"size": "sm",
|
|
|
|
|
|
|
|
"offsetTop": "xs",
|
|
|
|
|
|
|
|
"offsetEnd": "md"
|
|
|
|
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"type": "text",
|
|
|
|
"type": "text",
|
|
|
|
"text": "${vcard.phone}",
|
|
|
|
"text": "${vcard.phone}",
|
|
|
|
"size": "xxl",
|
|
|
|
"size": "sm",
|
|
|
|
"color": "#93476e",
|
|
|
|
"color": "#6c6664",
|
|
|
|
"action": {
|
|
|
|
"action": {
|
|
|
|
"type": "uri",
|
|
|
|
"type": "uri",
|
|
|
|
"label": "action",
|
|
|
|
"label": "action",
|
|
|
|
@ -229,6 +238,7 @@ function genCard(vcard) {
|
|
|
|
"body": {
|
|
|
|
"body": {
|
|
|
|
"type": "box",
|
|
|
|
"type": "box",
|
|
|
|
"layout": "vertical",
|
|
|
|
"layout": "vertical",
|
|
|
|
|
|
|
|
"height": "290px",
|
|
|
|
"contents": [
|
|
|
|
"contents": [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"type": "box",
|
|
|
|
"type": "box",
|
|
|
|
@ -243,10 +253,15 @@ function genCard(vcard) {
|
|
|
|
"aspectMode": "cover"
|
|
|
|
"aspectMode": "cover"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
],
|
|
|
|
"height": "100%",
|
|
|
|
|
|
|
|
"position": "absolute",
|
|
|
|
"position": "absolute",
|
|
|
|
"width": "100%",
|
|
|
|
"width": "100%",
|
|
|
|
"justifyContent": "flex-end"
|
|
|
|
"justifyContent": "flex-end",
|
|
|
|
|
|
|
|
"height": "100%",
|
|
|
|
|
|
|
|
"action": {
|
|
|
|
|
|
|
|
"type": "uri",
|
|
|
|
|
|
|
|
"label": "action",
|
|
|
|
|
|
|
|
"uri": "http://linecorp.com/"
|
|
|
|
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"type": "box",
|
|
|
|
"type": "box",
|
|
|
|
@ -262,13 +277,14 @@ function genCard(vcard) {
|
|
|
|
"contents": [
|
|
|
|
"contents": [
|
|
|
|
${vcardAvatar}
|
|
|
|
${vcardAvatar}
|
|
|
|
],
|
|
|
|
],
|
|
|
|
"width": "90%",
|
|
|
|
"width": "90px",
|
|
|
|
"cornerRadius": "xxl"
|
|
|
|
"cornerRadius": "xl"
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"type": "box",
|
|
|
|
"type": "box",
|
|
|
|
"layout": "vertical",
|
|
|
|
"layout": "vertical",
|
|
|
|
"justifyContent": "space-between",
|
|
|
|
"justifyContent": "space-between",
|
|
|
|
|
|
|
|
"width": "80%",
|
|
|
|
"contents": [
|
|
|
|
"contents": [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"type": "button",
|
|
|
|
"type": "button",
|
|
|
|
@ -280,7 +296,7 @@ function genCard(vcard) {
|
|
|
|
"color": "#755483",
|
|
|
|
"color": "#755483",
|
|
|
|
"height": "sm",
|
|
|
|
"height": "sm",
|
|
|
|
"style": "primary",
|
|
|
|
"style": "primary",
|
|
|
|
"margin": "md"
|
|
|
|
"margin": "xs"
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"type": "button",
|
|
|
|
"type": "button",
|
|
|
|
@ -292,7 +308,7 @@ function genCard(vcard) {
|
|
|
|
"color": "#93476e",
|
|
|
|
"color": "#93476e",
|
|
|
|
"height": "sm",
|
|
|
|
"height": "sm",
|
|
|
|
"style": "primary",
|
|
|
|
"style": "primary",
|
|
|
|
"margin": "md"
|
|
|
|
"margin": "xs"
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"type": "button",
|
|
|
|
"type": "button",
|
|
|
|
@ -304,16 +320,16 @@ function genCard(vcard) {
|
|
|
|
"color": "#c73f6d",
|
|
|
|
"color": "#c73f6d",
|
|
|
|
"height": "sm",
|
|
|
|
"height": "sm",
|
|
|
|
"style": "primary",
|
|
|
|
"style": "primary",
|
|
|
|
"margin": "md"
|
|
|
|
"margin": "xs"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
],
|
|
|
|
"margin": "xxl"
|
|
|
|
"margin": "xxl"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
],
|
|
|
|
"paddingTop": "8%",
|
|
|
|
"paddingTop": "5%",
|
|
|
|
"paddingBottom": "8%",
|
|
|
|
"paddingBottom": "5%",
|
|
|
|
"justifyContent": "flex-start",
|
|
|
|
"justifyContent": "space-between",
|
|
|
|
"width": "30%",
|
|
|
|
"width": "35%",
|
|
|
|
"alignItems": "center",
|
|
|
|
"alignItems": "center",
|
|
|
|
"height": "100%",
|
|
|
|
"height": "100%",
|
|
|
|
"position": "relative"
|
|
|
|
"position": "relative"
|
|
|
|
@ -331,7 +347,9 @@ function genCard(vcard) {
|
|
|
|
"text": "Company",
|
|
|
|
"text": "Company",
|
|
|
|
"size": "3xl",
|
|
|
|
"size": "3xl",
|
|
|
|
"weight": "bold",
|
|
|
|
"weight": "bold",
|
|
|
|
"color": "#c6b0c9"
|
|
|
|
"color": "#c6b0c9",
|
|
|
|
|
|
|
|
"offsetBottom": "sm",
|
|
|
|
|
|
|
|
"offsetEnd": "md"
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"type": "box",
|
|
|
|
"type": "box",
|
|
|
|
@ -350,7 +368,8 @@ function genCard(vcard) {
|
|
|
|
"paddingStart": "lg",
|
|
|
|
"paddingStart": "lg",
|
|
|
|
"cornerRadius": "xxl",
|
|
|
|
"cornerRadius": "xxl",
|
|
|
|
"paddingEnd": "lg",
|
|
|
|
"paddingEnd": "lg",
|
|
|
|
"offsetBottom": "md"
|
|
|
|
"position": "absolute",
|
|
|
|
|
|
|
|
"offsetTop": "xxl"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
],
|
|
|
|
"cornerRadius": "15px",
|
|
|
|
"cornerRadius": "15px",
|
|
|
|
@ -399,12 +418,16 @@ function genCard(vcard) {
|
|
|
|
"type": "box",
|
|
|
|
"type": "box",
|
|
|
|
"layout": "vertical",
|
|
|
|
"layout": "vertical",
|
|
|
|
"contents": [
|
|
|
|
"contents": [
|
|
|
|
${vcardPhone}
|
|
|
|
|
|
|
|
${vcardTel}
|
|
|
|
${vcardTel}
|
|
|
|
|
|
|
|
${vcardPhone}
|
|
|
|
${vcardLink}
|
|
|
|
${vcardLink}
|
|
|
|
${vcardEmail}
|
|
|
|
${vcardEmail}
|
|
|
|
${vcardAddr}
|
|
|
|
${vcardAddr}
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
"position": "absolute",
|
|
|
|
|
|
|
|
"width": "1px",
|
|
|
|
|
|
|
|
"height": "1px",
|
|
|
|
|
|
|
|
"backgroundColor": "#333333",
|
|
|
|
"type": "box",
|
|
|
|
"type": "box",
|
|
|
|
"layout": "vertical",
|
|
|
|
"layout": "vertical",
|
|
|
|
"contents": [
|
|
|
|
"contents": [
|
|
|
|
@ -422,7 +445,7 @@ function genCard(vcard) {
|
|
|
|
],
|
|
|
|
],
|
|
|
|
"height": "100%",
|
|
|
|
"height": "100%",
|
|
|
|
"position": "relative",
|
|
|
|
"position": "relative",
|
|
|
|
"width": "70%",
|
|
|
|
"width": "65%",
|
|
|
|
"paddingStart": "lg",
|
|
|
|
"paddingStart": "lg",
|
|
|
|
"paddingEnd": "md",
|
|
|
|
"paddingEnd": "md",
|
|
|
|
"paddingBottom": "lg"
|
|
|
|
"paddingBottom": "lg"
|
|
|
|
|