JSON ข้อความ · Message objectflexlay-realestate-mortgage-summary.json
{
"type": "flex",
"altText": "ผลคำนวณสินเชื่อบ้าน: ผ่อนประมาณ ฿21,350/เดือน 30 ปี วงเงิน ฿4,000,000",
"contents": {
"type": "bubble",
"size": "mega",
"body": {
"type": "box",
"layout": "vertical",
"background": {
"type": "linearGradient",
"angle": "150deg",
"endColor": "#0369A1",
"startColor": "#0F172A"
},
"paddingAll": "xl",
"contents": [
{
"type": "text",
"size": "sm",
"text": "ผลคำนวณสินเชื่อบ้าน",
"color": "#FFFFFF"
},
{
"type": "text",
"size": "xs",
"text": "ยอดผ่อนโดยประมาณ",
"color": "#FFFFFF",
"margin": "md"
},
{
"type": "box",
"layout": "baseline",
"margin": "xs",
"contents": [
{
"type": "text",
"size": "3xl",
"text": "฿21,350",
"flex": 0,
"color": "#FFFFFF",
"weight": "bold"
},
{
"type": "text",
"size": "sm",
"text": "/เดือน",
"flex": 0,
"color": "#FFFFFF",
"margin": "sm"
}
]
},
{
"type": "box",
"layout": "vertical",
"margin": "xl",
"spacing": "sm",
"paddingAll": "lg",
"cornerRadius": "lg",
"backgroundColor": "#FFFFFF",
"contents": [
{
"type": "box",
"layout": "horizontal",
"contents": [
{
"type": "text",
"size": "sm",
"text": "ราคาบ้าน",
"flex": 2,
"color": "#5F6673"
},
{
"type": "text",
"size": "sm",
"text": "฿5,000,000",
"flex": 4,
"wrap": true,
"align": "end",
"color": "#111827"
}
]
},
{
"type": "box",
"layout": "horizontal",
"contents": [
{
"type": "text",
"size": "sm",
"text": "เงินดาวน์ (20%)",
"flex": 2,
"color": "#5F6673"
},
{
"type": "text",
"size": "sm",
"text": "฿1,000,000",
"flex": 4,
"wrap": true,
"align": "end",
"color": "#111827"
}
]
},
{
"type": "box",
"layout": "horizontal",
"contents": [
{
"type": "text",
"size": "sm",
"text": "วงเงินกู้",
"flex": 2,
"color": "#5F6673"
},
{
"type": "text",
"size": "sm",
"text": "฿4,000,000",
"flex": 4,
"wrap": true,
"align": "end",
"color": "#111827",
"weight": "bold"
}
]
},
{
"type": "box",
"layout": "horizontal",
"contents": [
{
"type": "text",
"size": "sm",
"text": "ระยะเวลา",
"flex": 2,
"color": "#5F6673"
},
{
"type": "text",
"size": "sm",
"text": "30 ปี",
"flex": 4,
"wrap": true,
"align": "end",
"color": "#111827"
}
]
},
{
"type": "box",
"layout": "horizontal",
"contents": [
{
"type": "text",
"size": "sm",
"text": "ดอกเบี้ยเฉลี่ย",
"flex": 2,
"color": "#5F6673"
},
{
"type": "text",
"size": "sm",
"text": "5.25% ต่อปี",
"flex": 4,
"wrap": true,
"align": "end",
"color": "#111827"
}
]
},
{
"type": "box",
"layout": "horizontal",
"contents": [
{
"type": "text",
"size": "sm",
"text": "รายได้ที่แนะนำ",
"flex": 2,
"color": "#5F6673"
},
{
"type": "text",
"size": "sm",
"text": "≥ ฿53,400/เดือน",
"flex": 4,
"wrap": true,
"align": "end",
"color": "#15803D",
"weight": "bold"
}
]
}
]
},
{
"type": "text",
"size": "xxs",
"text": "* เป็นการประมาณการเบื้องต้น เงื่อนไขจริงขึ้นอยู่กับการพิจารณาของธนาคาร",
"wrap": true,
"color": "#FFFFFF",
"margin": "md"
}
]
},
"footer": {
"type": "box",
"layout": "vertical",
"spacing": "sm",
"paddingAll": "lg",
"contents": [
{
"type": "button",
"color": "#0369A1",
"style": "primary",
"height": "sm",
"action": {
"type": "postback",
"data": "action=mortgage_consult&loan=4000000&term=30",
"label": "ปรึกษาเจ้าหน้าที่",
"displayText": "ขอปรึกษาสินเชื่อบ้าน"
}
},
{
"type": "button",
"color": "#0369A1",
"style": "link",
"height": "sm",
"action": {
"type": "uri",
"uri": "https://example.com/mortgage-calculator",
"label": "คำนวณใหม่"
}
}
]
}
}
}