发布功能支持多类型内容。由内容输入框和浮动菜单组成;交互体验类似目前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

    请求示例:

    1. {
    2. "data": {
    3. "type": "threads",
    4. "relationships": {
    5. "category": {
    6. "data": {
    7. "type": "categories",
    8. "id": "1"
    9. }
    10. },
    11. "attachments": {
    12. "data": [
    13. {
    14. "type": "attachments",
    15. "id": "126"
    16. }
    17. ]
    18. }
    19. },
    20. "links": {
    21. "self": "threads?include=user,category,firstPost,firstPost.images,firstPost.postGoods,question,question.beUser,question.beUser.groups,question.images"
    22. },
    23. "attributes": {
    24. "content": "记录每一天!!!",
    25. "type": 3,
    26. "price": 0,
    27. "free_words": 0,
    28. "is_anonymous": false,
    29. "attachment_price": "",
    30. "longitude": "116.397469",
    31. "latitude": "39.90882139.908821",
    32. "location": "北京市天安门",
    33. "address": "北京市天安门xxxxxxxx"
    34. }
    35. }
    36. }

    示意图
    几种交互状态:
    image.png
    image.png
    image.png
    image.png
    image.png