|
@@ -3,9 +3,6 @@ const _Http = getApp().globalData.http;
|
|
|
const MFT = require("../../../../utils/matchingFeilType");
|
|
|
let dowmCount = null;
|
|
|
Component({
|
|
|
- /**
|
|
|
- * 组件的属性列表
|
|
|
- */
|
|
|
properties: {
|
|
|
padBot: {
|
|
|
type: Boolean,
|
|
@@ -15,7 +12,6 @@ Component({
|
|
|
options: {
|
|
|
addGlobalClass: true
|
|
|
},
|
|
|
-
|
|
|
lifetimes: {
|
|
|
ready() {
|
|
|
this.getList();
|
|
@@ -26,10 +22,6 @@ Component({
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
-
|
|
|
- /**
|
|
|
- * 组件的初始数据
|
|
|
- */
|
|
|
data: {
|
|
|
listHeight: 0, //列表高度
|
|
|
tabActiveTitle: "列表", //列表类型
|
|
@@ -39,7 +31,7 @@ Component({
|
|
|
"nocache": true,
|
|
|
"pageNumber": 1,
|
|
|
"pageSize": 20,
|
|
|
- "parentid": wx.getStorageSync('siteP').salematerialfolderid,
|
|
|
+ "parentid": "默认",
|
|
|
"pageTotal": 1,
|
|
|
"where": {
|
|
|
"condition": ""
|
|
@@ -49,10 +41,6 @@ Component({
|
|
|
inTotal: 0, //总计
|
|
|
sort: [], //排序规则
|
|
|
},
|
|
|
-
|
|
|
- /**
|
|
|
- * 组件的方法列表
|
|
|
- */
|
|
|
methods: {
|
|
|
/* 是否收藏 */
|
|
|
changeCollect() {
|
|
@@ -61,7 +49,6 @@ Component({
|
|
|
attachmentid,
|
|
|
rowindex
|
|
|
} = this.data.fileSelected;
|
|
|
- console.log(isCollect)
|
|
|
_Http.basic({
|
|
|
"classname": "system.attachment.MediaCenter",
|
|
|
"method": isCollect == 0 ? "collectAttachment" : "uncollectAttachment",
|
|
@@ -70,7 +57,6 @@ Component({
|
|
|
"attachmentid": attachmentid
|
|
|
}
|
|
|
}).then(res => {
|
|
|
- console.log(res)
|
|
|
if (res.msg != '成功') return wx.showToast({
|
|
|
title: res.msg,
|
|
|
icon: "none"
|
|
@@ -111,13 +97,13 @@ Component({
|
|
|
})
|
|
|
if (this.data.content.pageNumber > this.data.content.pageTotal) return;
|
|
|
let content = this.data.content;
|
|
|
+ if (content.parentid == '默认') content.parentid = wx.getStorageSync('siteP').salematerialfolderid;
|
|
|
if (this.data.sort[0]) content.sort = this.data.sort;
|
|
|
_Http.basic({
|
|
|
"classname": "saletool.salematerial.salematerial",
|
|
|
"method": (this.data.tabActiveTitle == '列表') ? "selectList" : "selectMyList",
|
|
|
content
|
|
|
}).then(res => {
|
|
|
- console.log("营销", res)
|
|
|
this.selectComponent('#ListBox').RefreshToComplete();
|
|
|
if (res.msg != '成功') return wx.showToast({
|
|
|
title: res.msg,
|
|
@@ -179,7 +165,6 @@ Component({
|
|
|
changeId({
|
|
|
detail
|
|
|
}) {
|
|
|
- console.log(detail)
|
|
|
this.setData({
|
|
|
fileSelected: detail,
|
|
|
show: true
|