Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

新闻,栏目API请求参数问题? #735

Open
zzj19930721 opened this issue Jun 1, 2018 · 7 comments
Open

新闻,栏目API请求参数问题? #735

zzj19930721 opened this issue Jun 1, 2018 · 7 comments

Comments

@zzj19930721
Copy link

在分页请求栏目新闻的时候:
url: https://s.0to9.top/api/v1/stl/contents?channelId=27&totalNum=2&pageNum=3&siteId=24
//查询数组
var req = {
channelId: 27,
totalNum : 2 , //显示数量
pageNum : 1, //页码
};
但页码改变,请求数据都是第1,2条, 我的页码参数是不是错了啊???
@starlying 致敬大佬

@starlying
Copy link
Contributor

翻页需要用pageContents,这个还没出来呢,现在只能先用没有翻页的contents

@zzj19930721
Copy link
Author

@starlying 大佬,如果可以6月份计划中,把这个添加进去吧, 2018的小程序计划我也能帮点忙

@starlying
Copy link
Contributor

好的,我给加到计划里,小程序开发遇到需要的接口也贴出来,我们会优先开发

@zzj19930721
Copy link
Author

谢谢 ,现在还有一个优化:
接口Channel,conten 的属性imageUrl貌似还是转译路径。
看可以把这个字段编译成绝对路径不,不然这边动态绑定 操作比较麻烦。
请求的数据:
{
"linkUrl": "",
"subTitle": "现代风格",
"imageUrl": "@/upload/images/2018/1/20164539672.jpg",
"videoUrl": "",
"fileUrl": "王冬雷 | William",
}

@starlying
Copy link
Contributor

确实,我们改进一下

@zzj19930721
Copy link
Author

@starlying 大佬 这2个API优化,进度能快点吗 哈哈

@starlying
Copy link
Contributor

好的👌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants