layout_list按照顺序解析 type:
- 1: banner
- 2: 无轮播banner
- 3: 2x1
- 4: 1x1
- 5: 2x2
- 6: theme头部的分类
- 7: 无title部分 2x1
- 8: 无title部分 1x1
- 9: 无title部分 2x2
- 10:广告 2x1
- 11: 广告 2x2
url部分的设计思路:
应用内跳转
- 分类 schema://theme/category/:key
- detail schema://theme/detail/:key
gp
- market://:pkgName
url跳转
{
"errorCode":0,
"errorMsg":"ok",
"data": {
"layoutList":[
{
"type":1,
"title":"banners",
"key":"fds123",
"background": "",
"url":"",
"items":[
{
"img":'https://s3.amazonaws.com/keyboard_pic/2015090750565550Hi.gif',
"url":"schema:theme.detail",
"description":"",
"download_url":""
},
{
"img":'https://s3.amazonaws.com/keyboard_pic/2015090750565550Hi.gif',
"url":"schema:sticker.detail",
"description":"",
"download_url":""
},{
"img":'https://s3.amazonaws.com/keyboard_pic/2015090750565550Hi.gif',
"url":"schema:sticker.detail",
"description":"",
"download_url":""
}
],
"prefer": 4,
"line_extra":{}
},
{
"type":2,
"title":"My Themes",
"key":"fds1232",
"background": "",
"url":"schema:theme.category",
"prefer":4,
"items":[
{
"img":'https://s3.amazonaws.com/keyboard_pic/2015090750565550Hi.gif',
"url":"schema:theme.detail",
"description":"Sparkle Lotus theme",
"download_url":""
},
{
"img":'https://s3.amazonaws.com/keyboard_pic/2015090750565550Hi.gif',
"url":"schema:theme.detail",
"description":"Sparkle Lotus theme",
"download_url":""
},
{
"img":'https://s3.amazonaws.com/keyboard_pic/2015090750565550Hi.gif',
"url":"schema:theme.detail",
"description":"Sparkle Lotus theme",
"download_url":""
},
{
"img":'https://s3.amazonaws.com/keyboard_pic/2015090750565550Hi.gif',
"url":"schema:theme.detail",
"description":"Sparkle Lotus theme",
"download_url":""
},{
"img":'https://s3.amazonaws.com/keyboard_pic/2015090750565550Hi.gif',
"url":"schema:theme.detail",
"description":"Sparkle Lotus theme",
"download_url":""
},{
"img":'https://s3.amazonaws.com/keyboard_pic/2015090750565550Hi.gif',
"url":"schema:theme.detail",
"description":"Sparkle Lotus theme",
"download_url":""
},{
"img":'https://s3.amazonaws.com/keyboard_pic/2015090750565550Hi.gif',
"url":"schema:theme.detail",
"description":"Sparkle Lotus theme",
"download_url":""
}
],
"line_extra":{}
},
{
"type":3,
"title":"My stickers",
"key":"test123",
"background": "",
"url":"schema:sticker.category",
"prefer":6,
"items":[
{
"img":'https://s3.amazonaws.com/keyboard_pic/2015090750565550Hi.gif',
"url":"schema:theme.detail",
"description":"Sparkle Lotus theme",
"download_url":""
},
{
"img":'https://s3.amazonaws.com/keyboard_pic/2015090750565550Hi.gif',
"url":"schema:theme.detail",
"description":"Sparkle Lotus theme",
"download_url":""
},{
"img":'https://s3.amazonaws.com/keyboard_pic/2015090750565550Hi.gif',
"url":"schema:theme.detail",
"description":"Sparkle Lotus theme",
"download_url":""
},{
"img":'https://s3.amazonaws.com/keyboard_pic/2015090750565550Hi.gif',
"url":"schema:theme.detail",
"description":"Sparkle Lotus theme",
"download_url":""
},{
"img":'https://s3.amazonaws.com/keyboard_pic/2015090750565550Hi.gif',
"url":"schema:theme.detail",
"description":"Sparkle Lotus theme",
"download_url":""
},{
"img":'https://s3.amazonaws.com/keyboard_pic/2015090750565550Hi.gif',
"url":"schema:theme.detail",
"description":"Sparkle Lotus theme",
"download_url":""
},{
"img":'https://s3.amazonaws.com/keyboard_pic/2015090750565550Hi.gif',
"url":"schema:theme.detail",
"description":"Sparkle Lotus theme",
"download_url":""
},{
"img":'https://s3.amazonaws.com/keyboard_pic/2015090750565550Hi.gif',
"url":"schema:theme.detail",
"description":"Sparkle Lotus theme",
"download_url":""
},{
"img":'https://s3.amazonaws.com/keyboard_pic/2015090750565550Hi.gif',
"url":"schema:theme.detail",
"description":"Sparkle Lotus theme",
"download_url":""
},{
"img":'https://s3.amazonaws.com/keyboard_pic/2015090750565550Hi.gif',
"url":"schema:theme.detail",
"description":"Sparkle Lotus theme",
"download_url":""
}
],
"line_extra":{}
}
],
"name":"home-ikeyboard-page",
"extra":{
}
}
}
我认为如果使用 schema://sound/:id 这样会更好