提交 54acbf02 authored 作者: GOD_ZYX's avatar GOD_ZYX

有一个接口 没传 semesterId

上级 6b6e192e
......@@ -123,7 +123,7 @@ Page({
wx.showLoading({ title: '加载中...', mask: true })
let _data = this.data.discussList
this.param.offset = _data.length
DiscussApi.getCourseDiscussList(this.cid, this.param, (json) => {
DiscussApi.getCourseDiscussList(this.cid, this.sid, this.param, (json) => {
Array.prototype.push.apply(_data, json)
json.length && this.setData({ 'discussList': _data })
wx.hideLoading()
......@@ -136,7 +136,7 @@ Page({
updatenew: function () {
wx.showLoading({ title: '更新中...', mask: true })
this.param.offset = 0
DiscussApi.getCourseDiscussList(this.cid, this.param, (json) => {
DiscussApi.getCourseDiscussList(this.cid, this.sid, this.param, (json) => {
this.setData({ 'discussList': json })
wx.hideLoading()
wx.showToast({ title: '已更新', icon: 'none' })
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论