Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
chensh236 committed Jun 27, 2019
1 parent 7d4086c commit 6dc9030
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions pages/CollectList/CollectList.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
// 减少标题内容字数
this.reduce()
this.loadTask(1)
},

loadTask: async function(page) {
Expand Down Expand Up @@ -126,6 +123,7 @@ Page({
noMore: this.data.currentPage * this.data.pageSize >= res.data.pagination.total,
isLoading: false,
})
this.reduce()
},

/**
Expand All @@ -139,6 +137,7 @@ Page({
* 生命周期函数--监听页面显示
*/
onShow: function () {
this.loadTask(1)
},

/**
Expand Down
1 change: 1 addition & 0 deletions pages/Detail/Detail.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ Page({
}
}
res.data.data = arr
console.log(arr)
for (let i in res.data.data) {
res.data.data[i].time = moment(new Date(res.data.data[i].time * 1000)).locale('zh-cn').startOf('minute').fromNow()
}
Expand Down
4 changes: 1 addition & 3 deletions pages/SearchResult/SearchResult.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ Page({
chosed_status: "执行中",
chosed_reward: "请选择",
// 筛选条件
key: "",
sort: "new",
type: "",
status: "",
Expand Down Expand Up @@ -148,7 +147,6 @@ Page({
},
cleaning: function(e) {
this.setData({
key: "",
typing_content: "",
isFocus: false
})
Expand Down Expand Up @@ -226,7 +224,7 @@ Page({
page: this.data.currentPage,
size: this.data.pageSize,
sort: this.data.sort,
keyword: this.data.key,
keyword: this.data.typing_content,
type: this.data.type,
status: this.data.status,
reward: this.data.reward
Expand Down

0 comments on commit 6dc9030

Please sign in to comment.