Browse Source

营销物料

zhaoxiaohai 3 years ago
parent
commit
6f81c5fb16

+ 0 - 61
pages/tabbar/smartStore/folder.js

@@ -1,16 +1,4 @@
-// pages/tabbar/smartStore/folder.js
 Page({
-
-    /**
-     * 页面的初始数据
-     */
-    data: {
-
-    },
-
-    /**
-     * 生命周期函数--监听页面加载
-     */
     onLoad(options) {
         let obj = JSON.parse(options.item);
         this.selectComponent("#viewPage").changeParentid(obj.attachmentid);
@@ -18,53 +6,4 @@ Page({
             title: obj.document
         });
     },
-
-    /**
-     * 生命周期函数--监听页面初次渲染完成
-     */
-    onReady() {
-
-    },
-
-    /**
-     * 生命周期函数--监听页面显示
-     */
-    onShow() {
-
-    },
-
-    /**
-     * 生命周期函数--监听页面隐藏
-     */
-    onHide() {
-
-    },
-
-    /**
-     * 生命周期函数--监听页面卸载
-     */
-    onUnload() {
-
-    },
-
-    /**
-     * 页面相关事件处理函数--监听用户下拉动作
-     */
-    onPullDownRefresh() {
-
-    },
-
-    /**
-     * 页面上拉触底事件的处理函数
-     */
-    onReachBottom() {
-
-    },
-
-    /**
-     * 用户点击右上角分享
-     */
-    onShareAppMessage() {
-
-    }
 })

+ 0 - 60
pages/tabbar/smartStore/index.js

@@ -1,65 +1,5 @@
-
 Page({
-
-    /**
-     * 页面的初始数据
-     */
-    data: {
-
-    },
-
-    /**
-     * 生命周期函数--监听页面加载
-     */
-    onLoad(options) {
-    },
-    
-    /**
-     * 生命周期函数--监听页面初次渲染完成
-     */
-    onReady() {
-        
-    },
-
-    /**
-     * 生命周期函数--监听页面显示
-     */
     onShow() {
         this.getTabBar().init();
     },
-
-    /**
-     * 生命周期函数--监听页面隐藏
-     */
-    onHide() {
-
-    },
-
-    /**
-     * 生命周期函数--监听页面卸载
-     */
-    onUnload() {
-
-    },
-
-    /**
-     * 页面相关事件处理函数--监听用户下拉动作
-     */
-    onPullDownRefresh() {
-
-    },
-
-    /**
-     * 页面上拉触底事件的处理函数
-     */
-    onReachBottom() {
-
-    },
-
-    /**
-     * 用户点击右上角分享
-     */
-    onShareAppMessage() {
-
-    }
 })

+ 0 - 11
pages/tabbar/smartStore/modules/flies.js

@@ -1,8 +1,5 @@
 const cf = require("../../../../utils/checkFile");
 Component({
-    /**
-     * 组件的属性列表
-     */
     properties: {
         list: {
             type: Array,
@@ -19,16 +16,10 @@ Component({
     options: {
         addGlobalClass: true
     },
-    /**
-     * 组件的初始数据
-     */
     data: {
         show: false,
         fileSelected: {},
     },
-    /**
-     * 组件的方法列表
-     */
     methods: {
         /* 打开文件 */
         openFile(e) {
@@ -38,7 +29,6 @@ Component({
             if (item.fileType == 'folder') {
                 let pages = getCurrentPages();
                 let prevPage = pages[pages.length - 1]; // 获取当前的页面栈
-                console.log(prevPage)
                 if (prevPage.route == "pages/tabbar/smartStore/index") {
                     wx.navigateTo({
                         url: '/pages/tabbar/smartStore/folder?item=' + JSON.stringify(item),
@@ -48,7 +38,6 @@ Component({
                         url: '/pages/tabbar/smartStore/folder?item=' + JSON.stringify(item),
                     })
                 }
-
             } else {
                 cf.checkFile(item)
             }

+ 2 - 17
pages/tabbar/smartStore/modules/viewPage.js

@@ -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