class Schedule():
def content(self):
flex_message = FlexSendMessage(
alt_text='hello',
contents={
"type": "bubble",
"header": {
"type": "box",
"layout": "vertical",
"contents": [
{
"type": "text",
"text": "Root_时刻表 选择查看的组别",
"size": "lg",
"color": "#ffffff"
}
],
"backgroundColor": "#0066ff"
},
"body": {
"type": "box",
"layout": "vertical",
"contents": [
{
"type": "button",
"action": {
"type": "postback",
"label": "WEB",
"data": "Schedule:WEB",
"displayText": "组别:WEB"
},
"margin": "sm",
"color": "#0066ff",
"style": "primary"
},
{
"type": "button",
"action": {
"type": "postback",
"label": "IOT",
"data": "Schedule:IOT",
"displayText": "组别:IOT"
},
"color": "#0066ff",
"style": "primary",
"margin": "sm"
},
{
"type": "button",
"action": {
"type": "postback",
"label": "IOS",
"data": "Schedule:IOS",
"displayText": "组别:IOS"
},
"color": "#0066ff",
"margin": "sm",
"style": "primary"
},
{
"type": "button",
"action": {
"type": "postback",
"label": "Android",
"data": "Schedule:Android",
"displayText": "组别:Android"
},
"color": "#0066ff",
"style": "primary",
"margin": "sm"
},
{
"type": "button",
"action": {
"type": "postback",
"label": "硕班",
"data": "Schedule:硕班",
"displayText": "组别:硕班"
},
"color": "#0066ff",
"style": "primary",
"margin": "sm"
}
]
}
}
)
return flex_message
再来我们这篇要完成的是"时刻表样板",
目前进度已经完成87%了,
要在这几天把所有的功能完成,
我们要先做的是样板的标题名称:Root_时刻表 选择查看的组别,
为了区分使用者有没有管理员权限,
才在名称的最前面加上Root,再来就是下方的按钮要有个组别名称,
分别是"组别:WEB"、"组别:IOT"、"组别:IOS"、"组别:Android"、"组别:硕班",
以及按下按钮以postback方式回传,
然後下一篇我们将展示今天努力的成果~~~
今天的歌曲是 周杰伦-彩虹 Rainbow
https://www.youtube.com/watch?v=WxZvXPTBC0A&list=PLFl6Na2uUoOZBEhBtQ_jeGA4P1V20JvpW&index=20&ab_channel=%E5%91%A8%E6%9D%B0%E5%80%ABJayChou
<<: android studio 30天学习笔记-day 21 -获得日期
26. Remove Duplicates from Sorted Array 今天我们一起挑战le...
卖了那麽多天关子的最後实作,今天就要揭晓我们的题目了:不知道大家有没有玩过前些年很火红的一款小游戏呢...
大家好,打给安安,我是六角学院火箭队6th前端组的小废物POKA 看我的ID就知道我是来吃午餐ㄉ!?...
一. 建立 # 这边先假设环境名称为test123,并且指定python版次为3.8 # 环境名称及...
人的科技文明发展始终来自於人性 在科技的发展与技术的发展之下,在很多的领域都有许多的应用,甚至因为科...