|
@@ -20,6 +20,7 @@ Page({
|
|
|
total: 0,
|
|
|
sort: [],
|
|
|
content: {
|
|
|
+ nocache: true,
|
|
|
pageNumber: 1,
|
|
|
pageSize: 20,
|
|
|
pageTotal: 1,
|
|
@@ -77,13 +78,10 @@ Page({
|
|
|
"method": this.data.tabsActiveIndex == 0 ? "selectList" : "selectMyList",
|
|
|
content
|
|
|
}).then(res => {
|
|
|
- console.log("列表", res)
|
|
|
-
|
|
|
let deleteList = [],
|
|
|
initID = '9999' + wx.getStorageSync('userMsg').userid;
|
|
|
res.data.forEach(v => (initID == v.sat_sharematerial_classid && v.title == '') ? deleteList.push(v.sat_sharematerialid) : '');
|
|
|
if (deleteList.length != 0) return this.handleDelete(deleteList);
|
|
|
-
|
|
|
this.selectComponent('#ListBox').RefreshToComplete();
|
|
|
if (res.msg != '成功') return wx.showToast({
|
|
|
title: res.msg,
|
|
@@ -97,7 +95,6 @@ Page({
|
|
|
res.data[i].cover = MFT.getSpecifiedImage(obj);
|
|
|
res.data[i].attinfos = list;
|
|
|
}
|
|
|
-
|
|
|
this.setData({
|
|
|
list: (res.pageNumber == 1) ? res.data : this.data.list.concat(res.data),
|
|
|
['content.pageNumber']: res.pageNumber + 1,
|
|
@@ -120,18 +117,18 @@ Page({
|
|
|
if (res.msg == '成功') this.getList();
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
/* 清除搜索输入 */
|
|
|
searchClear() {
|
|
|
this.setData({
|
|
|
['content.where.condition']: ""
|
|
|
})
|
|
|
-
|
|
|
+ this.getList(true);
|
|
|
},
|
|
|
/* 搜索框输入 */
|
|
|
searchInput({
|
|
|
detail
|
|
|
}) {
|
|
|
+ if (this.data.content.where.condition == detail.trim()) return;
|
|
|
clearTimeout(dowmCount);
|
|
|
this.setData({
|
|
|
['content.where.condition']: detail.trim()
|
|
@@ -188,9 +185,6 @@ Page({
|
|
|
mainActiveIndex: detail.index || 0,
|
|
|
});
|
|
|
},
|
|
|
- /**
|
|
|
- * 生命周期函数--监听页面初次渲染完成
|
|
|
- */
|
|
|
onReady() {
|
|
|
//滚动区域高度
|
|
|
getHeight.getHeight('.menu', this).then(res => {
|
|
@@ -199,7 +193,6 @@ Page({
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
addData() {
|
|
|
this.setData({
|
|
|
sheetShow: true
|