Browse Source

营销物料

zhaoxiaohai 3 years ago
parent
commit
441c11fd40

+ 1 - 1
pages/tabbar/smartStore/modules/flies.wxml

@@ -1,6 +1,6 @@
 <navigator class="my-card" url="#" wx:for="{{list}}" data-item="{{item}}" bindtap="openFile">
     <view class="flie-left">
-        <image class="image" src="/static/image/file/{{item.postfix}}.png" />
+        <image class="image" src="{{item.cover}}" />
         <view class="details">
             <view class="name line-1">{{item.document}}</view>
             <view class="time">{{item.createdate}}</view>

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

@@ -1,5 +1,6 @@
 const getHeight = require("../../../../utils/getRheRemainingHeight");
 const _Http = getApp().globalData.http;
+const MFT = require("../../../../utils/matchingFeilType");
 Component({
     /**
      * 组件的属性列表
@@ -87,18 +88,18 @@ Component({
                 "method": (this.data.tabActiveTitle == '列表') ? "selectList" : "selectMyList",
                 "content": this.data.content
             }).then(res => {
+                console.log("营销", res)
                 this.selectComponent('#ListBox').RefreshToComplete();
                 if (res.msg != '成功') return wx.showToast({
                     title: res.data,
                     icon: "none"
                 })
                 this.setData({
-                    list: (res.pageNumber == 1) ? res.data : this.data.list.concat(res.data),
+                    list: (res.pageNumber == 1) ? MFT.fileList(res.data) : this.data.list.concat(MFT.fileList(res.data)),
                     ['content.pageNumber']: res.pageNumber + 1,
                     ['content.pageTotal']: res.pageTotal,
                     inTotal: res.total
                 })
-                // console.log((this.data.tabActiveTitle == '列表') ? "列表" : '营销物料', this.data.list)
             })
         },
         /* 搜索框输入 */