发布功能支持多类型内容。由内容输入框和浮动菜单组成;交互体验类似目前APP中的主题详情的回复页面,或者IM软件的对话;
可以参考目前自带帖子回复功能
目前需要完成功能:选择版块、选择位置、拍照、表情
UI根据示意图预留
设计到图标:icon3.zip
基于腾讯位置服务,接入2D的SDK即可,减少第三方包的大小,位置数据由服务端处理,具体看我们的文档,文档:https://lbs.qq.com/search/
发布相关文档
版块列表:https://discuz.com/api-docs/v1/CategoryList.html
发布主题文档:https://discuz.com/api-docs/v1/ThreadCreate.html
上传图片:https://discuz.com/api-docs/v1/AttachmentCreate.html
地图位置搜索:http://d.conggu.com/v2/PlaceSearch.html
删除图片:https://discuz.com/api-docs/v1/AttachmentDelete.html
请求示例:
{"data": {"type": "threads","relationships": {"category": {"data": {"type": "categories","id": "1"}},"attachments": {"data": [{"type": "attachments","id": "126"}]}},"links": {"self": "threads?include=user,category,firstPost,firstPost.images,firstPost.postGoods,question,question.beUser,question.beUser.groups,question.images"},"attributes": {"content": "记录每一天!!!","type": 3,"price": 0,"free_words": 0,"is_anonymous": false,"attachment_price": "","longitude": "116.397469","latitude": "39.90882139.908821","location": "北京市天安门","address": "北京市天安门xxxxxxxx"}}}
示意图
几种交互状态:




